From 806a408f46ee174879cfd92282f18198666e5ee6 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 12 Nov 2024 06:31:32 +0000 Subject: [PATCH] CodeGen from PR 31513 in Azure/azure-rest-api-specs Merge cebae57dd4c23cc1fb53b26360c60c59faca85af into fcee3edac78a8afb8a402e4920c395998caf12fb --- .../CHANGELOG.md | 141 ++- .../README.md | 4 +- .../SAMPLE.md | 245 +--- .../pom.xml | 3 +- .../RedisEnterpriseManager.java | 19 +- .../fluent/AccessPolicyAssignmentsClient.java | 219 ---- .../fluent/DatabasesClient.java | 228 ++-- .../PrivateEndpointConnectionsClient.java | 64 +- .../fluent/PrivateLinkResourcesClient.java | 14 +- .../RedisEnterpriseManagementClient.java | 7 - .../fluent/RedisEnterprisesClient.java | 112 +- .../models/AccessPolicyAssignmentInner.java | 197 ---- .../AccessPolicyAssignmentProperties.java | 162 --- .../fluent/models/ClusterInner.java | 49 +- .../fluent/models/ClusterProperties.java | 73 +- .../fluent/models/DatabaseInner.java | 86 +- .../fluent/models/DatabaseProperties.java | 95 +- .../AccessPolicyAssignmentImpl.java | 150 --- .../AccessPolicyAssignmentsClientImpl.java | 1020 ----------------- .../AccessPolicyAssignmentsImpl.java | 186 --- .../implementation/ClusterImpl.java | 20 - .../implementation/DatabaseImpl.java | 47 - .../implementation/DatabasesClientImpl.java | 666 +++++------ .../implementation/DatabasesImpl.java | 9 - .../PrivateEndpointConnectionsClientImpl.java | 165 +-- .../PrivateLinkResourcesClientImpl.java | 42 +- .../RedisEnterpriseManagementClientImpl.java | 18 +- .../RedisEnterprisesClientImpl.java | 287 +++-- .../models/AccessKeysAuthentication.java | 52 - .../models/AccessPolicyAssignment.java | 227 ---- .../models/AccessPolicyAssignmentList.java | 116 -- .../AccessPolicyAssignmentPropertiesUser.java | 95 -- .../models/AccessPolicyAssignments.java | 153 --- .../redisenterprise/models/AofFrequency.java | 3 +- .../redisenterprise/models/Cluster.java | 69 +- .../redisenterprise/models/ClusterUpdate.java | 47 +- .../models/ClusteringPolicy.java | 3 +- .../redisenterprise/models/Database.java | 137 +-- .../models/DatabaseUpdate.java | 67 +- .../redisenterprise/models/Databases.java | 117 +- .../models/DeferUpgradeSetting.java | 52 - .../models/ForceUnlinkParameters.java | 2 +- .../models/HighAvailability.java | 52 - .../redisenterprise/models/Persistence.java | 27 +- .../models/PrivateEndpointConnection.java | 3 +- .../models/PrivateEndpointConnections.java | 46 +- .../models/PrivateLinkResources.java | 14 +- .../models/RedisEnterprises.java | 50 +- .../models/RedundancyMode.java | 56 - .../redisenterprise/models/Sku.java | 30 +- .../redisenterprise/models/SkuName.java | 224 +--- .../redisenterprise/models/TlsVersion.java | 4 +- .../proxy-config.json | 2 +- ...ssPolicyAssignmentCreateUpdateSamples.java | 32 - .../AccessPolicyAssignmentDeleteSamples.java | 26 - .../AccessPolicyAssignmentGetSamples.java | 27 - .../AccessPolicyAssignmentListSamples.java | 25 - .../generated/DatabasesCreateSamples.java | 15 +- .../generated/DatabasesDeleteSamples.java | 3 +- .../generated/DatabasesExportSamples.java | 3 +- .../generated/DatabasesFlushSamples.java | 5 +- ...sesForceLinkToReplicationGroupSamples.java | 12 +- .../DatabasesForceUnlinkSamples.java | 5 +- .../generated/DatabasesGetSamples.java | 3 +- .../DatabasesImportMethodSamples.java | 3 +- .../DatabasesListByClusterSamples.java | 3 +- .../generated/DatabasesListKeysSamples.java | 3 +- .../DatabasesRegenerateKeySamples.java | 3 +- .../generated/DatabasesUpdateSamples.java | 5 +- ...DatabasesUpgradeDBRedisVersionSamples.java | 25 - .../generated/OperationsListSamples.java | 3 +- .../generated/OperationsStatusGetSamples.java | 4 +- ...ivateEndpointConnectionsDeleteSamples.java | 3 +- .../PrivateEndpointConnectionsGetSamples.java | 3 +- ...PrivateEndpointConnectionsListSamples.java | 3 +- .../PrivateEndpointConnectionsPutSamples.java | 3 +- ...vateLinkResourcesListByClusterSamples.java | 3 +- .../RedisEnterpriseCreateSamples.java | 4 +- .../RedisEnterpriseDeleteSamples.java | 4 +- ...isEnterpriseGetByResourceGroupSamples.java | 3 +- ...sEnterpriseListByResourceGroupSamples.java | 3 +- .../generated/RedisEnterpriseListSamples.java | 4 +- .../RedisEnterpriseUpdateSamples.java | 4 +- .../AccessPolicyAssignmentInnerTests.java | 30 - .../AccessPolicyAssignmentListTests.java | 39 - ...AccessPolicyAssignmentPropertiesTests.java | 31 - ...ssPolicyAssignmentPropertiesUserTests.java | 25 - ...olicyAssignmentsCreateUpdateMockTests.java | 44 - ...cyAssignmentsGetWithResponseMockTests.java | 40 - .../AccessPolicyAssignmentsListMockTests.java | 40 - ...rManagedKeyEncryptionKeyIdentityTests.java | 33 - ...DatabasePropertiesGeoReplicationTests.java | 32 - .../generated/DatabasesDeleteMockTests.java | 33 - .../generated/DatabasesExportMockTests.java | 36 - .../generated/DatabasesFlushMockTests.java | 38 - .../DatabasesForceUnlinkMockTests.java | 38 - .../DatabasesImportMethodMockTests.java | 38 - .../ExportClusterParametersTests.java | 25 - .../generated/FlushParametersTests.java | 26 - .../generated/ForceLinkParametersTests.java | 32 - .../generated/ForceUnlinkParametersTests.java | 28 - .../ImportClusterParametersTests.java | 26 - .../generated/LinkedDatabaseTests.java | 25 - .../ManagedServiceIdentityTests.java | 44 - .../generated/ModuleTests.java | 28 - .../generated/OperationDisplayTests.java | 23 - .../generated/OperationInnerTests.java | 24 - .../generated/OperationListResultTests.java | 23 - .../generated/OperationsListMockTests.java | 36 - .../generated/PersistenceTests.java | 37 - .../PrivateEndpointConnectionInnerTests.java | 40 - ...vateEndpointConnectionListResultTests.java | 56 - ...vateEndpointConnectionPropertiesTests.java | 40 - ...ateEndpointConnectionsDeleteMockTests.java | 34 - ...ntConnectionsGetWithResponseMockTests.java | 43 - ...ivateEndpointConnectionsListMockTests.java | 45 - .../generated/PrivateEndpointTests.java | 21 - .../PrivateLinkResourceInnerTests.java | 27 - .../PrivateLinkResourceListResultTests.java | 32 - .../PrivateLinkResourcePropertiesTests.java | 28 - ...teLinkResourcesListByClusterMockTests.java | 39 - ...rivateLinkServiceConnectionStateTests.java | 34 - .../RedisEnterprisesDeleteMockTests.java | 33 - .../redisenterprise/generated/SkuTests.java | 28 - .../generated/UserAssignedIdentityTests.java | 23 - 125 files changed, 1178 insertions(+), 6437 deletions(-) delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/AccessPolicyAssignmentsClient.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/AccessPolicyAssignmentInner.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/AccessPolicyAssignmentProperties.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/AccessPolicyAssignmentImpl.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/AccessPolicyAssignmentsClientImpl.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/AccessPolicyAssignmentsImpl.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/AccessKeysAuthentication.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/AccessPolicyAssignment.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/AccessPolicyAssignmentList.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/AccessPolicyAssignmentPropertiesUser.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/AccessPolicyAssignments.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/DeferUpgradeSetting.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/HighAvailability.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/RedundancyMode.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentCreateUpdateSamples.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentDeleteSamples.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentGetSamples.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentListSamples.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesUpgradeDBRedisVersionSamples.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentInnerTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentListTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentPropertiesTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentPropertiesUserTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentsCreateUpdateMockTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentsGetWithResponseMockTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentsListMockTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentityTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasePropertiesGeoReplicationTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesDeleteMockTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesExportMockTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesFlushMockTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesForceUnlinkMockTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesImportMethodMockTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ExportClusterParametersTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/FlushParametersTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ForceLinkParametersTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ForceUnlinkParametersTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ImportClusterParametersTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/LinkedDatabaseTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ManagedServiceIdentityTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ModuleTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationDisplayTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationInnerTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationListResultTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationsListMockTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PersistenceTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionInnerTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionListResultTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionPropertiesTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsDeleteMockTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsListMockTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourceInnerTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourceListResultTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcePropertiesTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcesListByClusterMockTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkServiceConnectionStateTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesDeleteMockTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/SkuTests.java delete mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/UserAssignedIdentityTests.java diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/CHANGELOG.md b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/CHANGELOG.md index 5edce1db5e9f8..b83a238915297 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/CHANGELOG.md +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/CHANGELOG.md @@ -1,14 +1,147 @@ # Release History -## 2.1.0-beta.3 (Unreleased) +## 1.0.0-beta.1 (2024-11-12) + +- Azure Resource Manager RedisEnterprise client library for Java. This package contains Microsoft Azure SDK for RedisEnterprise Management SDK. REST API for managing Redis Enterprise resources in Azure. Package tag package-2024-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added -### Breaking Changes +* `models.ForceLinkParameters` was added + +#### `models.ManagedServiceIdentity` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ClusterUpdate` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ForceUnlinkParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.UserAssignedIdentity` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.PrivateLinkResourceListResult` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.DatabaseUpdate` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.Module` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.PrivateEndpoint` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.Sku` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ClusterPropertiesEncryption` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.DatabasePropertiesGeoReplication` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.RegenerateKeyParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.LinkedDatabase` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added -### Bugs Fixed +#### `models.PrivateLinkServiceConnectionState` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.PrivateEndpointConnectionListResult` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.OperationListResult` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ImportClusterParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.FlushParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.Database` was modified + +* `forceLinkToReplicationGroup(models.ForceLinkParameters)` was added +* `forceLinkToReplicationGroup(models.ForceLinkParameters,com.azure.core.util.Context)` was added -### Other Changes +#### `models.ClusterList` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.OperationDisplay` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ExportClusterParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.Persistence` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.DatabaseList` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ClusterPropertiesEncryptionCustomerManagedKeyEncryption` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.Databases` was modified + +* `forceLinkToReplicationGroup(java.lang.String,java.lang.String,java.lang.String,models.ForceLinkParameters)` was added +* `forceLinkToReplicationGroup(java.lang.String,java.lang.String,java.lang.String,models.ForceLinkParameters,com.azure.core.util.Context)` was added ## 2.1.0-beta.2 (2024-10-21) diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md index 1ce5cc3c82ebe..0c12b6737a369 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md @@ -2,7 +2,7 @@ Azure Resource Manager RedisEnterprise client library for Java. -This package contains Microsoft Azure SDK for RedisEnterprise Management SDK. REST API for managing Redis Enterprise resources in Azure. Package tag package-preview-2024-09. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for RedisEnterprise Management SDK. REST API for managing Redis Enterprise resources in Azure. Package tag package-2024-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-redisenterprise - 2.1.0-beta.2 + 2.1.0-beta.3 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/SAMPLE.md b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/SAMPLE.md index f9fc31516c08a..92fd54287b06e 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/SAMPLE.md +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/SAMPLE.md @@ -1,13 +1,6 @@ # Code snippets and samples -## AccessPolicyAssignment - -- [CreateUpdate](#accesspolicyassignment_createupdate) -- [Delete](#accesspolicyassignment_delete) -- [Get](#accesspolicyassignment_get) -- [List](#accesspolicyassignment_list) - ## Databases - [Create](#databases_create) @@ -22,7 +15,6 @@ - [ListKeys](#databases_listkeys) - [RegenerateKey](#databases_regeneratekey) - [Update](#databases_update) -- [UpgradeDBRedisVersion](#databases_upgradedbredisversion) ## Operations @@ -51,120 +43,12 @@ - [List](#redisenterprise_list) - [ListByResourceGroup](#redisenterprise_listbyresourcegroup) - [Update](#redisenterprise_update) -### AccessPolicyAssignment_CreateUpdate - -```java -import com.azure.resourcemanager.redisenterprise.models.AccessPolicyAssignmentPropertiesUser; - -/** - * Samples for AccessPolicyAssignment CreateUpdate. - */ -public final class AccessPolicyAssignmentCreateUpdateSamples { - /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ - * RedisEnterpriseAccessPolicyAssignmentCreateUpdate.json - */ - /** - * Sample code: RedisEnterpriseAccessPolicyAssignmentCreateUpdate. - * - * @param manager Entry point to RedisEnterpriseManager. - */ - public static void redisEnterpriseAccessPolicyAssignmentCreateUpdate( - com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) { - manager.accessPolicyAssignments() - .define("defaultTestEntraApp1") - .withExistingDatabase("rg1", "cache1", "default") - .withAccessPolicyName("default") - .withUser(new AccessPolicyAssignmentPropertiesUser().withObjectId("6497c918-11ad-41e7-1b0f-7c518a87d0b0")) - .create(); - } -} -``` - -### AccessPolicyAssignment_Delete - -```java -/** - * Samples for AccessPolicyAssignment Delete. - */ -public final class AccessPolicyAssignmentDeleteSamples { - /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ - * RedisEnterpriseAccessPolicyAssignmentDelete.json - */ - /** - * Sample code: RedisEnterpriseAccessPolicyAssignmentDelete. - * - * @param manager Entry point to RedisEnterpriseManager. - */ - public static void redisEnterpriseAccessPolicyAssignmentDelete( - com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) { - manager.accessPolicyAssignments() - .delete("rg1", "cache1", "default", "defaultTestEntraApp1", com.azure.core.util.Context.NONE); - } -} -``` - -### AccessPolicyAssignment_Get - -```java -/** - * Samples for AccessPolicyAssignment Get. - */ -public final class AccessPolicyAssignmentGetSamples { - /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ - * RedisEnterpriseAccessPolicyAssignmentGet.json - */ - /** - * Sample code: RedisEnterpriseAccessPolicyAssignmentGet. - * - * @param manager Entry point to RedisEnterpriseManager. - */ - public static void redisEnterpriseAccessPolicyAssignmentGet( - com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) { - manager.accessPolicyAssignments() - .getWithResponse("rg1", "cache1", "default", "accessPolicyAssignmentName1", - com.azure.core.util.Context.NONE); - } -} -``` - -### AccessPolicyAssignment_List - -```java -/** - * Samples for AccessPolicyAssignment List. - */ -public final class AccessPolicyAssignmentListSamples { - /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ - * RedisEnterpriseAccessPolicyAssignmentsList.json - */ - /** - * Sample code: RedisEnterpriseAccessPolicyAssignmentList. - * - * @param manager Entry point to RedisEnterpriseManager. - */ - public static void redisEnterpriseAccessPolicyAssignmentList( - com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) { - manager.accessPolicyAssignments().list("rg1", "cache1", "default", com.azure.core.util.Context.NONE); - } -} -``` - ### Databases_Create ```java -import com.azure.resourcemanager.redisenterprise.models.AccessKeysAuthentication; import com.azure.resourcemanager.redisenterprise.models.AofFrequency; import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy; import com.azure.resourcemanager.redisenterprise.models.DatabasePropertiesGeoReplication; -import com.azure.resourcemanager.redisenterprise.models.DeferUpgradeSetting; import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy; import com.azure.resourcemanager.redisenterprise.models.LinkedDatabase; import com.azure.resourcemanager.redisenterprise.models.Module; @@ -177,8 +61,7 @@ import java.util.Arrays; */ public final class DatabasesCreateSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDatabasesCreate.json */ /** @@ -199,14 +82,11 @@ public final class DatabasesCreateSamples { .withModules(Arrays.asList(new Module().withName("RedisBloom").withArgs("ERROR_RATE 0.00 INITIAL_SIZE 400"), new Module().withName("RedisTimeSeries").withArgs("RETENTION_POLICY 20"), new Module().withName("RediSearch"))) - .withDeferUpgrade(DeferUpgradeSetting.NOT_DEFERRED) - .withAccessKeysAuthentication(AccessKeysAuthentication.ENABLED) .create(); } /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDatabasesCreateWithGeoReplication.json */ /** @@ -225,10 +105,9 @@ public final class DatabasesCreateSamples { .withEvictionPolicy(EvictionPolicy.NO_EVICTION) .withGeoReplication(new DatabasePropertiesGeoReplication().withGroupNickname("groupName") .withLinkedDatabases(Arrays.asList(new LinkedDatabase().withId( - "/subscriptions/e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default"), + "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default"), new LinkedDatabase().withId( - "/subscriptions/e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8e/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default")))) - .withAccessKeysAuthentication(AccessKeysAuthentication.ENABLED) + "/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default")))) .create(); } } @@ -242,8 +121,7 @@ public final class DatabasesCreateSamples { */ public final class DatabasesDeleteSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDatabasesDelete.json */ /** @@ -268,8 +146,7 @@ import com.azure.resourcemanager.redisenterprise.models.ExportClusterParameters; */ public final class DatabasesExportSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDatabasesExport.json */ /** @@ -299,8 +176,7 @@ import java.util.Arrays; */ public final class DatabasesFlushSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDatabasesFlush.json */ /** @@ -312,7 +188,7 @@ public final class DatabasesFlushSamples { howToFlushAllTheKeysInTheDatabase(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) { manager.databases() .flush("rg1", "cache1", "default", new FlushParameters().withIds(Arrays.asList( - "/subscriptions/e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default")), + "/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default")), com.azure.core.util.Context.NONE); } } @@ -322,16 +198,13 @@ public final class DatabasesFlushSamples { ```java import com.azure.resourcemanager.redisenterprise.models.ForceLinkParameters; -import com.azure.resourcemanager.redisenterprise.models.LinkedDatabase; -import java.util.Arrays; /** * Samples for Databases ForceLinkToReplicationGroup. */ public final class DatabasesForceLinkToReplicationGroupSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDatabasesForceLink.json */ /** @@ -342,12 +215,7 @@ public final class DatabasesForceLinkToReplicationGroupSamples { public static void howToRelinkADatabaseAfterARegionalOutage( com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) { manager.databases() - .forceLinkToReplicationGroup("rg1", "cache1", "default", new ForceLinkParameters() - .withGroupNickname("groupName") - .withLinkedDatabases(Arrays.asList(new LinkedDatabase().withId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default"), - new LinkedDatabase().withId( - "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default"))), + .forceLinkToReplicationGroup("rg1", "cache1", "default", new ForceLinkParameters(), com.azure.core.util.Context.NONE); } } @@ -364,8 +232,7 @@ import java.util.Arrays; */ public final class DatabasesForceUnlinkSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDatabasesForceUnlink.json */ /** @@ -377,7 +244,7 @@ public final class DatabasesForceUnlinkSamples { com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) { manager.databases() .forceUnlink("rg1", "cache1", "default", new ForceUnlinkParameters().withIds(Arrays.asList( - "/subscriptions/e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default")), + "/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default")), com.azure.core.util.Context.NONE); } } @@ -391,8 +258,7 @@ public final class DatabasesForceUnlinkSamples { */ public final class DatabasesGetSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDatabasesGet.json */ /** @@ -418,8 +284,7 @@ import java.util.Arrays; */ public final class DatabasesImportMethodSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDatabasesImport.json */ /** @@ -447,8 +312,7 @@ public final class DatabasesImportMethodSamples { */ public final class DatabasesListByClusterSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDatabasesListByCluster.json */ /** @@ -471,8 +335,7 @@ public final class DatabasesListByClusterSamples { */ public final class DatabasesListKeysSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDatabasesListKeys.json */ /** @@ -498,8 +361,7 @@ import com.azure.resourcemanager.redisenterprise.models.RegenerateKeyParameters; */ public final class DatabasesRegenerateKeySamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDatabasesRegenerateKey.json */ /** @@ -519,7 +381,6 @@ public final class DatabasesRegenerateKeySamples { ### Databases_Update ```java -import com.azure.resourcemanager.redisenterprise.models.AccessKeysAuthentication; import com.azure.resourcemanager.redisenterprise.models.Database; import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy; import com.azure.resourcemanager.redisenterprise.models.Persistence; @@ -531,8 +392,7 @@ import com.azure.resourcemanager.redisenterprise.models.RdbFrequency; */ public final class DatabasesUpdateSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDatabasesUpdate.json */ /** @@ -549,36 +409,11 @@ public final class DatabasesUpdateSamples { .withClientProtocol(Protocol.ENCRYPTED) .withEvictionPolicy(EvictionPolicy.ALL_KEYS_LRU) .withPersistence(new Persistence().withRdbEnabled(true).withRdbFrequency(RdbFrequency.ONE_TWOH)) - .withAccessKeysAuthentication(AccessKeysAuthentication.ENABLED) .apply(); } } ``` -### Databases_UpgradeDBRedisVersion - -```java -/** - * Samples for Databases UpgradeDBRedisVersion. - */ -public final class DatabasesUpgradeDBRedisVersionSamples { - /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ - * RedisEnterpriseDatabasesUpgradeDBRedisVersion.json - */ - /** - * Sample code: How to upgrade your database Redis version. - * - * @param manager Entry point to RedisEnterpriseManager. - */ - public static void - howToUpgradeYourDatabaseRedisVersion(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) { - manager.databases().upgradeDBRedisVersion("rg1", "cache1", "default", com.azure.core.util.Context.NONE); - } -} -``` - ### Operations_List ```java @@ -588,8 +423,7 @@ public final class DatabasesUpgradeDBRedisVersionSamples { public final class OperationsListSamples { /* * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/OperationsList - * .json + * specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/OperationsList.json */ /** * Sample code: OperationsList. @@ -611,8 +445,8 @@ public final class OperationsListSamples { public final class OperationsStatusGetSamples { /* * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ - * OperationsStatusGet.json + * specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/OperationsStatusGet. + * json */ /** * Sample code: OperationsStatusGet. @@ -633,8 +467,7 @@ public final class OperationsStatusGetSamples { */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDeletePrivateEndpointConnection.json */ /** @@ -657,8 +490,7 @@ public final class PrivateEndpointConnectionsDeleteSamples { */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseGetPrivateEndpointConnection.json */ /** @@ -682,8 +514,7 @@ public final class PrivateEndpointConnectionsGetSamples { */ public final class PrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseListPrivateEndpointConnections.json */ /** @@ -709,8 +540,7 @@ import com.azure.resourcemanager.redisenterprise.models.PrivateLinkServiceConnec */ public final class PrivateEndpointConnectionsPutSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterprisePutPrivateEndpointConnection.json */ /** @@ -739,8 +569,7 @@ public final class PrivateEndpointConnectionsPutSamples { */ public final class PrivateLinkResourcesListByClusterSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseListPrivateLinkResources.json */ /** @@ -778,8 +607,8 @@ import java.util.Map; public final class RedisEnterpriseCreateSamples { /* * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ - * RedisEnterpriseCreate.json + * specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseCreate. + * json */ /** * Sample code: RedisEnterpriseCreate. @@ -832,8 +661,8 @@ public final class RedisEnterpriseCreateSamples { public final class RedisEnterpriseDeleteSamples { /* * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ - * RedisEnterpriseDelete.json + * specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseDelete. + * json */ /** * Sample code: RedisEnterpriseDelete. @@ -855,8 +684,7 @@ public final class RedisEnterpriseDeleteSamples { public final class RedisEnterpriseGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ - * RedisEnterpriseGet.json + * specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseGet.json */ /** * Sample code: RedisEnterpriseGet. @@ -878,8 +706,8 @@ public final class RedisEnterpriseGetByResourceGroupSamples { public final class RedisEnterpriseListSamples { /* * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ - * RedisEnterpriseList.json + * specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseList. + * json */ /** * Sample code: RedisEnterpriseList. @@ -900,8 +728,7 @@ public final class RedisEnterpriseListSamples { */ public final class RedisEnterpriseListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseListByResourceGroup.json */ /** @@ -932,8 +759,8 @@ import java.util.Map; public final class RedisEnterpriseUpdateSamples { /* * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ - * RedisEnterpriseUpdate.json + * specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseUpdate. + * json */ /** * Sample code: RedisEnterpriseUpdate. diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/pom.xml b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/pom.xml index 1c76c3a8a7a39..2c952cbe9d893 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/pom.xml +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/pom.xml @@ -18,7 +18,7 @@ jar Microsoft Azure SDK for RedisEnterprise Management - This package contains Microsoft Azure SDK for RedisEnterprise Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. REST API for managing Redis Enterprise resources in Azure. Package tag package-preview-2024-09. + This package contains Microsoft Azure SDK for RedisEnterprise Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. REST API for managing Redis Enterprise resources in Azure. Package tag package-2024-10. https://github.com/Azure/azure-sdk-for-java @@ -46,6 +46,7 @@ 0 0 true + false diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/RedisEnterpriseManager.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/RedisEnterpriseManager.java index 64d4295feb057..43e4eab61a27c 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/RedisEnterpriseManager.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/RedisEnterpriseManager.java @@ -24,7 +24,6 @@ import com.azure.core.util.Configuration; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.redisenterprise.fluent.RedisEnterpriseManagementClient; -import com.azure.resourcemanager.redisenterprise.implementation.AccessPolicyAssignmentsImpl; import com.azure.resourcemanager.redisenterprise.implementation.DatabasesImpl; import com.azure.resourcemanager.redisenterprise.implementation.OperationsImpl; import com.azure.resourcemanager.redisenterprise.implementation.OperationsStatusImpl; @@ -32,7 +31,6 @@ import com.azure.resourcemanager.redisenterprise.implementation.PrivateLinkResourcesImpl; import com.azure.resourcemanager.redisenterprise.implementation.RedisEnterpriseManagementClientBuilder; import com.azure.resourcemanager.redisenterprise.implementation.RedisEnterprisesImpl; -import com.azure.resourcemanager.redisenterprise.models.AccessPolicyAssignments; import com.azure.resourcemanager.redisenterprise.models.Databases; import com.azure.resourcemanager.redisenterprise.models.Operations; import com.azure.resourcemanager.redisenterprise.models.OperationsStatus; @@ -59,8 +57,6 @@ public final class RedisEnterpriseManager { private Databases databases; - private AccessPolicyAssignments accessPolicyAssignments; - private PrivateEndpointConnections privateEndpointConnections; private PrivateLinkResources privateLinkResources; @@ -229,7 +225,7 @@ public RedisEnterpriseManager authenticate(TokenCredential credential, AzureProf .append("-") .append("com.azure.resourcemanager.redisenterprise") .append("/") - .append("2.1.0-beta.2"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder.append(" (") .append(Configuration.getGlobalConfiguration().get("java.version")) @@ -323,19 +319,6 @@ public Databases databases() { return databases; } - /** - * Gets the resource collection API of AccessPolicyAssignments. It manages AccessPolicyAssignment. - * - * @return Resource collection API of AccessPolicyAssignments. - */ - public AccessPolicyAssignments accessPolicyAssignments() { - if (this.accessPolicyAssignments == null) { - this.accessPolicyAssignments - = new AccessPolicyAssignmentsImpl(clientObject.getAccessPolicyAssignments(), this); - } - return accessPolicyAssignments; - } - /** * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection. * diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/AccessPolicyAssignmentsClient.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/AccessPolicyAssignmentsClient.java deleted file mode 100644 index 504d3e9d49a2c..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/AccessPolicyAssignmentsClient.java +++ /dev/null @@ -1,219 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.redisenterprise.fluent.models.AccessPolicyAssignmentInner; - -/** - * An instance of this class provides access to all the operations defined in AccessPolicyAssignmentsClient. - */ -public interface AccessPolicyAssignmentsClient { - /** - * Creates/Updates a particular access policy assignment for a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @param parameters Parameters supplied to the create access policy assignment for database. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of describes the access policy assignment of Redis Enterprise - * database. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, AccessPolicyAssignmentInner> beginCreateUpdate( - String resourceGroupName, String clusterName, String databaseName, String accessPolicyAssignmentName, - AccessPolicyAssignmentInner parameters); - - /** - * Creates/Updates a particular access policy assignment for a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @param parameters Parameters supplied to the create access policy assignment for database. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of describes the access policy assignment of Redis Enterprise - * database. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, AccessPolicyAssignmentInner> beginCreateUpdate( - String resourceGroupName, String clusterName, String databaseName, String accessPolicyAssignmentName, - AccessPolicyAssignmentInner parameters, Context context); - - /** - * Creates/Updates a particular access policy assignment for a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @param parameters Parameters supplied to the create access policy assignment for database. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the access policy assignment of Redis Enterprise database. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - AccessPolicyAssignmentInner createUpdate(String resourceGroupName, String clusterName, String databaseName, - String accessPolicyAssignmentName, AccessPolicyAssignmentInner parameters); - - /** - * Creates/Updates a particular access policy assignment for a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @param parameters Parameters supplied to the create access policy assignment for database. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the access policy assignment of Redis Enterprise database. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - AccessPolicyAssignmentInner createUpdate(String resourceGroupName, String clusterName, String databaseName, - String accessPolicyAssignmentName, AccessPolicyAssignmentInner parameters, Context context); - - /** - * Gets information about access policy assignment for database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about access policy assignment for database along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String clusterName, - String databaseName, String accessPolicyAssignmentName, Context context); - - /** - * Gets information about access policy assignment for database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about access policy assignment for database. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - AccessPolicyAssignmentInner get(String resourceGroupName, String clusterName, String databaseName, - String accessPolicyAssignmentName); - - /** - * Deletes a single access policy assignment. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String databaseName, - String accessPolicyAssignmentName); - - /** - * Deletes a single access policy assignment. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String databaseName, - String accessPolicyAssignmentName, Context context); - - /** - * Deletes a single access policy assignment. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String clusterName, String databaseName, String accessPolicyAssignmentName); - - /** - * Deletes a single access policy assignment. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String clusterName, String databaseName, String accessPolicyAssignmentName, - Context context); - - /** - * Gets all access policy assignments.. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all access policy assignments. as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String clusterName, String databaseName); - - /** - * Gets all access policy assignments.. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all access policy assignments. as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String clusterName, String databaseName, - Context context); -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/DatabasesClient.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/DatabasesClient.java index 367158fcc8249..634f3b06de336 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/DatabasesClient.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/DatabasesClient.java @@ -26,28 +26,30 @@ */ public interface DatabasesClient { /** - * Gets all databases in the specified Redis Enterprise cluster. + * Gets all databases in the specified RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all databases in the specified Redis Enterprise cluster as paginated response with {@link PagedIterable}. + * @return all databases in the specified RedisEnterprise cluster as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByCluster(String resourceGroupName, String clusterName); /** - * Gets all databases in the specified Redis Enterprise cluster. + * Gets all databases in the specified RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all databases in the specified Redis Enterprise cluster as paginated response with {@link PagedIterable}. + * @return all databases in the specified RedisEnterprise cluster as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByCluster(String resourceGroupName, String clusterName, Context context); @@ -56,13 +58,14 @@ public interface DatabasesClient { * Creates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of describes a database on the Redis Enterprise cluster. + * @return the {@link SyncPoller} for polling of describes a database on the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DatabaseInner> beginCreate(String resourceGroupName, String clusterName, @@ -72,14 +75,15 @@ SyncPoller, DatabaseInner> beginCreate(String resource * Creates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of describes a database on the Redis Enterprise cluster. + * @return the {@link SyncPoller} for polling of describes a database on the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DatabaseInner> beginCreate(String resourceGroupName, String clusterName, @@ -89,13 +93,14 @@ SyncPoller, DatabaseInner> beginCreate(String resource * Creates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes a database on the Redis Enterprise cluster. + * @return describes a database on the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) DatabaseInner create(String resourceGroupName, String clusterName, String databaseName, DatabaseInner parameters); @@ -104,14 +109,15 @@ SyncPoller, DatabaseInner> beginCreate(String resource * Creates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes a database on the Redis Enterprise cluster. + * @return describes a database on the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) DatabaseInner create(String resourceGroupName, String clusterName, String databaseName, DatabaseInner parameters, @@ -121,13 +127,14 @@ DatabaseInner create(String resourceGroupName, String clusterName, String databa * Updates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of describes a database on the Redis Enterprise cluster. + * @return the {@link SyncPoller} for polling of describes a database on the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DatabaseInner> beginUpdate(String resourceGroupName, String clusterName, @@ -137,14 +144,15 @@ SyncPoller, DatabaseInner> beginUpdate(String resource * Updates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of describes a database on the Redis Enterprise cluster. + * @return the {@link SyncPoller} for polling of describes a database on the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DatabaseInner> beginUpdate(String resourceGroupName, String clusterName, @@ -154,13 +162,14 @@ SyncPoller, DatabaseInner> beginUpdate(String resource * Updates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes a database on the Redis Enterprise cluster. + * @return describes a database on the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) DatabaseInner update(String resourceGroupName, String clusterName, String databaseName, DatabaseUpdate parameters); @@ -169,45 +178,48 @@ SyncPoller, DatabaseInner> beginUpdate(String resource * Updates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes a database on the Redis Enterprise cluster. + * @return describes a database on the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) DatabaseInner update(String resourceGroupName, String clusterName, String databaseName, DatabaseUpdate parameters, Context context); /** - * Gets information about a database in a Redis Enterprise cluster. + * Gets information about a database in a RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a database in a Redis Enterprise cluster along with {@link Response}. + * @return information about a database in a RedisEnterprise cluster along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse(String resourceGroupName, String clusterName, String databaseName, Context context); /** - * Gets information about a database in a Redis Enterprise cluster. + * Gets information about a database in a RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a database in a Redis Enterprise cluster. + * @return information about a database in a RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) DatabaseInner get(String resourceGroupName, String clusterName, String databaseName); @@ -216,7 +228,8 @@ Response getWithResponse(String resourceGroupName, String cluster * Deletes a single database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -230,7 +243,8 @@ Response getWithResponse(String resourceGroupName, String cluster * Deletes a single database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -246,7 +260,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * Deletes a single database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -259,7 +274,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * Deletes a single database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -270,10 +286,11 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String void delete(String resourceGroupName, String clusterName, String databaseName, Context context); /** - * Retrieves the access keys for the Redis Enterprise database. + * Retrieves the access keys for the RedisEnterprise database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -286,10 +303,11 @@ Response listKeysWithResponse(String resourceGroupName, String Context context); /** - * Retrieves the access keys for the Redis Enterprise database. + * Retrieves the access keys for the RedisEnterprise database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -300,10 +318,11 @@ Response listKeysWithResponse(String resourceGroupName, String AccessKeysInner listKeys(String resourceGroupName, String clusterName, String databaseName); /** - * Regenerates the Redis Enterprise database's access keys. + * Regenerates the RedisEnterprise database's access keys. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Specifies which key to regenerate. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -316,10 +335,11 @@ SyncPoller, AccessKeysInner> beginRegenerateKey(Stri String clusterName, String databaseName, RegenerateKeyParameters parameters); /** - * Regenerates the Redis Enterprise database's access keys. + * Regenerates the RedisEnterprise database's access keys. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Specifies which key to regenerate. * @param context The context to associate with this operation. @@ -333,10 +353,11 @@ SyncPoller, AccessKeysInner> beginRegenerateKey(Stri String clusterName, String databaseName, RegenerateKeyParameters parameters, Context context); /** - * Regenerates the Redis Enterprise database's access keys. + * Regenerates the RedisEnterprise database's access keys. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Specifies which key to regenerate. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -349,10 +370,11 @@ AccessKeysInner regenerateKey(String resourceGroupName, String clusterName, Stri RegenerateKeyParameters parameters); /** - * Regenerates the Redis Enterprise database's access keys. + * Regenerates the RedisEnterprise database's access keys. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Specifies which key to regenerate. * @param context The context to associate with this operation. @@ -369,7 +391,8 @@ AccessKeysInner regenerateKey(String resourceGroupName, String clusterName, Stri * Imports database files to target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for importing into the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -385,7 +408,8 @@ SyncPoller, Void> beginImportMethod(String resourceGroupName, S * Imports database files to target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for importing into the cluster. * @param context The context to associate with this operation. @@ -402,7 +426,8 @@ SyncPoller, Void> beginImportMethod(String resourceGroupName, S * Imports database files to target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for importing into the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -417,7 +442,8 @@ void importMethod(String resourceGroupName, String clusterName, String databaseN * Imports database files to target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for importing into the cluster. * @param context The context to associate with this operation. @@ -433,7 +459,8 @@ void importMethod(String resourceGroupName, String clusterName, String databaseN * Exports a database file from target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for exporting into the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -449,7 +476,8 @@ SyncPoller, Void> beginExport(String resourceGroupName, String * Exports a database file from target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for exporting into the cluster. * @param context The context to associate with this operation. @@ -466,7 +494,8 @@ SyncPoller, Void> beginExport(String resourceGroupName, String * Exports a database file from target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for exporting into the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -480,7 +509,8 @@ SyncPoller, Void> beginExport(String resourceGroupName, String * Exports a database file from target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for exporting into the cluster. * @param context The context to associate with this operation. @@ -496,7 +526,8 @@ void export(String resourceGroupName, String clusterName, String databaseName, E * Forcibly removes the link to the specified database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -512,7 +543,8 @@ SyncPoller, Void> beginForceUnlink(String resourceGroupName, St * Forcibly removes the link to the specified database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @param context The context to associate with this operation. @@ -529,7 +561,8 @@ SyncPoller, Void> beginForceUnlink(String resourceGroupName, St * Forcibly removes the link to the specified database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -544,7 +577,8 @@ void forceUnlink(String resourceGroupName, String clusterName, String databaseNa * Forcibly removes the link to the specified database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @param context The context to associate with this operation. @@ -562,7 +596,8 @@ void forceUnlink(String resourceGroupName, String clusterName, String databaseNa * unavailable while rejoining the replication group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -580,7 +615,8 @@ SyncPoller, Void> beginForceLinkToReplicationGroup(String resou * unavailable while rejoining the replication group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @param context The context to associate with this operation. @@ -599,7 +635,8 @@ SyncPoller, Void> beginForceLinkToReplicationGroup(String resou * unavailable while rejoining the replication group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -616,7 +653,8 @@ void forceLinkToReplicationGroup(String resourceGroupName, String clusterName, S * unavailable while rejoining the replication group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @param context The context to associate with this operation. @@ -632,7 +670,8 @@ void forceLinkToReplicationGroup(String resourceGroupName, String clusterName, S * Flushes all the keys in this database and also from its linked databases. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the databases to be flushed. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -648,7 +687,8 @@ SyncPoller, Void> beginFlush(String resourceGroupName, String c * Flushes all the keys in this database and also from its linked databases. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the databases to be flushed. * @param context The context to associate with this operation. @@ -665,7 +705,8 @@ SyncPoller, Void> beginFlush(String resourceGroupName, String c * Flushes all the keys in this database and also from its linked databases. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the databases to be flushed. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -679,7 +720,8 @@ SyncPoller, Void> beginFlush(String resourceGroupName, String c * Flushes all the keys in this database and also from its linked databases. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the databases to be flushed. * @param context The context to associate with this operation. @@ -690,62 +732,4 @@ SyncPoller, Void> beginFlush(String resourceGroupName, String c @ServiceMethod(returns = ReturnType.SINGLE) void flush(String resourceGroupName, String clusterName, String databaseName, FlushParameters parameters, Context context); - - /** - * Upgrades the database Redis version to the latest available. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginUpgradeDBRedisVersion(String resourceGroupName, String clusterName, - String databaseName); - - /** - * Upgrades the database Redis version to the latest available. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginUpgradeDBRedisVersion(String resourceGroupName, String clusterName, - String databaseName, Context context); - - /** - * Upgrades the database Redis version to the latest available. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void upgradeDBRedisVersion(String resourceGroupName, String clusterName, String databaseName); - - /** - * Upgrades the database Redis version to the latest available. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void upgradeDBRedisVersion(String resourceGroupName, String clusterName, String databaseName, Context context); } diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/PrivateEndpointConnectionsClient.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/PrivateEndpointConnectionsClient.java index 19ad96eb213b4..503850149f30e 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/PrivateEndpointConnectionsClient.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/PrivateEndpointConnectionsClient.java @@ -18,10 +18,11 @@ */ public interface PrivateEndpointConnectionsClient { /** - * Lists all the private endpoint connections associated with the Redis Enterprise cluster. + * Lists all the private endpoint connections associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -32,10 +33,11 @@ public interface PrivateEndpointConnectionsClient { PagedIterable list(String resourceGroupName, String clusterName); /** - * Lists all the private endpoint connections associated with the Redis Enterprise cluster. + * Lists all the private endpoint connections associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -47,17 +49,18 @@ public interface PrivateEndpointConnectionsClient { PagedIterable list(String resourceGroupName, String clusterName, Context context); /** - * Gets the specified private endpoint connection associated with the Redis Enterprise cluster. + * Gets the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection associated with the Redis Enterprise cluster along with + * @return the specified private endpoint connection associated with the RedisEnterprise cluster along with * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -65,26 +68,28 @@ Response getWithResponse(String resourceGroupNam String privateEndpointConnectionName, Context context); /** - * Gets the specified private endpoint connection associated with the Redis Enterprise cluster. + * Gets the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection associated with the Redis Enterprise cluster. + * @return the specified private endpoint connection associated with the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) PrivateEndpointConnectionInner get(String resourceGroupName, String clusterName, String privateEndpointConnectionName); /** - * 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. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param properties The private endpoint connection properties. @@ -99,10 +104,11 @@ SyncPoller, PrivateEndpointConnection PrivateEndpointConnectionInner properties); /** - * 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. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param properties The private endpoint connection properties. @@ -118,10 +124,11 @@ SyncPoller, PrivateEndpointConnection PrivateEndpointConnectionInner properties, Context context); /** - * 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. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param properties The private endpoint connection properties. @@ -135,10 +142,11 @@ PrivateEndpointConnectionInner put(String resourceGroupName, String clusterName, String privateEndpointConnectionName, PrivateEndpointConnectionInner properties); /** - * 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. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param properties The private endpoint connection properties. @@ -153,10 +161,11 @@ PrivateEndpointConnectionInner put(String resourceGroupName, String clusterName, String privateEndpointConnectionName, PrivateEndpointConnectionInner properties, Context context); /** - * Deletes the specified private endpoint connection associated with the Redis Enterprise cluster. + * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -169,10 +178,11 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String String privateEndpointConnectionName); /** - * Deletes the specified private endpoint connection associated with the Redis Enterprise cluster. + * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param context The context to associate with this operation. @@ -186,10 +196,11 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String String privateEndpointConnectionName, Context context); /** - * Deletes the specified private endpoint connection associated with the Redis Enterprise cluster. + * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -200,10 +211,11 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName); /** - * Deletes the specified private endpoint connection associated with the Redis Enterprise cluster. + * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param context The context to associate with this operation. diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/PrivateLinkResourcesClient.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/PrivateLinkResourcesClient.java index 6911d49020a4c..85acd4974d09c 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/PrivateLinkResourcesClient.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/PrivateLinkResourcesClient.java @@ -15,29 +15,31 @@ */ public interface PrivateLinkResourcesClient { /** - * 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. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private link resources that need to be created for a Redis Enterprise cluster as paginated response + * @return the private link resources that need to be created for a RedisEnterprise cluster as paginated response * with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByCluster(String resourceGroupName, String clusterName); /** - * 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. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private link resources that need to be created for a Redis Enterprise cluster as paginated response + * @return the private link resources that need to be created for a RedisEnterprise cluster as paginated response * with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/RedisEnterpriseManagementClient.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/RedisEnterpriseManagementClient.java index 297f788b7258f..16a20e4557d41 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/RedisEnterpriseManagementClient.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/RedisEnterpriseManagementClient.java @@ -74,13 +74,6 @@ public interface RedisEnterpriseManagementClient { */ DatabasesClient getDatabases(); - /** - * Gets the AccessPolicyAssignmentsClient object to access its operations. - * - * @return the AccessPolicyAssignmentsClient object. - */ - AccessPolicyAssignmentsClient getAccessPolicyAssignments(); - /** * Gets the PrivateEndpointConnectionsClient object to access its operations. * diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/RedisEnterprisesClient.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/RedisEnterprisesClient.java index e4681506e7040..614787dcb085a 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/RedisEnterprisesClient.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/RedisEnterprisesClient.java @@ -22,12 +22,13 @@ public interface RedisEnterprisesClient { * Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Create Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Create RedisEnterprise operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of describes the Redis Enterprise cluster. + * @return the {@link SyncPoller} for polling of describes the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ClusterInner> beginCreate(String resourceGroupName, String clusterName, @@ -37,13 +38,14 @@ SyncPoller, ClusterInner> beginCreate(String resourceGr * Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Create Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Create RedisEnterprise operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of describes the Redis Enterprise cluster. + * @return the {@link SyncPoller} for polling of describes the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ClusterInner> beginCreate(String resourceGroupName, String clusterName, @@ -53,12 +55,13 @@ SyncPoller, ClusterInner> beginCreate(String resourceGr * Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Create Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Create RedisEnterprise operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the Redis Enterprise cluster. + * @return describes the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) ClusterInner create(String resourceGroupName, String clusterName, ClusterInner parameters); @@ -67,82 +70,88 @@ SyncPoller, ClusterInner> beginCreate(String resourceGr * Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Create Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Create RedisEnterprise operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the Redis Enterprise cluster. + * @return describes the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) ClusterInner create(String resourceGroupName, String clusterName, ClusterInner parameters, Context context); /** - * Updates an existing Redis Enterprise cluster. + * Updates an existing RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Update Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Update RedisEnterprise operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of describes the Redis Enterprise cluster. + * @return the {@link SyncPoller} for polling of describes the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ClusterInner> beginUpdate(String resourceGroupName, String clusterName, ClusterUpdate parameters); /** - * Updates an existing Redis Enterprise cluster. + * Updates an existing RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Update Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Update RedisEnterprise operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of describes the Redis Enterprise cluster. + * @return the {@link SyncPoller} for polling of describes the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ClusterInner> beginUpdate(String resourceGroupName, String clusterName, ClusterUpdate parameters, Context context); /** - * Updates an existing Redis Enterprise cluster. + * Updates an existing RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Update Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Update RedisEnterprise operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the Redis Enterprise cluster. + * @return describes the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) ClusterInner update(String resourceGroupName, String clusterName, ClusterUpdate parameters); /** - * Updates an existing Redis Enterprise cluster. + * Updates an existing RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Update Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Update RedisEnterprise operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the Redis Enterprise cluster. + * @return describes the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) ClusterInner update(String resourceGroupName, String clusterName, ClusterUpdate parameters, Context context); /** - * Deletes a Redis Enterprise cache cluster. + * Deletes a RedisEnterprise cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -152,10 +161,11 @@ SyncPoller, ClusterInner> beginUpdate(String resourceGr SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName); /** - * Deletes a Redis Enterprise cache cluster. + * Deletes a RedisEnterprise cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -166,10 +176,11 @@ SyncPoller, ClusterInner> beginUpdate(String resourceGr SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, Context context); /** - * Deletes a Redis Enterprise cache cluster. + * Deletes a RedisEnterprise cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -178,10 +189,11 @@ SyncPoller, ClusterInner> beginUpdate(String resourceGr void delete(String resourceGroupName, String clusterName); /** - * Deletes a Redis Enterprise cache cluster. + * Deletes a RedisEnterprise cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -191,35 +203,37 @@ SyncPoller, ClusterInner> beginUpdate(String resourceGr void delete(String resourceGroupName, String clusterName, Context context); /** - * Gets information about a Redis Enterprise cluster. + * Gets information about a RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a Redis Enterprise cluster along with {@link Response}. + * @return information about a RedisEnterprise cluster along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getByResourceGroupWithResponse(String resourceGroupName, String clusterName, Context context); /** - * Gets information about a Redis Enterprise cluster. + * Gets information about a RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a Redis Enterprise cluster. + * @return information about a RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) ClusterInner getByResourceGroup(String resourceGroupName, String clusterName); /** - * Lists all Redis Enterprise clusters in a resource group. + * Lists all RedisEnterprise clusters in a resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -231,7 +245,7 @@ Response getByResourceGroupWithResponse(String resourceGroupName, PagedIterable listByResourceGroup(String resourceGroupName); /** - * Lists all Redis Enterprise clusters in a resource group. + * Lists all RedisEnterprise clusters in a resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. @@ -244,23 +258,25 @@ Response getByResourceGroupWithResponse(String resourceGroupName, PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * Lists all Redis Enterprise clusters in the specified subscription. + * Gets all RedisEnterprise clusters in the specified subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a list-all operation as paginated response with {@link PagedIterable}. + * @return all RedisEnterprise clusters in the specified subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); /** - * Lists all Redis Enterprise clusters in the specified subscription. + * Gets all RedisEnterprise clusters in the specified subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a list-all operation as paginated response with {@link PagedIterable}. + * @return all RedisEnterprise clusters in the specified subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/AccessPolicyAssignmentInner.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/AccessPolicyAssignmentInner.java deleted file mode 100644 index 5b13cb1f290a6..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/AccessPolicyAssignmentInner.java +++ /dev/null @@ -1,197 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.ProxyResource; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.redisenterprise.models.AccessPolicyAssignmentPropertiesUser; -import com.azure.resourcemanager.redisenterprise.models.ProvisioningState; -import java.io.IOException; - -/** - * Describes the access policy assignment of Redis Enterprise database. - */ -@Fluent -public final class AccessPolicyAssignmentInner extends ProxyResource { - /* - * Properties of the access policy assignment. - */ - private AccessPolicyAssignmentProperties innerProperties; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of AccessPolicyAssignmentInner class. - */ - public AccessPolicyAssignmentInner() { - } - - /** - * Get the innerProperties property: Properties of the access policy assignment. - * - * @return the innerProperties value. - */ - private AccessPolicyAssignmentProperties innerProperties() { - return this.innerProperties; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * Get the provisioningState property: Current provisioning status of the access policy assignment. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); - } - - /** - * Get the accessPolicyName property: Name of access policy under specific access policy assignment. Only "default" - * policy is supported for now. - * - * @return the accessPolicyName value. - */ - public String accessPolicyName() { - return this.innerProperties() == null ? null : this.innerProperties().accessPolicyName(); - } - - /** - * Set the accessPolicyName property: Name of access policy under specific access policy assignment. Only "default" - * policy is supported for now. - * - * @param accessPolicyName the accessPolicyName value to set. - * @return the AccessPolicyAssignmentInner object itself. - */ - public AccessPolicyAssignmentInner withAccessPolicyName(String accessPolicyName) { - if (this.innerProperties() == null) { - this.innerProperties = new AccessPolicyAssignmentProperties(); - } - this.innerProperties().withAccessPolicyName(accessPolicyName); - return this; - } - - /** - * Get the user property: The user associated with the access policy. - * - * @return the user value. - */ - public AccessPolicyAssignmentPropertiesUser user() { - return this.innerProperties() == null ? null : this.innerProperties().user(); - } - - /** - * Set the user property: The user associated with the access policy. - * - * @param user the user value to set. - * @return the AccessPolicyAssignmentInner object itself. - */ - public AccessPolicyAssignmentInner withUser(AccessPolicyAssignmentPropertiesUser user) { - if (this.innerProperties() == null) { - this.innerProperties = new AccessPolicyAssignmentProperties(); - } - this.innerProperties().withUser(user); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("properties", this.innerProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of AccessPolicyAssignmentInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of AccessPolicyAssignmentInner if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the AccessPolicyAssignmentInner. - */ - public static AccessPolicyAssignmentInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - AccessPolicyAssignmentInner deserializedAccessPolicyAssignmentInner = new AccessPolicyAssignmentInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedAccessPolicyAssignmentInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedAccessPolicyAssignmentInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedAccessPolicyAssignmentInner.type = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedAccessPolicyAssignmentInner.innerProperties - = AccessPolicyAssignmentProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedAccessPolicyAssignmentInner; - }); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/AccessPolicyAssignmentProperties.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/AccessPolicyAssignmentProperties.java deleted file mode 100644 index 20d86543af279..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/AccessPolicyAssignmentProperties.java +++ /dev/null @@ -1,162 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.redisenterprise.models.AccessPolicyAssignmentPropertiesUser; -import com.azure.resourcemanager.redisenterprise.models.ProvisioningState; -import java.io.IOException; - -/** - * Redis Enterprise database access policy assignment properties - * - * Properties of Redis Enterprise database access policy assignment. - */ -@Fluent -public final class AccessPolicyAssignmentProperties implements JsonSerializable { - /* - * Current provisioning status of the access policy assignment. - */ - private ProvisioningState provisioningState; - - /* - * Name of access policy under specific access policy assignment. Only "default" policy is supported for now. - */ - private String accessPolicyName; - - /* - * The user associated with the access policy. - */ - private AccessPolicyAssignmentPropertiesUser user; - - /** - * Creates an instance of AccessPolicyAssignmentProperties class. - */ - public AccessPolicyAssignmentProperties() { - } - - /** - * Get the provisioningState property: Current provisioning status of the access policy assignment. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the accessPolicyName property: Name of access policy under specific access policy assignment. Only "default" - * policy is supported for now. - * - * @return the accessPolicyName value. - */ - public String accessPolicyName() { - return this.accessPolicyName; - } - - /** - * Set the accessPolicyName property: Name of access policy under specific access policy assignment. Only "default" - * policy is supported for now. - * - * @param accessPolicyName the accessPolicyName value to set. - * @return the AccessPolicyAssignmentProperties object itself. - */ - public AccessPolicyAssignmentProperties withAccessPolicyName(String accessPolicyName) { - this.accessPolicyName = accessPolicyName; - return this; - } - - /** - * Get the user property: The user associated with the access policy. - * - * @return the user value. - */ - public AccessPolicyAssignmentPropertiesUser user() { - return this.user; - } - - /** - * Set the user property: The user associated with the access policy. - * - * @param user the user value to set. - * @return the AccessPolicyAssignmentProperties object itself. - */ - public AccessPolicyAssignmentProperties withUser(AccessPolicyAssignmentPropertiesUser user) { - this.user = user; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (accessPolicyName() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property accessPolicyName in model AccessPolicyAssignmentProperties")); - } - if (user() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property user in model AccessPolicyAssignmentProperties")); - } else { - user().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(AccessPolicyAssignmentProperties.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("accessPolicyName", this.accessPolicyName); - jsonWriter.writeJsonField("user", this.user); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of AccessPolicyAssignmentProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of AccessPolicyAssignmentProperties if the JsonReader was pointing to an instance of it, or - * null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the AccessPolicyAssignmentProperties. - */ - public static AccessPolicyAssignmentProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - AccessPolicyAssignmentProperties deserializedAccessPolicyAssignmentProperties - = new AccessPolicyAssignmentProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("accessPolicyName".equals(fieldName)) { - deserializedAccessPolicyAssignmentProperties.accessPolicyName = reader.getString(); - } else if ("user".equals(fieldName)) { - deserializedAccessPolicyAssignmentProperties.user - = AccessPolicyAssignmentPropertiesUser.fromJson(reader); - } else if ("provisioningState".equals(fieldName)) { - deserializedAccessPolicyAssignmentProperties.provisioningState - = ProvisioningState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedAccessPolicyAssignmentProperties; - }); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/ClusterInner.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/ClusterInner.java index 6ecb0f447549a..413a947aec828 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/ClusterInner.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/ClusterInner.java @@ -11,10 +11,8 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryption; -import com.azure.resourcemanager.redisenterprise.models.HighAvailability; import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentity; import com.azure.resourcemanager.redisenterprise.models.ProvisioningState; -import com.azure.resourcemanager.redisenterprise.models.RedundancyMode; import com.azure.resourcemanager.redisenterprise.models.ResourceState; import com.azure.resourcemanager.redisenterprise.models.Sku; import com.azure.resourcemanager.redisenterprise.models.TlsVersion; @@ -23,7 +21,7 @@ import java.util.Map; /** - * Describes the Redis Enterprise cluster. + * Describes the RedisEnterprise cluster. */ @Fluent public final class ClusterInner extends Resource { @@ -186,34 +184,7 @@ public ClusterInner withTags(Map tags) { } /** - * Get the highAvailability property: 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. - * - * @return the highAvailability value. - */ - public HighAvailability highAvailability() { - return this.innerProperties() == null ? null : this.innerProperties().highAvailability(); - } - - /** - * Set the highAvailability property: 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. - * - * @param highAvailability the highAvailability value to set. - * @return the ClusterInner object itself. - */ - public ClusterInner withHighAvailability(HighAvailability highAvailability) { - if (this.innerProperties() == null) { - this.innerProperties = new ClusterProperties(); - } - this.innerProperties().withHighAvailability(highAvailability); - return this; - } - - /** - * Get the minimumTlsVersion property: 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. + * Get the minimumTlsVersion property: The minimum TLS version for the cluster to support, e.g. '1.2'. * * @return the minimumTlsVersion value. */ @@ -222,9 +193,7 @@ public TlsVersion minimumTlsVersion() { } /** - * Set the minimumTlsVersion property: 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. + * Set the minimumTlsVersion property: The minimum TLS version for the cluster to support, e.g. '1.2'. * * @param minimumTlsVersion the minimumTlsVersion value to set. * @return the ClusterInner object itself. @@ -278,16 +247,6 @@ public ProvisioningState provisioningState() { return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); } - /** - * Get the redundancyMode property: Explains the current redundancy strategy of the cluster, which affects the - * expected SLA. - * - * @return the redundancyMode value. - */ - public RedundancyMode redundancyMode() { - return this.innerProperties() == null ? null : this.innerProperties().redundancyMode(); - } - /** * Get the resourceState property: Current resource status of the cluster. * @@ -308,7 +267,7 @@ public String redisVersion() { /** * Get the privateEndpointConnections property: List of private endpoint connections associated with the specified - * Redis Enterprise cluster. + * RedisEnterprise cluster. * * @return the privateEndpointConnections value. */ diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/ClusterProperties.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/ClusterProperties.java index 669970c6cd569..6a165ea15136d 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/ClusterProperties.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/ClusterProperties.java @@ -10,31 +10,21 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryption; -import com.azure.resourcemanager.redisenterprise.models.HighAvailability; import com.azure.resourcemanager.redisenterprise.models.ProvisioningState; -import com.azure.resourcemanager.redisenterprise.models.RedundancyMode; import com.azure.resourcemanager.redisenterprise.models.ResourceState; import com.azure.resourcemanager.redisenterprise.models.TlsVersion; import java.io.IOException; import java.util.List; /** - * Redis Enterprise cluster properties + * RedisEnterprise cluster properties * - * Properties of Redis Enterprise clusters, as opposed to general resource properties like location, tags. + * Properties of RedisEnterprise clusters, as opposed to general resource properties like location, tags. */ @Fluent public final class ClusterProperties implements JsonSerializable { /* - * 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. - */ - private HighAvailability highAvailability; - - /* - * 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' */ private TlsVersion minimumTlsVersion; @@ -53,11 +43,6 @@ public final class ClusterProperties implements JsonSerializable privateEndpointConnections; @@ -80,31 +65,7 @@ public ClusterProperties() { } /** - * Get the highAvailability property: 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. - * - * @return the highAvailability value. - */ - public HighAvailability highAvailability() { - return this.highAvailability; - } - - /** - * Set the highAvailability property: 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. - * - * @param highAvailability the highAvailability value to set. - * @return the ClusterProperties object itself. - */ - public ClusterProperties withHighAvailability(HighAvailability highAvailability) { - this.highAvailability = highAvailability; - return this; - } - - /** - * Get the minimumTlsVersion property: 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. + * Get the minimumTlsVersion property: The minimum TLS version for the cluster to support, e.g. '1.2'. * * @return the minimumTlsVersion value. */ @@ -113,9 +74,7 @@ public TlsVersion minimumTlsVersion() { } /** - * Set the minimumTlsVersion property: 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. + * Set the minimumTlsVersion property: The minimum TLS version for the cluster to support, e.g. '1.2'. * * @param minimumTlsVersion the minimumTlsVersion value to set. * @return the ClusterProperties object itself. @@ -163,16 +122,6 @@ public ProvisioningState provisioningState() { return this.provisioningState; } - /** - * Get the redundancyMode property: Explains the current redundancy strategy of the cluster, which affects the - * expected SLA. - * - * @return the redundancyMode value. - */ - public RedundancyMode redundancyMode() { - return this.redundancyMode; - } - /** * Get the resourceState property: Current resource status of the cluster. * @@ -193,7 +142,7 @@ public String redisVersion() { /** * Get the privateEndpointConnections property: List of private endpoint connections associated with the specified - * Redis Enterprise cluster. + * RedisEnterprise cluster. * * @return the privateEndpointConnections value. */ @@ -221,8 +170,6 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeStringField("highAvailability", - this.highAvailability == null ? null : this.highAvailability.toString()); jsonWriter.writeStringField("minimumTlsVersion", this.minimumTlsVersion == null ? null : this.minimumTlsVersion.toString()); jsonWriter.writeJsonField("encryption", this.encryption); @@ -244,9 +191,7 @@ public static ClusterProperties fromJson(JsonReader jsonReader) throws IOExcepti String fieldName = reader.getFieldName(); reader.nextToken(); - if ("highAvailability".equals(fieldName)) { - deserializedClusterProperties.highAvailability = HighAvailability.fromString(reader.getString()); - } else if ("minimumTlsVersion".equals(fieldName)) { + if ("minimumTlsVersion".equals(fieldName)) { deserializedClusterProperties.minimumTlsVersion = TlsVersion.fromString(reader.getString()); } else if ("encryption".equals(fieldName)) { deserializedClusterProperties.encryption = ClusterPropertiesEncryption.fromJson(reader); @@ -254,8 +199,6 @@ public static ClusterProperties fromJson(JsonReader jsonReader) throws IOExcepti deserializedClusterProperties.hostname = reader.getString(); } else if ("provisioningState".equals(fieldName)) { deserializedClusterProperties.provisioningState = ProvisioningState.fromString(reader.getString()); - } else if ("redundancyMode".equals(fieldName)) { - deserializedClusterProperties.redundancyMode = RedundancyMode.fromString(reader.getString()); } else if ("resourceState".equals(fieldName)) { deserializedClusterProperties.resourceState = ResourceState.fromString(reader.getString()); } else if ("redisVersion".equals(fieldName)) { diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/DatabaseInner.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/DatabaseInner.java index 24aada795b166..e0bd9e2c95c3c 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/DatabaseInner.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/DatabaseInner.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.management.SystemData; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.redisenterprise.models.AccessKeysAuthentication; import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy; import com.azure.resourcemanager.redisenterprise.models.DatabasePropertiesGeoReplication; -import com.azure.resourcemanager.redisenterprise.models.DeferUpgradeSetting; import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy; import com.azure.resourcemanager.redisenterprise.models.Module; import com.azure.resourcemanager.redisenterprise.models.Persistence; @@ -24,7 +21,7 @@ import java.util.List; /** - * Describes a database on the Redis Enterprise cluster. + * Describes a database on the RedisEnterprise cluster. */ @Fluent public final class DatabaseInner extends ProxyResource { @@ -33,11 +30,6 @@ public final class DatabaseInner extends ProxyResource { */ private DatabaseProperties innerProperties; - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - /* * The type of the resource. */ @@ -68,15 +60,6 @@ private DatabaseProperties innerProperties() { return this.innerProperties; } - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - /** * Get the type property: The type of the resource. * @@ -176,8 +159,7 @@ public ResourceState resourceState() { } /** - * Get the clusteringPolicy property: Clustering policy - default is OSSCluster. This property must be chosen at - * create time, and cannot be changed without deleting the database. + * Get the clusteringPolicy property: Clustering policy - default is OSSCluster. Specified at create time. * * @return the clusteringPolicy value. */ @@ -186,8 +168,7 @@ public ClusteringPolicy clusteringPolicy() { } /** - * Set the clusteringPolicy property: Clustering policy - default is OSSCluster. This property must be chosen at - * create time, and cannot be changed without deleting the database. + * Set the clusteringPolicy property: Clustering policy - default is OSSCluster. Specified at create time. * * @param clusteringPolicy the clusteringPolicy value to set. * @return the DatabaseInner object itself. @@ -294,65 +275,6 @@ public DatabaseInner withGeoReplication(DatabasePropertiesGeoReplication geoRepl return this; } - /** - * Get the redisVersion property: Version of Redis the database is running on, e.g. '6.0'. - * - * @return the redisVersion value. - */ - public String redisVersion() { - return this.innerProperties() == null ? null : this.innerProperties().redisVersion(); - } - - /** - * Get the deferUpgrade property: Option to defer upgrade when newest version is released - default is NotDeferred. - * Learn more: https://aka.ms/redisversionupgrade. - * - * @return the deferUpgrade value. - */ - public DeferUpgradeSetting deferUpgrade() { - return this.innerProperties() == null ? null : this.innerProperties().deferUpgrade(); - } - - /** - * Set the deferUpgrade property: Option to defer upgrade when newest version is released - default is NotDeferred. - * Learn more: https://aka.ms/redisversionupgrade. - * - * @param deferUpgrade the deferUpgrade value to set. - * @return the DatabaseInner object itself. - */ - public DatabaseInner withDeferUpgrade(DeferUpgradeSetting deferUpgrade) { - if (this.innerProperties() == null) { - this.innerProperties = new DatabaseProperties(); - } - this.innerProperties().withDeferUpgrade(deferUpgrade); - return this; - } - - /** - * Get the accessKeysAuthentication property: This property can be Enabled/Disabled to allow or deny access with the - * current access keys. Can be updated even after database is created. - * - * @return the accessKeysAuthentication value. - */ - public AccessKeysAuthentication accessKeysAuthentication() { - return this.innerProperties() == null ? null : this.innerProperties().accessKeysAuthentication(); - } - - /** - * Set the accessKeysAuthentication property: This property can be Enabled/Disabled to allow or deny access with the - * current access keys. Can be updated even after database is created. - * - * @param accessKeysAuthentication the accessKeysAuthentication value to set. - * @return the DatabaseInner object itself. - */ - public DatabaseInner withAccessKeysAuthentication(AccessKeysAuthentication accessKeysAuthentication) { - if (this.innerProperties() == null) { - this.innerProperties = new DatabaseProperties(); - } - this.innerProperties().withAccessKeysAuthentication(accessKeysAuthentication); - return this; - } - /** * Validates the instance. * @@ -398,8 +320,6 @@ public static DatabaseInner fromJson(JsonReader jsonReader) throws IOException { deserializedDatabaseInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedDatabaseInner.innerProperties = DatabaseProperties.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedDatabaseInner.systemData = SystemData.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/DatabaseProperties.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/DatabaseProperties.java index ff8f4e89c5e42..0b2046df2bcfe 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/DatabaseProperties.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/DatabaseProperties.java @@ -9,10 +9,8 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.redisenterprise.models.AccessKeysAuthentication; import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy; import com.azure.resourcemanager.redisenterprise.models.DatabasePropertiesGeoReplication; -import com.azure.resourcemanager.redisenterprise.models.DeferUpgradeSetting; import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy; import com.azure.resourcemanager.redisenterprise.models.Module; import com.azure.resourcemanager.redisenterprise.models.Persistence; @@ -23,9 +21,9 @@ import java.util.List; /** - * Redis Enterprise database properties + * RedisEnterprise database properties * - * Properties of Redis Enterprise databases, as opposed to general resource properties like location, tags. + * Properties of RedisEnterprise databases, as opposed to general resource properties like location, tags. */ @Fluent public final class DatabaseProperties implements JsonSerializable { @@ -51,8 +49,7 @@ public final class DatabaseProperties implements JsonSerializable writer.writeJson(element)); jsonWriter.writeJsonField("geoReplication", this.geoReplication); - jsonWriter.writeStringField("deferUpgrade", this.deferUpgrade == null ? null : this.deferUpgrade.toString()); - jsonWriter.writeStringField("accessKeysAuthentication", - this.accessKeysAuthentication == null ? null : this.accessKeysAuthentication.toString()); return jsonWriter.writeEndObject(); } @@ -391,13 +313,6 @@ public static DatabaseProperties fromJson(JsonReader jsonReader) throws IOExcept deserializedDatabaseProperties.modules = modules; } else if ("geoReplication".equals(fieldName)) { deserializedDatabaseProperties.geoReplication = DatabasePropertiesGeoReplication.fromJson(reader); - } else if ("redisVersion".equals(fieldName)) { - deserializedDatabaseProperties.redisVersion = reader.getString(); - } else if ("deferUpgrade".equals(fieldName)) { - deserializedDatabaseProperties.deferUpgrade = DeferUpgradeSetting.fromString(reader.getString()); - } else if ("accessKeysAuthentication".equals(fieldName)) { - deserializedDatabaseProperties.accessKeysAuthentication - = AccessKeysAuthentication.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/AccessPolicyAssignmentImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/AccessPolicyAssignmentImpl.java deleted file mode 100644 index f985bc88dca04..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/AccessPolicyAssignmentImpl.java +++ /dev/null @@ -1,150 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.implementation; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.redisenterprise.fluent.models.AccessPolicyAssignmentInner; -import com.azure.resourcemanager.redisenterprise.models.AccessPolicyAssignment; -import com.azure.resourcemanager.redisenterprise.models.AccessPolicyAssignmentPropertiesUser; -import com.azure.resourcemanager.redisenterprise.models.ProvisioningState; - -public final class AccessPolicyAssignmentImpl - implements AccessPolicyAssignment, AccessPolicyAssignment.Definition, AccessPolicyAssignment.Update { - private AccessPolicyAssignmentInner innerObject; - - private final com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public ProvisioningState provisioningState() { - return this.innerModel().provisioningState(); - } - - public String accessPolicyName() { - return this.innerModel().accessPolicyName(); - } - - public AccessPolicyAssignmentPropertiesUser user() { - return this.innerModel().user(); - } - - public String resourceGroupName() { - return resourceGroupName; - } - - public AccessPolicyAssignmentInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String clusterName; - - private String databaseName; - - private String accessPolicyAssignmentName; - - public AccessPolicyAssignmentImpl withExistingDatabase(String resourceGroupName, String clusterName, - String databaseName) { - this.resourceGroupName = resourceGroupName; - this.clusterName = clusterName; - this.databaseName = databaseName; - return this; - } - - public AccessPolicyAssignment create() { - this.innerObject = serviceManager.serviceClient() - .getAccessPolicyAssignments() - .createUpdate(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, this.innerModel(), - Context.NONE); - return this; - } - - public AccessPolicyAssignment create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getAccessPolicyAssignments() - .createUpdate(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, this.innerModel(), - context); - return this; - } - - AccessPolicyAssignmentImpl(String name, - com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager serviceManager) { - this.innerObject = new AccessPolicyAssignmentInner(); - this.serviceManager = serviceManager; - this.accessPolicyAssignmentName = name; - } - - public AccessPolicyAssignmentImpl update() { - return this; - } - - public AccessPolicyAssignment apply() { - this.innerObject = serviceManager.serviceClient() - .getAccessPolicyAssignments() - .createUpdate(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, this.innerModel(), - Context.NONE); - return this; - } - - public AccessPolicyAssignment apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getAccessPolicyAssignments() - .createUpdate(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, this.innerModel(), - context); - return this; - } - - AccessPolicyAssignmentImpl(AccessPolicyAssignmentInner innerObject, - com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.clusterName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "redisEnterprise"); - this.databaseName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "databases"); - this.accessPolicyAssignmentName - = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "accessPolicyAssignments"); - } - - public AccessPolicyAssignment refresh() { - this.innerObject = serviceManager.serviceClient() - .getAccessPolicyAssignments() - .getWithResponse(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, Context.NONE) - .getValue(); - return this; - } - - public AccessPolicyAssignment refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getAccessPolicyAssignments() - .getWithResponse(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, context) - .getValue(); - return this; - } - - public AccessPolicyAssignmentImpl withAccessPolicyName(String accessPolicyName) { - this.innerModel().withAccessPolicyName(accessPolicyName); - return this; - } - - public AccessPolicyAssignmentImpl withUser(AccessPolicyAssignmentPropertiesUser user) { - this.innerModel().withUser(user); - return this; - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/AccessPolicyAssignmentsClientImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/AccessPolicyAssignmentsClientImpl.java deleted file mode 100644 index 90a69388eb192..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/AccessPolicyAssignmentsClientImpl.java +++ /dev/null @@ -1,1020 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.redisenterprise.fluent.AccessPolicyAssignmentsClient; -import com.azure.resourcemanager.redisenterprise.fluent.models.AccessPolicyAssignmentInner; -import com.azure.resourcemanager.redisenterprise.models.AccessPolicyAssignmentList; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in AccessPolicyAssignmentsClient. - */ -public final class AccessPolicyAssignmentsClientImpl implements AccessPolicyAssignmentsClient { - /** - * The proxy service used to perform REST calls. - */ - private final AccessPolicyAssignmentsService service; - - /** - * The service client containing this operation class. - */ - private final RedisEnterpriseManagementClientImpl client; - - /** - * Initializes an instance of AccessPolicyAssignmentsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - AccessPolicyAssignmentsClientImpl(RedisEnterpriseManagementClientImpl client) { - this.service = RestProxy.create(AccessPolicyAssignmentsService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for RedisEnterpriseManagementClientAccessPolicyAssignments to be used by - * the proxy service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "RedisEnterpriseManag") - public interface AccessPolicyAssignmentsService { - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, - @PathParam("databaseName") String databaseName, - @PathParam("accessPolicyAssignmentName") String accessPolicyAssignmentName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") AccessPolicyAssignmentInner parameters, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, - @PathParam("databaseName") String databaseName, - @PathParam("accessPolicyAssignmentName") String accessPolicyAssignmentName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}") - @ExpectedResponses({ 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, - @PathParam("databaseName") String databaseName, - @PathParam("accessPolicyAssignmentName") String accessPolicyAssignmentName, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, - @PathParam("databaseName") String databaseName, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Creates/Updates a particular access policy assignment for a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @param parameters Parameters supplied to the create access policy assignment for database. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the access policy assignment of Redis Enterprise database along with {@link Response} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createUpdateWithResponseAsync(String resourceGroupName, String clusterName, - String databaseName, String accessPolicyAssignmentName, AccessPolicyAssignmentInner parameters) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (clusterName == null) { - return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (accessPolicyAssignmentName == null) { - return Mono.error( - new IllegalArgumentException("Parameter accessPolicyAssignmentName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, this.client.getApiVersion(), - parameters, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates/Updates a particular access policy assignment for a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @param parameters Parameters supplied to the create access policy assignment for database. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the access policy assignment of Redis Enterprise database along with {@link Response} on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createUpdateWithResponseAsync(String resourceGroupName, String clusterName, - String databaseName, String accessPolicyAssignmentName, AccessPolicyAssignmentInner parameters, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (clusterName == null) { - return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (accessPolicyAssignmentName == null) { - return Mono.error( - new IllegalArgumentException("Parameter accessPolicyAssignmentName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - clusterName, databaseName, accessPolicyAssignmentName, this.client.getApiVersion(), parameters, accept, - context); - } - - /** - * Creates/Updates a particular access policy assignment for a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @param parameters Parameters supplied to the create access policy assignment for database. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of describes the access policy assignment of Redis Enterprise - * database. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, AccessPolicyAssignmentInner> beginCreateUpdateAsync( - String resourceGroupName, String clusterName, String databaseName, String accessPolicyAssignmentName, - AccessPolicyAssignmentInner parameters) { - Mono>> mono = createUpdateWithResponseAsync(resourceGroupName, clusterName, - databaseName, accessPolicyAssignmentName, parameters); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), AccessPolicyAssignmentInner.class, AccessPolicyAssignmentInner.class, - this.client.getContext()); - } - - /** - * Creates/Updates a particular access policy assignment for a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @param parameters Parameters supplied to the create access policy assignment for database. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of describes the access policy assignment of Redis Enterprise - * database. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, AccessPolicyAssignmentInner> beginCreateUpdateAsync( - String resourceGroupName, String clusterName, String databaseName, String accessPolicyAssignmentName, - AccessPolicyAssignmentInner parameters, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = createUpdateWithResponseAsync(resourceGroupName, clusterName, - databaseName, accessPolicyAssignmentName, parameters, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), AccessPolicyAssignmentInner.class, AccessPolicyAssignmentInner.class, - context); - } - - /** - * Creates/Updates a particular access policy assignment for a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @param parameters Parameters supplied to the create access policy assignment for database. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of describes the access policy assignment of Redis Enterprise - * database. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, AccessPolicyAssignmentInner> beginCreateUpdate( - String resourceGroupName, String clusterName, String databaseName, String accessPolicyAssignmentName, - AccessPolicyAssignmentInner parameters) { - return this - .beginCreateUpdateAsync(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, - parameters) - .getSyncPoller(); - } - - /** - * Creates/Updates a particular access policy assignment for a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @param parameters Parameters supplied to the create access policy assignment for database. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of describes the access policy assignment of Redis Enterprise - * database. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, AccessPolicyAssignmentInner> beginCreateUpdate( - String resourceGroupName, String clusterName, String databaseName, String accessPolicyAssignmentName, - AccessPolicyAssignmentInner parameters, Context context) { - return this - .beginCreateUpdateAsync(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, - parameters, context) - .getSyncPoller(); - } - - /** - * Creates/Updates a particular access policy assignment for a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @param parameters Parameters supplied to the create access policy assignment for database. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the access policy assignment of Redis Enterprise database on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createUpdateAsync(String resourceGroupName, String clusterName, - String databaseName, String accessPolicyAssignmentName, AccessPolicyAssignmentInner parameters) { - return beginCreateUpdateAsync(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, - parameters).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates/Updates a particular access policy assignment for a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @param parameters Parameters supplied to the create access policy assignment for database. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the access policy assignment of Redis Enterprise database on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createUpdateAsync(String resourceGroupName, String clusterName, - String databaseName, String accessPolicyAssignmentName, AccessPolicyAssignmentInner parameters, - Context context) { - return beginCreateUpdateAsync(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, - parameters, context).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates/Updates a particular access policy assignment for a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @param parameters Parameters supplied to the create access policy assignment for database. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the access policy assignment of Redis Enterprise database. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public AccessPolicyAssignmentInner createUpdate(String resourceGroupName, String clusterName, String databaseName, - String accessPolicyAssignmentName, AccessPolicyAssignmentInner parameters) { - return createUpdateAsync(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, parameters) - .block(); - } - - /** - * Creates/Updates a particular access policy assignment for a database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @param parameters Parameters supplied to the create access policy assignment for database. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the access policy assignment of Redis Enterprise database. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public AccessPolicyAssignmentInner createUpdate(String resourceGroupName, String clusterName, String databaseName, - String accessPolicyAssignmentName, AccessPolicyAssignmentInner parameters, Context context) { - return createUpdateAsync(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, parameters, - context).block(); - } - - /** - * Gets information about access policy assignment for database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about access policy assignment for database along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String clusterName, String databaseName, String accessPolicyAssignmentName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (clusterName == null) { - return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (accessPolicyAssignmentName == null) { - return Mono.error( - new IllegalArgumentException("Parameter accessPolicyAssignmentName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, this.client.getApiVersion(), - accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets information about access policy assignment for database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about access policy assignment for database along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String clusterName, String databaseName, String accessPolicyAssignmentName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (clusterName == null) { - return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (accessPolicyAssignmentName == null) { - return Mono.error( - new IllegalArgumentException("Parameter accessPolicyAssignmentName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, clusterName, - databaseName, accessPolicyAssignmentName, this.client.getApiVersion(), accept, context); - } - - /** - * Gets information about access policy assignment for database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about access policy assignment for database on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String clusterName, - String databaseName, String accessPolicyAssignmentName) { - return getWithResponseAsync(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Gets information about access policy assignment for database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about access policy assignment for database along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String clusterName, - String databaseName, String accessPolicyAssignmentName, Context context) { - return getWithResponseAsync(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, context) - .block(); - } - - /** - * Gets information about access policy assignment for database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about access policy assignment for database. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public AccessPolicyAssignmentInner get(String resourceGroupName, String clusterName, String databaseName, - String accessPolicyAssignmentName) { - return getWithResponse(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, Context.NONE) - .getValue(); - } - - /** - * Deletes a single access policy assignment. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName, - String databaseName, String accessPolicyAssignmentName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (clusterName == null) { - return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (accessPolicyAssignmentName == null) { - return Mono.error( - new IllegalArgumentException("Parameter accessPolicyAssignmentName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, this.client.getApiVersion(), - accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes a single access policy assignment. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName, - String databaseName, String accessPolicyAssignmentName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (clusterName == null) { - return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (accessPolicyAssignmentName == null) { - return Mono.error( - new IllegalArgumentException("Parameter accessPolicyAssignmentName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - clusterName, databaseName, accessPolicyAssignmentName, this.client.getApiVersion(), accept, context); - } - - /** - * Deletes a single access policy assignment. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName, - String databaseName, String accessPolicyAssignmentName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Deletes a single access policy assignment. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName, - String databaseName, String accessPolicyAssignmentName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, clusterName, databaseName, - accessPolicyAssignmentName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Deletes a single access policy assignment. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, - String databaseName, String accessPolicyAssignmentName) { - return this.beginDeleteAsync(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName) - .getSyncPoller(); - } - - /** - * Deletes a single access policy assignment. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, - String databaseName, String accessPolicyAssignmentName, Context context) { - return this.beginDeleteAsync(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, context) - .getSyncPoller(); - } - - /** - * Deletes a single access policy assignment. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String clusterName, String databaseName, - String accessPolicyAssignmentName) { - return beginDeleteAsync(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes a single access policy assignment. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String clusterName, String databaseName, - String accessPolicyAssignmentName, Context context) { - return beginDeleteAsync(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Deletes a single access policy assignment. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String clusterName, String databaseName, - String accessPolicyAssignmentName) { - deleteAsync(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName).block(); - } - - /** - * Deletes a single access policy assignment. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String clusterName, String databaseName, - String accessPolicyAssignmentName, Context context) { - deleteAsync(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, context).block(); - } - - /** - * Gets all access policy assignments.. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all access policy assignments. along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String clusterName, String databaseName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (clusterName == null) { - return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, clusterName, databaseName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets all access policy assignments.. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all access policy assignments. along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String clusterName, String databaseName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (clusterName == null) { - return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, clusterName, databaseName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Gets all access policy assignments.. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all access policy assignments. as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String clusterName, - String databaseName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterName, databaseName), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Gets all access policy assignments.. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all access policy assignments. as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String clusterName, - String databaseName, Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterName, databaseName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Gets all access policy assignments.. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all access policy assignments. as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String clusterName, - String databaseName) { - return new PagedIterable<>(listAsync(resourceGroupName, clusterName, databaseName)); - } - - /** - * Gets all access policy assignments.. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all access policy assignments. as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String clusterName, - String databaseName, Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, clusterName, databaseName, context)); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a list-all operation along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a list-all operation along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.listNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/AccessPolicyAssignmentsImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/AccessPolicyAssignmentsImpl.java deleted file mode 100644 index 175841a1636e3..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/AccessPolicyAssignmentsImpl.java +++ /dev/null @@ -1,186 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.redisenterprise.fluent.AccessPolicyAssignmentsClient; -import com.azure.resourcemanager.redisenterprise.fluent.models.AccessPolicyAssignmentInner; -import com.azure.resourcemanager.redisenterprise.models.AccessPolicyAssignment; -import com.azure.resourcemanager.redisenterprise.models.AccessPolicyAssignments; - -public final class AccessPolicyAssignmentsImpl implements AccessPolicyAssignments { - private static final ClientLogger LOGGER = new ClientLogger(AccessPolicyAssignmentsImpl.class); - - private final AccessPolicyAssignmentsClient innerClient; - - private final com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager serviceManager; - - public AccessPolicyAssignmentsImpl(AccessPolicyAssignmentsClient innerClient, - com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response getWithResponse(String resourceGroupName, String clusterName, - String databaseName, String accessPolicyAssignmentName, Context context) { - Response inner = this.serviceClient() - .getWithResponse(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new AccessPolicyAssignmentImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public AccessPolicyAssignment get(String resourceGroupName, String clusterName, String databaseName, - String accessPolicyAssignmentName) { - AccessPolicyAssignmentInner inner - = this.serviceClient().get(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName); - if (inner != null) { - return new AccessPolicyAssignmentImpl(inner, this.manager()); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String clusterName, String databaseName, - String accessPolicyAssignmentName) { - this.serviceClient().delete(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName); - } - - public void delete(String resourceGroupName, String clusterName, String databaseName, - String accessPolicyAssignmentName, Context context) { - this.serviceClient().delete(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, context); - } - - public PagedIterable list(String resourceGroupName, String clusterName, - String databaseName) { - PagedIterable inner - = this.serviceClient().list(resourceGroupName, clusterName, databaseName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new AccessPolicyAssignmentImpl(inner1, this.manager())); - } - - public PagedIterable list(String resourceGroupName, String clusterName, String databaseName, - Context context) { - PagedIterable inner - = this.serviceClient().list(resourceGroupName, clusterName, databaseName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new AccessPolicyAssignmentImpl(inner1, this.manager())); - } - - public AccessPolicyAssignment getById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "redisEnterprise"); - if (clusterName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'redisEnterprise'.", id))); - } - String databaseName = ResourceManagerUtils.getValueFromIdByName(id, "databases"); - if (databaseName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'databases'.", id))); - } - String accessPolicyAssignmentName = ResourceManagerUtils.getValueFromIdByName(id, "accessPolicyAssignments"); - if (accessPolicyAssignmentName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException(String - .format("The resource ID '%s' is not valid. Missing path segment 'accessPolicyAssignments'.", id))); - } - return this - .getWithResponse(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, Context.NONE) - .getValue(); - } - - public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "redisEnterprise"); - if (clusterName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'redisEnterprise'.", id))); - } - String databaseName = ResourceManagerUtils.getValueFromIdByName(id, "databases"); - if (databaseName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'databases'.", id))); - } - String accessPolicyAssignmentName = ResourceManagerUtils.getValueFromIdByName(id, "accessPolicyAssignments"); - if (accessPolicyAssignmentName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException(String - .format("The resource ID '%s' is not valid. Missing path segment 'accessPolicyAssignments'.", id))); - } - return this.getWithResponse(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, context); - } - - public void deleteById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "redisEnterprise"); - if (clusterName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'redisEnterprise'.", id))); - } - String databaseName = ResourceManagerUtils.getValueFromIdByName(id, "databases"); - if (databaseName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'databases'.", id))); - } - String accessPolicyAssignmentName = ResourceManagerUtils.getValueFromIdByName(id, "accessPolicyAssignments"); - if (accessPolicyAssignmentName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException(String - .format("The resource ID '%s' is not valid. Missing path segment 'accessPolicyAssignments'.", id))); - } - this.delete(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, Context.NONE); - } - - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "redisEnterprise"); - if (clusterName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'redisEnterprise'.", id))); - } - String databaseName = ResourceManagerUtils.getValueFromIdByName(id, "databases"); - if (databaseName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'databases'.", id))); - } - String accessPolicyAssignmentName = ResourceManagerUtils.getValueFromIdByName(id, "accessPolicyAssignments"); - if (accessPolicyAssignmentName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException(String - .format("The resource ID '%s' is not valid. Missing path segment 'accessPolicyAssignments'.", id))); - } - this.delete(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, context); - } - - private AccessPolicyAssignmentsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager() { - return this.serviceManager; - } - - public AccessPolicyAssignmentImpl define(String name) { - return new AccessPolicyAssignmentImpl(name, this.manager()); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/ClusterImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/ClusterImpl.java index 6a56fb524eeb0..5742a6a9f971f 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/ClusterImpl.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/ClusterImpl.java @@ -11,11 +11,9 @@ import com.azure.resourcemanager.redisenterprise.models.Cluster; import com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryption; import com.azure.resourcemanager.redisenterprise.models.ClusterUpdate; -import com.azure.resourcemanager.redisenterprise.models.HighAvailability; import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentity; import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointConnection; import com.azure.resourcemanager.redisenterprise.models.ProvisioningState; -import com.azure.resourcemanager.redisenterprise.models.RedundancyMode; import com.azure.resourcemanager.redisenterprise.models.ResourceState; import com.azure.resourcemanager.redisenterprise.models.Sku; import com.azure.resourcemanager.redisenterprise.models.TlsVersion; @@ -71,10 +69,6 @@ public ManagedServiceIdentity identity() { return this.innerModel().identity(); } - public HighAvailability highAvailability() { - return this.innerModel().highAvailability(); - } - public TlsVersion minimumTlsVersion() { return this.innerModel().minimumTlsVersion(); } @@ -91,10 +85,6 @@ public ProvisioningState provisioningState() { return this.innerModel().provisioningState(); } - public RedundancyMode redundancyMode() { - return this.innerModel().redundancyMode(); - } - public ResourceState resourceState() { return this.innerModel().resourceState(); } @@ -253,16 +243,6 @@ public ClusterImpl withIdentity(ManagedServiceIdentity identity) { } } - public ClusterImpl withHighAvailability(HighAvailability highAvailability) { - if (isInCreateMode()) { - this.innerModel().withHighAvailability(highAvailability); - return this; - } else { - this.updateParameters.withHighAvailability(highAvailability); - return this; - } - } - public ClusterImpl withMinimumTlsVersion(TlsVersion minimumTlsVersion) { if (isInCreateMode()) { this.innerModel().withMinimumTlsVersion(minimumTlsVersion); diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/DatabaseImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/DatabaseImpl.java index ab38b8435a8d6..02c083ca97ca6 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/DatabaseImpl.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/DatabaseImpl.java @@ -5,16 +5,13 @@ package com.azure.resourcemanager.redisenterprise.implementation; import com.azure.core.http.rest.Response; -import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.redisenterprise.fluent.models.DatabaseInner; import com.azure.resourcemanager.redisenterprise.models.AccessKeys; -import com.azure.resourcemanager.redisenterprise.models.AccessKeysAuthentication; import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy; import com.azure.resourcemanager.redisenterprise.models.Database; import com.azure.resourcemanager.redisenterprise.models.DatabasePropertiesGeoReplication; import com.azure.resourcemanager.redisenterprise.models.DatabaseUpdate; -import com.azure.resourcemanager.redisenterprise.models.DeferUpgradeSetting; import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy; import com.azure.resourcemanager.redisenterprise.models.ExportClusterParameters; import com.azure.resourcemanager.redisenterprise.models.FlushParameters; @@ -47,10 +44,6 @@ public String type() { return this.innerModel().type(); } - public SystemData systemData() { - return this.innerModel().systemData(); - } - public Protocol clientProtocol() { return this.innerModel().clientProtocol(); } @@ -92,18 +85,6 @@ public DatabasePropertiesGeoReplication geoReplication() { return this.innerModel().geoReplication(); } - public String redisVersion() { - return this.innerModel().redisVersion(); - } - - public DeferUpgradeSetting deferUpgrade() { - return this.innerModel().deferUpgrade(); - } - - public AccessKeysAuthentication accessKeysAuthentication() { - return this.innerModel().accessKeysAuthentication(); - } - public String resourceGroupName() { return resourceGroupName; } @@ -253,14 +234,6 @@ public void flush(FlushParameters parameters, Context context) { serviceManager.databases().flush(resourceGroupName, clusterName, databaseName, parameters, context); } - public void upgradeDBRedisVersion() { - serviceManager.databases().upgradeDBRedisVersion(resourceGroupName, clusterName, databaseName); - } - - public void upgradeDBRedisVersion(Context context) { - serviceManager.databases().upgradeDBRedisVersion(resourceGroupName, clusterName, databaseName, context); - } - public DatabaseImpl withClientProtocol(Protocol clientProtocol) { if (isInCreateMode()) { this.innerModel().withClientProtocol(clientProtocol); @@ -311,26 +284,6 @@ public DatabaseImpl withGeoReplication(DatabasePropertiesGeoReplication geoRepli return this; } - public DatabaseImpl withDeferUpgrade(DeferUpgradeSetting deferUpgrade) { - if (isInCreateMode()) { - this.innerModel().withDeferUpgrade(deferUpgrade); - return this; - } else { - this.updateParameters.withDeferUpgrade(deferUpgrade); - return this; - } - } - - public DatabaseImpl withAccessKeysAuthentication(AccessKeysAuthentication accessKeysAuthentication) { - if (isInCreateMode()) { - this.innerModel().withAccessKeysAuthentication(accessKeysAuthentication); - return this; - } else { - this.updateParameters.withAccessKeysAuthentication(accessKeysAuthentication); - return this; - } - } - private boolean isInCreateMode() { return this.innerModel().id() == null; } diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/DatabasesClientImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/DatabasesClientImpl.java index 753214b0287ea..f2d0c32eb0c00 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/DatabasesClientImpl.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/DatabasesClientImpl.java @@ -203,15 +203,6 @@ Mono>> flush(@HostParam("$host") String endpoint, @BodyParam("application/json") FlushParameters parameters, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/upgradeDBRedisVersion") - @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> upgradeDBRedisVersion(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, - @PathParam("databaseName") String databaseName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -221,14 +212,15 @@ Mono> listByClusterNext(@PathParam(value = "nextLink", en } /** - * Gets all databases in the specified Redis Enterprise cluster. + * Gets all databases in the specified RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all databases in the specified Redis Enterprise cluster along with {@link PagedResponse} on successful + * @return all databases in the specified RedisEnterprise cluster along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -259,15 +251,16 @@ private Mono> listByClusterSinglePageAsync(String r } /** - * Gets all databases in the specified Redis Enterprise cluster. + * Gets all databases in the specified RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all databases in the specified Redis Enterprise cluster along with {@link PagedResponse} on successful + * @return all databases in the specified RedisEnterprise cluster along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -298,14 +291,15 @@ private Mono> listByClusterSinglePageAsync(String r } /** - * Gets all databases in the specified Redis Enterprise cluster. + * Gets all databases in the specified RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all databases in the specified Redis Enterprise cluster as paginated response with {@link PagedFlux}. + * @return all databases in the specified RedisEnterprise cluster as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByClusterAsync(String resourceGroupName, String clusterName) { @@ -314,15 +308,16 @@ private PagedFlux listByClusterAsync(String resourceGroupName, St } /** - * Gets all databases in the specified Redis Enterprise cluster. + * Gets all databases in the specified RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all databases in the specified Redis Enterprise cluster as paginated response with {@link PagedFlux}. + * @return all databases in the specified RedisEnterprise cluster as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByClusterAsync(String resourceGroupName, String clusterName, Context context) { @@ -331,14 +326,15 @@ private PagedFlux listByClusterAsync(String resourceGroupName, St } /** - * Gets all databases in the specified Redis Enterprise cluster. + * Gets all databases in the specified RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all databases in the specified Redis Enterprise cluster as paginated response with {@link PagedIterable}. + * @return all databases in the specified RedisEnterprise cluster as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByCluster(String resourceGroupName, String clusterName) { @@ -346,15 +342,16 @@ public PagedIterable listByCluster(String resourceGroupName, Stri } /** - * Gets all databases in the specified Redis Enterprise cluster. + * Gets all databases in the specified RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all databases in the specified Redis Enterprise cluster as paginated response with {@link PagedIterable}. + * @return all databases in the specified RedisEnterprise cluster as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByCluster(String resourceGroupName, String clusterName, Context context) { @@ -365,13 +362,14 @@ public PagedIterable listByCluster(String resourceGroupName, Stri * Creates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes a database on the Redis Enterprise cluster along with {@link Response} on successful completion + * @return describes a database on the RedisEnterprise cluster along with {@link Response} on successful completion * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -412,14 +410,15 @@ private Mono>> createWithResponseAsync(String resource * Creates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes a database on the Redis Enterprise cluster along with {@link Response} on successful completion + * @return describes a database on the RedisEnterprise cluster along with {@link Response} on successful completion * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -458,13 +457,14 @@ private Mono>> createWithResponseAsync(String resource * Creates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of describes a database on the Redis Enterprise cluster. + * @return the {@link PollerFlux} for polling of describes a database on the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DatabaseInner> beginCreateAsync(String resourceGroupName, @@ -479,14 +479,15 @@ private PollerFlux, DatabaseInner> beginCreateAsync(St * Creates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of describes a database on the Redis Enterprise cluster. + * @return the {@link PollerFlux} for polling of describes a database on the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DatabaseInner> beginCreateAsync(String resourceGroupName, @@ -502,13 +503,14 @@ private PollerFlux, DatabaseInner> beginCreateAsync(St * Creates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of describes a database on the Redis Enterprise cluster. + * @return the {@link SyncPoller} for polling of describes a database on the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DatabaseInner> beginCreate(String resourceGroupName, @@ -520,14 +522,15 @@ public SyncPoller, DatabaseInner> beginCreate(String r * Creates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of describes a database on the Redis Enterprise cluster. + * @return the {@link SyncPoller} for polling of describes a database on the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DatabaseInner> beginCreate(String resourceGroupName, @@ -539,13 +542,14 @@ public SyncPoller, DatabaseInner> beginCreate(String r * Creates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes a database on the Redis Enterprise cluster on successful completion of {@link Mono}. + * @return describes a database on the RedisEnterprise cluster on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync(String resourceGroupName, String clusterName, String databaseName, @@ -558,14 +562,15 @@ private Mono createAsync(String resourceGroupName, String cluster * Creates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes a database on the Redis Enterprise cluster on successful completion of {@link Mono}. + * @return describes a database on the RedisEnterprise cluster on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync(String resourceGroupName, String clusterName, String databaseName, @@ -578,13 +583,14 @@ private Mono createAsync(String resourceGroupName, String cluster * Creates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes a database on the Redis Enterprise cluster. + * @return describes a database on the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) public DatabaseInner create(String resourceGroupName, String clusterName, String databaseName, @@ -596,14 +602,15 @@ public DatabaseInner create(String resourceGroupName, String clusterName, String * Creates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes a database on the Redis Enterprise cluster. + * @return describes a database on the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) public DatabaseInner create(String resourceGroupName, String clusterName, String databaseName, @@ -615,13 +622,14 @@ public DatabaseInner create(String resourceGroupName, String clusterName, String * Updates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes a database on the Redis Enterprise cluster along with {@link Response} on successful completion + * @return describes a database on the RedisEnterprise cluster along with {@link Response} on successful completion * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -662,14 +670,15 @@ private Mono>> updateWithResponseAsync(String resource * Updates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes a database on the Redis Enterprise cluster along with {@link Response} on successful completion + * @return describes a database on the RedisEnterprise cluster along with {@link Response} on successful completion * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -708,13 +717,14 @@ private Mono>> updateWithResponseAsync(String resource * Updates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of describes a database on the Redis Enterprise cluster. + * @return the {@link PollerFlux} for polling of describes a database on the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DatabaseInner> beginUpdateAsync(String resourceGroupName, @@ -729,14 +739,15 @@ private PollerFlux, DatabaseInner> beginUpdateAsync(St * Updates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of describes a database on the Redis Enterprise cluster. + * @return the {@link PollerFlux} for polling of describes a database on the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DatabaseInner> beginUpdateAsync(String resourceGroupName, @@ -752,13 +763,14 @@ private PollerFlux, DatabaseInner> beginUpdateAsync(St * Updates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of describes a database on the Redis Enterprise cluster. + * @return the {@link SyncPoller} for polling of describes a database on the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DatabaseInner> beginUpdate(String resourceGroupName, @@ -770,14 +782,15 @@ public SyncPoller, DatabaseInner> beginUpdate(String r * Updates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of describes a database on the Redis Enterprise cluster. + * @return the {@link SyncPoller} for polling of describes a database on the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DatabaseInner> beginUpdate(String resourceGroupName, @@ -789,13 +802,14 @@ public SyncPoller, DatabaseInner> beginUpdate(String r * Updates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes a database on the Redis Enterprise cluster on successful completion of {@link Mono}. + * @return describes a database on the RedisEnterprise cluster on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String clusterName, String databaseName, @@ -808,14 +822,15 @@ private Mono updateAsync(String resourceGroupName, String cluster * Updates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes a database on the Redis Enterprise cluster on successful completion of {@link Mono}. + * @return describes a database on the RedisEnterprise cluster on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String clusterName, String databaseName, @@ -828,13 +843,14 @@ private Mono updateAsync(String resourceGroupName, String cluster * Updates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes a database on the Redis Enterprise cluster. + * @return describes a database on the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) public DatabaseInner update(String resourceGroupName, String clusterName, String databaseName, @@ -846,14 +862,15 @@ public DatabaseInner update(String resourceGroupName, String clusterName, String * Updates a database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Parameters supplied to the create or update database operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes a database on the Redis Enterprise cluster. + * @return describes a database on the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) public DatabaseInner update(String resourceGroupName, String clusterName, String databaseName, @@ -862,15 +879,16 @@ public DatabaseInner update(String resourceGroupName, String clusterName, String } /** - * Gets information about a database in a Redis Enterprise cluster. + * Gets information about a database in a RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a database in a Redis Enterprise cluster along with {@link Response} on successful + * @return information about a database in a RedisEnterprise cluster along with {@link Response} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -902,16 +920,17 @@ private Mono> getWithResponseAsync(String resourceGroupN } /** - * Gets information about a database in a Redis Enterprise cluster. + * Gets information about a database in a RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a database in a Redis Enterprise cluster along with {@link Response} on successful + * @return information about a database in a RedisEnterprise cluster along with {@link Response} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -942,15 +961,16 @@ private Mono> getWithResponseAsync(String resourceGroupN } /** - * Gets information about a database in a Redis Enterprise cluster. + * Gets information about a database in a RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a database in a Redis Enterprise cluster on successful completion of {@link Mono}. + * @return information about a database in a RedisEnterprise cluster on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String clusterName, String databaseName) { @@ -959,16 +979,17 @@ private Mono getAsync(String resourceGroupName, String clusterNam } /** - * Gets information about a database in a Redis Enterprise cluster. + * Gets information about a database in a RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a database in a Redis Enterprise cluster along with {@link Response}. + * @return information about a database in a RedisEnterprise cluster along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String resourceGroupName, String clusterName, String databaseName, @@ -977,15 +998,16 @@ public Response getWithResponse(String resourceGroupName, String } /** - * Gets information about a database in a Redis Enterprise cluster. + * Gets information about a database in a RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a database in a Redis Enterprise cluster. + * @return information about a database in a RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) public DatabaseInner get(String resourceGroupName, String clusterName, String databaseName) { @@ -996,7 +1018,8 @@ public DatabaseInner get(String resourceGroupName, String clusterName, String da * Deletes a single database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1035,7 +1058,8 @@ private Mono>> deleteWithResponseAsync(String resource * Deletes a single database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1074,7 +1098,8 @@ private Mono>> deleteWithResponseAsync(String resource * Deletes a single database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1093,7 +1118,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * Deletes a single database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1115,7 +1141,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * Deletes a single database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1132,7 +1159,8 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * Deletes a single database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1150,7 +1178,8 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * Deletes a single database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1167,7 +1196,8 @@ private Mono deleteAsync(String resourceGroupName, String clusterName, Str * Deletes a single database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1185,7 +1215,8 @@ private Mono deleteAsync(String resourceGroupName, String clusterName, Str * Deletes a single database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1200,7 +1231,8 @@ public void delete(String resourceGroupName, String clusterName, String database * Deletes a single database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1213,10 +1245,11 @@ public void delete(String resourceGroupName, String clusterName, String database } /** - * Retrieves the access keys for the Redis Enterprise database. + * Retrieves the access keys for the RedisEnterprise database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1252,10 +1285,11 @@ private Mono> listKeysWithResponseAsync(String resourc } /** - * Retrieves the access keys for the Redis Enterprise database. + * Retrieves the access keys for the RedisEnterprise database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1291,10 +1325,11 @@ private Mono> listKeysWithResponseAsync(String resourc } /** - * Retrieves the access keys for the Redis Enterprise database. + * Retrieves the access keys for the RedisEnterprise database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1308,10 +1343,11 @@ private Mono listKeysAsync(String resourceGroupName, String clu } /** - * Retrieves the access keys for the Redis Enterprise database. + * Retrieves the access keys for the RedisEnterprise database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1326,10 +1362,11 @@ public Response listKeysWithResponse(String resourceGroupName, } /** - * Retrieves the access keys for the Redis Enterprise database. + * Retrieves the access keys for the RedisEnterprise database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1342,10 +1379,11 @@ public AccessKeysInner listKeys(String resourceGroupName, String clusterName, St } /** - * Regenerates the Redis Enterprise database's access keys. + * Regenerates the RedisEnterprise database's access keys. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Specifies which key to regenerate. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1388,10 +1426,11 @@ private Mono>> regenerateKeyWithResponseAsync(String r } /** - * Regenerates the Redis Enterprise database's access keys. + * Regenerates the RedisEnterprise database's access keys. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Specifies which key to regenerate. * @param context The context to associate with this operation. @@ -1433,10 +1472,11 @@ private Mono>> regenerateKeyWithResponseAsync(String r } /** - * Regenerates the Redis Enterprise database's access keys. + * Regenerates the RedisEnterprise database's access keys. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Specifies which key to regenerate. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1454,10 +1494,11 @@ private PollerFlux, AccessKeysInner> beginRegenerate } /** - * Regenerates the Redis Enterprise database's access keys. + * Regenerates the RedisEnterprise database's access keys. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Specifies which key to regenerate. * @param context The context to associate with this operation. @@ -1477,10 +1518,11 @@ private PollerFlux, AccessKeysInner> beginRegenerate } /** - * Regenerates the Redis Enterprise database's access keys. + * Regenerates the RedisEnterprise database's access keys. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Specifies which key to regenerate. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1495,10 +1537,11 @@ public SyncPoller, AccessKeysInner> beginRegenerateK } /** - * Regenerates the Redis Enterprise database's access keys. + * Regenerates the RedisEnterprise database's access keys. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Specifies which key to regenerate. * @param context The context to associate with this operation. @@ -1515,10 +1558,11 @@ public SyncPoller, AccessKeysInner> beginRegenerateK } /** - * Regenerates the Redis Enterprise database's access keys. + * Regenerates the RedisEnterprise database's access keys. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Specifies which key to regenerate. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1534,10 +1578,11 @@ private Mono regenerateKeyAsync(String resourceGroupName, Strin } /** - * Regenerates the Redis Enterprise database's access keys. + * Regenerates the RedisEnterprise database's access keys. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Specifies which key to regenerate. * @param context The context to associate with this operation. @@ -1554,10 +1599,11 @@ private Mono regenerateKeyAsync(String resourceGroupName, Strin } /** - * Regenerates the Redis Enterprise database's access keys. + * Regenerates the RedisEnterprise database's access keys. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Specifies which key to regenerate. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1572,10 +1618,11 @@ public AccessKeysInner regenerateKey(String resourceGroupName, String clusterNam } /** - * Regenerates the Redis Enterprise database's access keys. + * Regenerates the RedisEnterprise database's access keys. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Specifies which key to regenerate. * @param context The context to associate with this operation. @@ -1594,7 +1641,8 @@ public AccessKeysInner regenerateKey(String resourceGroupName, String clusterNam * Imports database files to target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for importing into the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1640,7 +1688,8 @@ private Mono>> importMethodWithResponseAsync(String re * Imports database files to target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for importing into the cluster. * @param context The context to associate with this operation. @@ -1685,7 +1734,8 @@ private Mono>> importMethodWithResponseAsync(String re * Imports database files to target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for importing into the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1706,7 +1756,8 @@ private PollerFlux, Void> beginImportMethodAsync(String resourc * Imports database files to target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for importing into the cluster. * @param context The context to associate with this operation. @@ -1729,7 +1780,8 @@ private PollerFlux, Void> beginImportMethodAsync(String resourc * Imports database files to target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for importing into the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1747,7 +1799,8 @@ public SyncPoller, Void> beginImportMethod(String resourceGroup * Imports database files to target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for importing into the cluster. * @param context The context to associate with this operation. @@ -1767,7 +1820,8 @@ public SyncPoller, Void> beginImportMethod(String resourceGroup * Imports database files to target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for importing into the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1786,7 +1840,8 @@ private Mono importMethodAsync(String resourceGroupName, String clusterNam * Imports database files to target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for importing into the cluster. * @param context The context to associate with this operation. @@ -1806,7 +1861,8 @@ private Mono importMethodAsync(String resourceGroupName, String clusterNam * Imports database files to target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for importing into the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1823,7 +1879,8 @@ public void importMethod(String resourceGroupName, String clusterName, String da * Imports database files to target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for importing into the cluster. * @param context The context to associate with this operation. @@ -1841,7 +1898,8 @@ public void importMethod(String resourceGroupName, String clusterName, String da * Exports a database file from target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for exporting into the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1887,7 +1945,8 @@ private Mono>> exportWithResponseAsync(String resource * Exports a database file from target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for exporting into the cluster. * @param context The context to associate with this operation. @@ -1932,7 +1991,8 @@ private Mono>> exportWithResponseAsync(String resource * Exports a database file from target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for exporting into the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1953,7 +2013,8 @@ private PollerFlux, Void> beginExportAsync(String resourceGroup * Exports a database file from target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for exporting into the cluster. * @param context The context to associate with this operation. @@ -1976,7 +2037,8 @@ private PollerFlux, Void> beginExportAsync(String resourceGroup * Exports a database file from target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for exporting into the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1994,7 +2056,8 @@ public SyncPoller, Void> beginExport(String resourceGroupName, * Exports a database file from target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for exporting into the cluster. * @param context The context to associate with this operation. @@ -2013,7 +2076,8 @@ public SyncPoller, Void> beginExport(String resourceGroupName, * Exports a database file from target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for exporting into the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2032,7 +2096,8 @@ private Mono exportAsync(String resourceGroupName, String clusterName, Str * Exports a database file from target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for exporting into the cluster. * @param context The context to associate with this operation. @@ -2052,7 +2117,8 @@ private Mono exportAsync(String resourceGroupName, String clusterName, Str * Exports a database file from target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for exporting into the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2069,7 +2135,8 @@ public void export(String resourceGroupName, String clusterName, String database * Exports a database file from target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for exporting into the cluster. * @param context The context to associate with this operation. @@ -2087,7 +2154,8 @@ public void export(String resourceGroupName, String clusterName, String database * Forcibly removes the link to the specified database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2133,7 +2201,8 @@ private Mono>> forceUnlinkWithResponseAsync(String res * Forcibly removes the link to the specified database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @param context The context to associate with this operation. @@ -2178,7 +2247,8 @@ private Mono>> forceUnlinkWithResponseAsync(String res * Forcibly removes the link to the specified database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2199,7 +2269,8 @@ private PollerFlux, Void> beginForceUnlinkAsync(String resource * Forcibly removes the link to the specified database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @param context The context to associate with this operation. @@ -2222,7 +2293,8 @@ private PollerFlux, Void> beginForceUnlinkAsync(String resource * Forcibly removes the link to the specified database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2240,7 +2312,8 @@ public SyncPoller, Void> beginForceUnlink(String resourceGroupN * Forcibly removes the link to the specified database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @param context The context to associate with this operation. @@ -2260,7 +2333,8 @@ public SyncPoller, Void> beginForceUnlink(String resourceGroupN * Forcibly removes the link to the specified database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2279,7 +2353,8 @@ private Mono forceUnlinkAsync(String resourceGroupName, String clusterName * Forcibly removes the link to the specified database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @param context The context to associate with this operation. @@ -2299,7 +2374,8 @@ private Mono forceUnlinkAsync(String resourceGroupName, String clusterName * Forcibly removes the link to the specified database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2316,7 +2392,8 @@ public void forceUnlink(String resourceGroupName, String clusterName, String dat * Forcibly removes the link to the specified database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @param context The context to associate with this operation. @@ -2336,7 +2413,8 @@ public void forceUnlink(String resourceGroupName, String clusterName, String dat * unavailable while rejoining the replication group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2384,7 +2462,8 @@ private Mono>> forceLinkToReplicationGroupWithResponse * unavailable while rejoining the replication group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @param context The context to associate with this operation. @@ -2431,7 +2510,8 @@ private Mono>> forceLinkToReplicationGroupWithResponse * unavailable while rejoining the replication group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2454,7 +2534,8 @@ private PollerFlux, Void> beginForceLinkToReplicationGroupAsync * unavailable while rejoining the replication group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @param context The context to associate with this operation. @@ -2479,7 +2560,8 @@ private PollerFlux, Void> beginForceLinkToReplicationGroupAsync * unavailable while rejoining the replication group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2500,7 +2582,8 @@ public SyncPoller, Void> beginForceLinkToReplicationGroup(Strin * unavailable while rejoining the replication group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @param context The context to associate with this operation. @@ -2523,7 +2606,8 @@ public SyncPoller, Void> beginForceLinkToReplicationGroup(Strin * unavailable while rejoining the replication group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2544,7 +2628,8 @@ private Mono forceLinkToReplicationGroupAsync(String resourceGroupName, St * unavailable while rejoining the replication group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @param context The context to associate with this operation. @@ -2567,7 +2652,8 @@ private Mono forceLinkToReplicationGroupAsync(String resourceGroupName, St * unavailable while rejoining the replication group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2586,7 +2672,8 @@ public void forceLinkToReplicationGroup(String resourceGroupName, String cluster * unavailable while rejoining the replication group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @param context The context to associate with this operation. @@ -2604,7 +2691,8 @@ public void forceLinkToReplicationGroup(String resourceGroupName, String cluster * Flushes all the keys in this database and also from its linked databases. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the databases to be flushed. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2650,7 +2738,8 @@ private Mono>> flushWithResponseAsync(String resourceG * Flushes all the keys in this database and also from its linked databases. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the databases to be flushed. * @param context The context to associate with this operation. @@ -2695,7 +2784,8 @@ private Mono>> flushWithResponseAsync(String resourceG * Flushes all the keys in this database and also from its linked databases. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the databases to be flushed. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2716,7 +2806,8 @@ private PollerFlux, Void> beginFlushAsync(String resourceGroupN * Flushes all the keys in this database and also from its linked databases. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the databases to be flushed. * @param context The context to associate with this operation. @@ -2739,7 +2830,8 @@ private PollerFlux, Void> beginFlushAsync(String resourceGroupN * Flushes all the keys in this database and also from its linked databases. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the databases to be flushed. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2757,7 +2849,8 @@ public SyncPoller, Void> beginFlush(String resourceGroupName, S * Flushes all the keys in this database and also from its linked databases. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the databases to be flushed. * @param context The context to associate with this operation. @@ -2776,7 +2869,8 @@ public SyncPoller, Void> beginFlush(String resourceGroupName, S * Flushes all the keys in this database and also from its linked databases. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the databases to be flushed. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2795,7 +2889,8 @@ private Mono flushAsync(String resourceGroupName, String clusterName, Stri * Flushes all the keys in this database and also from its linked databases. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the databases to be flushed. * @param context The context to associate with this operation. @@ -2815,7 +2910,8 @@ private Mono flushAsync(String resourceGroupName, String clusterName, Stri * Flushes all the keys in this database and also from its linked databases. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the databases to be flushed. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2831,7 +2927,8 @@ public void flush(String resourceGroupName, String clusterName, String databaseN * Flushes all the keys in this database and also from its linked databases. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the databases to be flushed. * @param context The context to associate with this operation. @@ -2845,231 +2942,6 @@ public void flush(String resourceGroupName, String clusterName, String databaseN flushAsync(resourceGroupName, clusterName, databaseName, parameters, context).block(); } - /** - * Upgrades the database Redis version to the latest available. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> upgradeDBRedisVersionWithResponseAsync(String resourceGroupName, - String clusterName, String databaseName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (clusterName == null) { - return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.upgradeDBRedisVersion(this.client.getEndpoint(), resourceGroupName, clusterName, - databaseName, this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Upgrades the database Redis version to the latest available. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> upgradeDBRedisVersionWithResponseAsync(String resourceGroupName, - String clusterName, String databaseName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (clusterName == null) { - return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); - } - if (databaseName == null) { - return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.upgradeDBRedisVersion(this.client.getEndpoint(), resourceGroupName, clusterName, databaseName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); - } - - /** - * Upgrades the database Redis version to the latest available. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginUpgradeDBRedisVersionAsync(String resourceGroupName, - String clusterName, String databaseName) { - Mono>> mono - = upgradeDBRedisVersionWithResponseAsync(resourceGroupName, clusterName, databaseName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Upgrades the database Redis version to the latest available. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginUpgradeDBRedisVersionAsync(String resourceGroupName, - String clusterName, String databaseName, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = upgradeDBRedisVersionWithResponseAsync(resourceGroupName, clusterName, databaseName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); - } - - /** - * Upgrades the database Redis version to the latest available. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginUpgradeDBRedisVersion(String resourceGroupName, String clusterName, - String databaseName) { - return this.beginUpgradeDBRedisVersionAsync(resourceGroupName, clusterName, databaseName).getSyncPoller(); - } - - /** - * Upgrades the database Redis version to the latest available. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginUpgradeDBRedisVersion(String resourceGroupName, String clusterName, - String databaseName, Context context) { - return this.beginUpgradeDBRedisVersionAsync(resourceGroupName, clusterName, databaseName, context) - .getSyncPoller(); - } - - /** - * Upgrades the database Redis version to the latest available. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono upgradeDBRedisVersionAsync(String resourceGroupName, String clusterName, String databaseName) { - return beginUpgradeDBRedisVersionAsync(resourceGroupName, clusterName, databaseName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Upgrades the database Redis version to the latest available. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono upgradeDBRedisVersionAsync(String resourceGroupName, String clusterName, String databaseName, - Context context) { - return beginUpgradeDBRedisVersionAsync(resourceGroupName, clusterName, databaseName, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Upgrades the database Redis version to the latest available. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void upgradeDBRedisVersion(String resourceGroupName, String clusterName, String databaseName) { - upgradeDBRedisVersionAsync(resourceGroupName, clusterName, databaseName).block(); - } - - /** - * Upgrades the database Redis version to the latest available. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void upgradeDBRedisVersion(String resourceGroupName, String clusterName, String databaseName, - Context context) { - upgradeDBRedisVersionAsync(resourceGroupName, clusterName, databaseName, context).block(); - } - /** * Get the next page of items. * diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/DatabasesImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/DatabasesImpl.java index cd6ee023fc8be..914939f73e071 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/DatabasesImpl.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/DatabasesImpl.java @@ -168,15 +168,6 @@ public void flush(String resourceGroupName, String clusterName, String databaseN this.serviceClient().flush(resourceGroupName, clusterName, databaseName, parameters, context); } - public void upgradeDBRedisVersion(String resourceGroupName, String clusterName, String databaseName) { - this.serviceClient().upgradeDBRedisVersion(resourceGroupName, clusterName, databaseName); - } - - public void upgradeDBRedisVersion(String resourceGroupName, String clusterName, String databaseName, - Context context) { - this.serviceClient().upgradeDBRedisVersion(resourceGroupName, clusterName, databaseName, context); - } - public Database getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateEndpointConnectionsClientImpl.java index 66f5b95120220..1c077b27188c0 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateEndpointConnectionsClientImpl.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateEndpointConnectionsClientImpl.java @@ -112,10 +112,11 @@ Mono>> delete(@HostParam("$host") String endpoint, } /** - * Lists all the private endpoint connections associated with the Redis Enterprise cluster. + * Lists all the private endpoint connections associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -150,10 +151,11 @@ private Mono> listSinglePageAsync( } /** - * Lists all the private endpoint connections associated with the Redis Enterprise cluster. + * Lists all the private endpoint connections associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -189,10 +191,11 @@ private Mono> listSinglePageAsync( } /** - * Lists all the private endpoint connections associated with the Redis Enterprise cluster. + * Lists all the private endpoint connections associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -205,10 +208,11 @@ private PagedFlux listAsync(String resourceGroup } /** - * Lists all the private endpoint connections associated with the Redis Enterprise cluster. + * Lists all the private endpoint connections associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -223,10 +227,11 @@ private PagedFlux listAsync(String resourceGroup } /** - * Lists all the private endpoint connections associated with the Redis Enterprise cluster. + * Lists all the private endpoint connections associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -239,10 +244,11 @@ public PagedIterable list(String resourceGroupNa } /** - * Lists all the private endpoint connections associated with the Redis Enterprise cluster. + * Lists all the private endpoint connections associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -257,16 +263,17 @@ public PagedIterable list(String resourceGroupNa } /** - * Gets the specified private endpoint connection associated with the Redis Enterprise cluster. + * Gets the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection associated with the Redis Enterprise cluster along with + * @return the specified private endpoint connection associated with the RedisEnterprise cluster along with * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -300,17 +307,18 @@ private Mono> getWithResponseAsync(Stri } /** - * Gets the specified private endpoint connection associated with the Redis Enterprise cluster. + * Gets the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection associated with the Redis Enterprise cluster along with + * @return the specified private endpoint connection associated with the RedisEnterprise cluster along with * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -342,16 +350,17 @@ private Mono> getWithResponseAsync(Stri } /** - * Gets the specified private endpoint connection associated with the Redis Enterprise cluster. + * Gets the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection associated with the Redis Enterprise cluster on successful + * @return the specified private endpoint connection associated with the RedisEnterprise cluster on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -362,17 +371,18 @@ private Mono getAsync(String resourceGroupName, } /** - * Gets the specified private endpoint connection associated with the Redis Enterprise cluster. + * Gets the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection associated with the Redis Enterprise cluster along with + * @return the specified private endpoint connection associated with the RedisEnterprise cluster along with * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -382,16 +392,17 @@ public Response getWithResponse(String resourceG } /** - * Gets the specified private endpoint connection associated with the Redis Enterprise cluster. + * Gets the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection associated with the Redis Enterprise cluster. + * @return the specified private endpoint connection associated with the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) public PrivateEndpointConnectionInner get(String resourceGroupName, String clusterName, @@ -400,10 +411,11 @@ public PrivateEndpointConnectionInner get(String resourceGroupName, String clust } /** - * 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. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param properties The private endpoint connection properties. @@ -449,10 +461,11 @@ private Mono>> putWithResponseAsync(String resourceGro } /** - * 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. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param properties The private endpoint connection properties. @@ -497,10 +510,11 @@ private Mono>> putWithResponseAsync(String resourceGro } /** - * 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. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param properties The private endpoint connection properties. @@ -521,10 +535,11 @@ private PollerFlux, PrivateEndpointCo } /** - * 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. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param properties The private endpoint connection properties. @@ -547,10 +562,11 @@ private PollerFlux, PrivateEndpointCo } /** - * 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. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param properties The private endpoint connection properties. @@ -568,10 +584,11 @@ public SyncPoller, PrivateEndpointCon } /** - * 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. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param properties The private endpoint connection properties. @@ -590,10 +607,11 @@ public SyncPoller, PrivateEndpointCon } /** - * 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. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param properties The private endpoint connection properties. @@ -610,10 +628,11 @@ private Mono putAsync(String resourceGroupName, } /** - * 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. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param properties The private endpoint connection properties. @@ -631,10 +650,11 @@ private Mono putAsync(String resourceGroupName, } /** - * 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. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param properties The private endpoint connection properties. @@ -650,10 +670,11 @@ public PrivateEndpointConnectionInner put(String resourceGroupName, String clust } /** - * 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. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param properties The private endpoint connection properties. @@ -670,10 +691,11 @@ public PrivateEndpointConnectionInner put(String resourceGroupName, String clust } /** - * Deletes the specified private endpoint connection associated with the Redis Enterprise cluster. + * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -712,10 +734,11 @@ private Mono>> deleteWithResponseAsync(String resource } /** - * Deletes the specified private endpoint connection associated with the Redis Enterprise cluster. + * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param context The context to associate with this operation. @@ -753,10 +776,11 @@ private Mono>> deleteWithResponseAsync(String resource } /** - * Deletes the specified private endpoint connection associated with the Redis Enterprise cluster. + * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -774,10 +798,11 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Deletes the specified private endpoint connection associated with the Redis Enterprise cluster. + * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param context The context to associate with this operation. @@ -797,10 +822,11 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Deletes the specified private endpoint connection associated with the Redis Enterprise cluster. + * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -815,10 +841,11 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Deletes the specified private endpoint connection associated with the Redis Enterprise cluster. + * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param context The context to associate with this operation. @@ -835,10 +862,11 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Deletes the specified private endpoint connection associated with the Redis Enterprise cluster. + * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -853,10 +881,11 @@ private Mono deleteAsync(String resourceGroupName, String clusterName, Str } /** - * Deletes the specified private endpoint connection associated with the Redis Enterprise cluster. + * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param context The context to associate with this operation. @@ -873,10 +902,11 @@ private Mono deleteAsync(String resourceGroupName, String clusterName, Str } /** - * Deletes the specified private endpoint connection associated with the Redis Enterprise cluster. + * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -889,10 +919,11 @@ public void delete(String resourceGroupName, String clusterName, String privateE } /** - * Deletes the specified private endpoint connection associated with the Redis Enterprise cluster. + * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param context The context to associate with this operation. diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateLinkResourcesClientImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateLinkResourcesClientImpl.java index d9105f4adc701..57f4a9bd410c8 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateLinkResourcesClientImpl.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateLinkResourcesClientImpl.java @@ -73,14 +73,15 @@ Mono> listByCluster(@HostParam("$host") } /** - * 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. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private link resources that need to be created for a Redis Enterprise cluster along with + * @return the private link resources that need to be created for a RedisEnterprise cluster along with * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -111,15 +112,16 @@ private Mono> listByClusterSinglePageAsy } /** - * 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. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private link resources that need to be created for a Redis Enterprise cluster along with + * @return the private link resources that need to be created for a RedisEnterprise cluster along with * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -150,14 +152,15 @@ private Mono> listByClusterSinglePageAsy } /** - * 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. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private link resources that need to be created for a Redis Enterprise cluster as paginated response + * @return the private link resources that need to be created for a RedisEnterprise cluster as paginated response * with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -166,15 +169,16 @@ private PagedFlux listByClusterAsync(String resourceGr } /** - * 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. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private link resources that need to be created for a Redis Enterprise cluster as paginated response + * @return the private link resources that need to be created for a RedisEnterprise cluster as paginated response * with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -184,14 +188,15 @@ private PagedFlux listByClusterAsync(String resourceGr } /** - * 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. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private link resources that need to be created for a Redis Enterprise cluster as paginated response + * @return the private link resources that need to be created for a RedisEnterprise cluster as paginated response * with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -200,15 +205,16 @@ public PagedIterable listByCluster(String resourceGrou } /** - * 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. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private link resources that need to be created for a Redis Enterprise cluster as paginated response + * @return the private link resources that need to be created for a RedisEnterprise cluster as paginated response * with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterpriseManagementClientImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterpriseManagementClientImpl.java index c6905b118fef5..d11b00c3dfd80 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterpriseManagementClientImpl.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterpriseManagementClientImpl.java @@ -23,7 +23,6 @@ import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.serializer.SerializerAdapter; import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.redisenterprise.fluent.AccessPolicyAssignmentsClient; import com.azure.resourcemanager.redisenterprise.fluent.DatabasesClient; import com.azure.resourcemanager.redisenterprise.fluent.OperationsClient; import com.azure.resourcemanager.redisenterprise.fluent.OperationsStatusClient; @@ -185,20 +184,6 @@ public DatabasesClient getDatabases() { return this.databases; } - /** - * The AccessPolicyAssignmentsClient object to access its operations. - */ - private final AccessPolicyAssignmentsClient accessPolicyAssignments; - - /** - * Gets the AccessPolicyAssignmentsClient object to access its operations. - * - * @return the AccessPolicyAssignmentsClient object. - */ - public AccessPolicyAssignmentsClient getAccessPolicyAssignments() { - return this.accessPolicyAssignments; - } - /** * The PrivateEndpointConnectionsClient object to access its operations. */ @@ -244,12 +229,11 @@ public PrivateLinkResourcesClient getPrivateLinkResources() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2024-09-01-preview"; + this.apiVersion = "2024-10-01"; this.operations = new OperationsClientImpl(this); this.operationsStatus = new OperationsStatusClientImpl(this); this.redisEnterprises = new RedisEnterprisesClientImpl(this); this.databases = new DatabasesClientImpl(this); - this.accessPolicyAssignments = new AccessPolicyAssignmentsClientImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this); this.privateLinkResources = new PrivateLinkResourcesClientImpl(this); } diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterprisesClientImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterprisesClientImpl.java index 7af86609a0999..ce7493e6135bf 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterprisesClientImpl.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterprisesClientImpl.java @@ -146,12 +146,13 @@ Mono> listNext(@PathParam(value = "nextLink", encoded = tr * Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Create Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Create RedisEnterprise operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the Redis Enterprise cluster along with {@link Response} on successful completion of + * @return describes the RedisEnterprise cluster along with {@link Response} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -188,13 +189,14 @@ private Mono>> createWithResponseAsync(String resource * Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Create Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Create RedisEnterprise operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the Redis Enterprise cluster along with {@link Response} on successful completion of + * @return describes the RedisEnterprise cluster along with {@link Response} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -230,12 +232,13 @@ private Mono>> createWithResponseAsync(String resource * Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Create Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Create RedisEnterprise operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of describes the Redis Enterprise cluster. + * @return the {@link PollerFlux} for polling of describes the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ClusterInner> beginCreateAsync(String resourceGroupName, @@ -249,13 +252,14 @@ private PollerFlux, ClusterInner> beginCreateAsync(Stri * Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Create Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Create RedisEnterprise operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of describes the Redis Enterprise cluster. + * @return the {@link PollerFlux} for polling of describes the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ClusterInner> beginCreateAsync(String resourceGroupName, @@ -271,12 +275,13 @@ private PollerFlux, ClusterInner> beginCreateAsync(Stri * Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Create Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Create RedisEnterprise operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of describes the Redis Enterprise cluster. + * @return the {@link SyncPoller} for polling of describes the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ClusterInner> beginCreate(String resourceGroupName, String clusterName, @@ -288,13 +293,14 @@ public SyncPoller, ClusterInner> beginCreate(String res * Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Create Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Create RedisEnterprise operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of describes the Redis Enterprise cluster. + * @return the {@link SyncPoller} for polling of describes the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ClusterInner> beginCreate(String resourceGroupName, String clusterName, @@ -306,12 +312,13 @@ public SyncPoller, ClusterInner> beginCreate(String res * Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Create Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Create RedisEnterprise operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the Redis Enterprise cluster on successful completion of {@link Mono}. + * @return describes the RedisEnterprise cluster on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync(String resourceGroupName, String clusterName, ClusterInner parameters) { @@ -323,13 +330,14 @@ private Mono createAsync(String resourceGroupName, String clusterN * Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Create Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Create RedisEnterprise operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the Redis Enterprise cluster on successful completion of {@link Mono}. + * @return describes the RedisEnterprise cluster on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createAsync(String resourceGroupName, String clusterName, ClusterInner parameters, @@ -342,12 +350,13 @@ private Mono createAsync(String resourceGroupName, String clusterN * Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Create Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Create RedisEnterprise operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the Redis Enterprise cluster. + * @return describes the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) public ClusterInner create(String resourceGroupName, String clusterName, ClusterInner parameters) { @@ -358,13 +367,14 @@ public ClusterInner create(String resourceGroupName, String clusterName, Cluster * Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Create Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Create RedisEnterprise operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the Redis Enterprise cluster. + * @return describes the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) public ClusterInner create(String resourceGroupName, String clusterName, ClusterInner parameters, Context context) { @@ -372,15 +382,16 @@ public ClusterInner create(String resourceGroupName, String clusterName, Cluster } /** - * Updates an existing Redis Enterprise cluster. + * Updates an existing RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Update Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Update RedisEnterprise operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the Redis Enterprise cluster along with {@link Response} on successful completion of + * @return describes the RedisEnterprise cluster along with {@link Response} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -414,16 +425,17 @@ private Mono>> updateWithResponseAsync(String resource } /** - * Updates an existing Redis Enterprise cluster. + * Updates an existing RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Update Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Update RedisEnterprise operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the Redis Enterprise cluster along with {@link Response} on successful completion of + * @return describes the RedisEnterprise cluster along with {@link Response} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -456,15 +468,16 @@ private Mono>> updateWithResponseAsync(String resource } /** - * Updates an existing Redis Enterprise cluster. + * Updates an existing RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Update Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Update RedisEnterprise operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of describes the Redis Enterprise cluster. + * @return the {@link PollerFlux} for polling of describes the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ClusterInner> beginUpdateAsync(String resourceGroupName, @@ -475,16 +488,17 @@ private PollerFlux, ClusterInner> beginUpdateAsync(Stri } /** - * Updates an existing Redis Enterprise cluster. + * Updates an existing RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Update Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Update RedisEnterprise operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of describes the Redis Enterprise cluster. + * @return the {@link PollerFlux} for polling of describes the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ClusterInner> beginUpdateAsync(String resourceGroupName, @@ -497,15 +511,16 @@ private PollerFlux, ClusterInner> beginUpdateAsync(Stri } /** - * Updates an existing Redis Enterprise cluster. + * Updates an existing RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Update Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Update RedisEnterprise operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of describes the Redis Enterprise cluster. + * @return the {@link SyncPoller} for polling of describes the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ClusterInner> beginUpdate(String resourceGroupName, String clusterName, @@ -514,16 +529,17 @@ public SyncPoller, ClusterInner> beginUpdate(String res } /** - * Updates an existing Redis Enterprise cluster. + * Updates an existing RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Update Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Update RedisEnterprise operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of describes the Redis Enterprise cluster. + * @return the {@link SyncPoller} for polling of describes the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ClusterInner> beginUpdate(String resourceGroupName, String clusterName, @@ -532,15 +548,16 @@ public SyncPoller, ClusterInner> beginUpdate(String res } /** - * Updates an existing Redis Enterprise cluster. + * Updates an existing RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Update Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Update RedisEnterprise operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the Redis Enterprise cluster on successful completion of {@link Mono}. + * @return describes the RedisEnterprise cluster on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String clusterName, ClusterUpdate parameters) { @@ -549,16 +566,17 @@ private Mono updateAsync(String resourceGroupName, String clusterN } /** - * Updates an existing Redis Enterprise cluster. + * Updates an existing RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Update Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Update RedisEnterprise operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the Redis Enterprise cluster on successful completion of {@link Mono}. + * @return describes the RedisEnterprise cluster on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String clusterName, ClusterUpdate parameters, @@ -568,15 +586,16 @@ private Mono updateAsync(String resourceGroupName, String clusterN } /** - * Updates an existing Redis Enterprise cluster. + * Updates an existing RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Update Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Update RedisEnterprise operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the Redis Enterprise cluster. + * @return describes the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) public ClusterInner update(String resourceGroupName, String clusterName, ClusterUpdate parameters) { @@ -584,16 +603,17 @@ public ClusterInner update(String resourceGroupName, String clusterName, Cluster } /** - * Updates an existing Redis Enterprise cluster. + * Updates an existing RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param parameters Parameters supplied to the Update Redis Enterprise operation. + * @param clusterName 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. + * @param parameters Parameters supplied to the Update RedisEnterprise operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the Redis Enterprise cluster. + * @return describes the RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) public ClusterInner update(String resourceGroupName, String clusterName, ClusterUpdate parameters, @@ -602,10 +622,11 @@ public ClusterInner update(String resourceGroupName, String clusterName, Cluster } /** - * Deletes a Redis Enterprise cache cluster. + * Deletes a RedisEnterprise cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -636,10 +657,11 @@ private Mono>> deleteWithResponseAsync(String resource } /** - * Deletes a Redis Enterprise cache cluster. + * Deletes a RedisEnterprise cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -671,10 +693,11 @@ private Mono>> deleteWithResponseAsync(String resource } /** - * Deletes a Redis Enterprise cache cluster. + * Deletes a RedisEnterprise cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -688,10 +711,11 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Deletes a Redis Enterprise cache cluster. + * Deletes a RedisEnterprise cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -708,10 +732,11 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Deletes a Redis Enterprise cache cluster. + * Deletes a RedisEnterprise cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -723,10 +748,11 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Deletes a Redis Enterprise cache cluster. + * Deletes a RedisEnterprise cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -740,10 +766,11 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Deletes a Redis Enterprise cache cluster. + * Deletes a RedisEnterprise cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -755,10 +782,11 @@ private Mono deleteAsync(String resourceGroupName, String clusterName) { } /** - * Deletes a Redis Enterprise cache cluster. + * Deletes a RedisEnterprise cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -772,10 +800,11 @@ private Mono deleteAsync(String resourceGroupName, String clusterName, Con } /** - * Deletes a Redis Enterprise cache cluster. + * Deletes a RedisEnterprise cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -786,10 +815,11 @@ public void delete(String resourceGroupName, String clusterName) { } /** - * Deletes a Redis Enterprise cache cluster. + * Deletes a RedisEnterprise cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -801,14 +831,15 @@ public void delete(String resourceGroupName, String clusterName, Context context } /** - * Gets information about a Redis Enterprise cluster. + * Gets information about a RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a Redis Enterprise cluster along with {@link Response} on successful completion of + * @return information about a RedisEnterprise cluster along with {@link Response} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -837,15 +868,16 @@ private Mono> getByResourceGroupWithResponseAsync(String } /** - * Gets information about a Redis Enterprise cluster. + * Gets information about a RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a Redis Enterprise cluster along with {@link Response} on successful completion of + * @return information about a RedisEnterprise cluster along with {@link Response} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -873,14 +905,15 @@ private Mono> getByResourceGroupWithResponseAsync(String } /** - * Gets information about a Redis Enterprise cluster. + * Gets information about a RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a Redis Enterprise cluster on successful completion of {@link Mono}. + * @return information about a RedisEnterprise cluster on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByResourceGroupAsync(String resourceGroupName, String clusterName) { @@ -889,15 +922,16 @@ private Mono getByResourceGroupAsync(String resourceGroupName, Str } /** - * Gets information about a Redis Enterprise cluster. + * Gets information about a RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a Redis Enterprise cluster along with {@link Response}. + * @return information about a RedisEnterprise cluster along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getByResourceGroupWithResponse(String resourceGroupName, String clusterName, @@ -906,14 +940,15 @@ public Response getByResourceGroupWithResponse(String resourceGrou } /** - * Gets information about a Redis Enterprise cluster. + * Gets information about a RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a Redis Enterprise cluster. + * @return information about a RedisEnterprise cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) public ClusterInner getByResourceGroup(String resourceGroupName, String clusterName) { @@ -921,7 +956,7 @@ public ClusterInner getByResourceGroup(String resourceGroupName, String clusterN } /** - * Lists all Redis Enterprise clusters in a resource group. + * Lists all RedisEnterprise clusters in a resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -954,7 +989,7 @@ private Mono> listByResourceGroupSinglePageAsync(Str } /** - * Lists all Redis Enterprise clusters in a resource group. + * Lists all RedisEnterprise clusters in a resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. @@ -989,7 +1024,7 @@ private Mono> listByResourceGroupSinglePageAsync(Str } /** - * Lists all Redis Enterprise clusters in a resource group. + * Lists all RedisEnterprise clusters in a resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1004,7 +1039,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNam } /** - * Lists all Redis Enterprise clusters in a resource group. + * Lists all RedisEnterprise clusters in a resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. @@ -1020,7 +1055,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNam } /** - * Lists all Redis Enterprise clusters in a resource group. + * Lists all RedisEnterprise clusters in a resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1034,7 +1069,7 @@ public PagedIterable listByResourceGroup(String resourceGroupName) } /** - * Lists all Redis Enterprise clusters in a resource group. + * Lists all RedisEnterprise clusters in a resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. @@ -1049,12 +1084,12 @@ public PagedIterable listByResourceGroup(String resourceGroupName, } /** - * Lists all Redis Enterprise clusters in the specified subscription. + * Gets all RedisEnterprise clusters in the specified subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a list-all operation along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return all RedisEnterprise clusters in the specified subscription along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -1076,14 +1111,14 @@ private Mono> listSinglePageAsync() { } /** - * Lists all Redis Enterprise clusters in the specified subscription. + * Gets all RedisEnterprise clusters in the specified subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a list-all operation along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return all RedisEnterprise clusters in the specified subscription along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { @@ -1105,11 +1140,11 @@ private Mono> listSinglePageAsync(Context context) { } /** - * Lists all Redis Enterprise clusters in the specified subscription. + * Gets all RedisEnterprise clusters in the specified subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a list-all operation as paginated response with {@link PagedFlux}. + * @return all RedisEnterprise clusters in the specified subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -1117,13 +1152,13 @@ private PagedFlux listAsync() { } /** - * Lists all Redis Enterprise clusters in the specified subscription. + * Gets all RedisEnterprise clusters in the specified subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a list-all operation as paginated response with {@link PagedFlux}. + * @return all RedisEnterprise clusters in the specified subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { @@ -1132,11 +1167,12 @@ private PagedFlux listAsync(Context context) { } /** - * Lists all Redis Enterprise clusters in the specified subscription. + * Gets all RedisEnterprise clusters in the specified subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a list-all operation as paginated response with {@link PagedIterable}. + * @return all RedisEnterprise clusters in the specified subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -1144,13 +1180,14 @@ public PagedIterable list() { } /** - * Lists all Redis Enterprise clusters in the specified subscription. + * Gets all RedisEnterprise clusters in the specified subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a list-all operation as paginated response with {@link PagedIterable}. + * @return all RedisEnterprise clusters in the specified subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/AccessKeysAuthentication.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/AccessKeysAuthentication.java deleted file mode 100644 index 15780c2bd30c5..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/AccessKeysAuthentication.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * 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 final class AccessKeysAuthentication extends ExpandableStringEnum { - /** - * Static value Disabled for AccessKeysAuthentication. - */ - public static final AccessKeysAuthentication DISABLED = fromString("Disabled"); - - /** - * Static value Enabled for AccessKeysAuthentication. - */ - public static final AccessKeysAuthentication ENABLED = fromString("Enabled"); - - /** - * Creates a new instance of AccessKeysAuthentication value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public AccessKeysAuthentication() { - } - - /** - * Creates or finds a AccessKeysAuthentication from its string representation. - * - * @param name a name to look for. - * @return the corresponding AccessKeysAuthentication. - */ - public static AccessKeysAuthentication fromString(String name) { - return fromString(name, AccessKeysAuthentication.class); - } - - /** - * Gets known AccessKeysAuthentication values. - * - * @return known AccessKeysAuthentication values. - */ - public static Collection values() { - return values(AccessKeysAuthentication.class); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/AccessPolicyAssignment.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/AccessPolicyAssignment.java deleted file mode 100644 index 1d84f3d1f0dcc..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/AccessPolicyAssignment.java +++ /dev/null @@ -1,227 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.models; - -import com.azure.core.util.Context; -import com.azure.resourcemanager.redisenterprise.fluent.models.AccessPolicyAssignmentInner; - -/** - * An immutable client-side representation of AccessPolicyAssignment. - */ -public interface AccessPolicyAssignment { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the provisioningState property: Current provisioning status of the access policy assignment. - * - * @return the provisioningState value. - */ - ProvisioningState provisioningState(); - - /** - * Gets the accessPolicyName property: Name of access policy under specific access policy assignment. Only "default" - * policy is supported for now. - * - * @return the accessPolicyName value. - */ - String accessPolicyName(); - - /** - * Gets the user property: The user associated with the access policy. - * - * @return the user value. - */ - AccessPolicyAssignmentPropertiesUser user(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.redisenterprise.fluent.models.AccessPolicyAssignmentInner object. - * - * @return the inner object. - */ - AccessPolicyAssignmentInner innerModel(); - - /** - * The entirety of the AccessPolicyAssignment definition. - */ - interface Definition - extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { - } - - /** - * The AccessPolicyAssignment definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the AccessPolicyAssignment definition. - */ - interface Blank extends WithParentResource { - } - - /** - * The stage of the AccessPolicyAssignment definition allowing to specify parent resource. - */ - interface WithParentResource { - /** - * Specifies resourceGroupName, clusterName, databaseName. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @return the next definition stage. - */ - WithCreate withExistingDatabase(String resourceGroupName, String clusterName, String databaseName); - } - - /** - * The stage of the AccessPolicyAssignment definition which contains all the minimum required properties for the - * resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithAccessPolicyName, DefinitionStages.WithUser { - /** - * Executes the create request. - * - * @return the created resource. - */ - AccessPolicyAssignment create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - AccessPolicyAssignment create(Context context); - } - - /** - * The stage of the AccessPolicyAssignment definition allowing to specify accessPolicyName. - */ - interface WithAccessPolicyName { - /** - * Specifies the accessPolicyName property: Name of access policy under specific access policy assignment. - * Only "default" policy is supported for now.. - * - * @param accessPolicyName Name of access policy under specific access policy assignment. Only "default" - * policy is supported for now. - * @return the next definition stage. - */ - WithCreate withAccessPolicyName(String accessPolicyName); - } - - /** - * The stage of the AccessPolicyAssignment definition allowing to specify user. - */ - interface WithUser { - /** - * Specifies the user property: The user associated with the access policy.. - * - * @param user The user associated with the access policy. - * @return the next definition stage. - */ - WithCreate withUser(AccessPolicyAssignmentPropertiesUser user); - } - } - - /** - * Begins update for the AccessPolicyAssignment resource. - * - * @return the stage of resource update. - */ - AccessPolicyAssignment.Update update(); - - /** - * The template for AccessPolicyAssignment update. - */ - interface Update extends UpdateStages.WithAccessPolicyName, UpdateStages.WithUser { - /** - * Executes the update request. - * - * @return the updated resource. - */ - AccessPolicyAssignment apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - AccessPolicyAssignment apply(Context context); - } - - /** - * The AccessPolicyAssignment update stages. - */ - interface UpdateStages { - /** - * The stage of the AccessPolicyAssignment update allowing to specify accessPolicyName. - */ - interface WithAccessPolicyName { - /** - * Specifies the accessPolicyName property: Name of access policy under specific access policy assignment. - * Only "default" policy is supported for now.. - * - * @param accessPolicyName Name of access policy under specific access policy assignment. Only "default" - * policy is supported for now. - * @return the next definition stage. - */ - Update withAccessPolicyName(String accessPolicyName); - } - - /** - * The stage of the AccessPolicyAssignment update allowing to specify user. - */ - interface WithUser { - /** - * Specifies the user property: The user associated with the access policy.. - * - * @param user The user associated with the access policy. - * @return the next definition stage. - */ - Update withUser(AccessPolicyAssignmentPropertiesUser user); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - AccessPolicyAssignment refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - AccessPolicyAssignment refresh(Context context); -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/AccessPolicyAssignmentList.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/AccessPolicyAssignmentList.java deleted file mode 100644 index 506a4f2896736..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/AccessPolicyAssignmentList.java +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.redisenterprise.fluent.models.AccessPolicyAssignmentInner; -import java.io.IOException; -import java.util.List; - -/** - * The response of a list-all operation. - */ -@Fluent -public final class AccessPolicyAssignmentList implements JsonSerializable { - /* - * List of access policy assignments. - */ - private List value; - - /* - * The URI to fetch the next page of results. - */ - private String nextLink; - - /** - * Creates an instance of AccessPolicyAssignmentList class. - */ - public AccessPolicyAssignmentList() { - } - - /** - * Get the value property: List of access policy assignments. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: List of access policy assignments. - * - * @param value the value value to set. - * @return the AccessPolicyAssignmentList object itself. - */ - public AccessPolicyAssignmentList withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URI to fetch the next page of results. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of AccessPolicyAssignmentList from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of AccessPolicyAssignmentList if the JsonReader was pointing to an instance of it, or null if - * it was pointing to JSON null. - * @throws IOException If an error occurs while reading the AccessPolicyAssignmentList. - */ - public static AccessPolicyAssignmentList fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - AccessPolicyAssignmentList deserializedAccessPolicyAssignmentList = new AccessPolicyAssignmentList(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> AccessPolicyAssignmentInner.fromJson(reader1)); - deserializedAccessPolicyAssignmentList.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedAccessPolicyAssignmentList.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedAccessPolicyAssignmentList; - }); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/AccessPolicyAssignmentPropertiesUser.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/AccessPolicyAssignmentPropertiesUser.java deleted file mode 100644 index c5de2e769439b..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/AccessPolicyAssignmentPropertiesUser.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * The user associated with the access policy. - */ -@Fluent -public final class AccessPolicyAssignmentPropertiesUser - implements JsonSerializable { - /* - * The object ID of the user. - */ - private String objectId; - - /** - * Creates an instance of AccessPolicyAssignmentPropertiesUser class. - */ - public AccessPolicyAssignmentPropertiesUser() { - } - - /** - * Get the objectId property: The object ID of the user. - * - * @return the objectId value. - */ - public String objectId() { - return this.objectId; - } - - /** - * Set the objectId property: The object ID of the user. - * - * @param objectId the objectId value to set. - * @return the AccessPolicyAssignmentPropertiesUser object itself. - */ - public AccessPolicyAssignmentPropertiesUser withObjectId(String objectId) { - this.objectId = objectId; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("objectId", this.objectId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of AccessPolicyAssignmentPropertiesUser from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of AccessPolicyAssignmentPropertiesUser if the JsonReader was pointing to an instance of it, - * or null if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the AccessPolicyAssignmentPropertiesUser. - */ - public static AccessPolicyAssignmentPropertiesUser fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - AccessPolicyAssignmentPropertiesUser deserializedAccessPolicyAssignmentPropertiesUser - = new AccessPolicyAssignmentPropertiesUser(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("objectId".equals(fieldName)) { - deserializedAccessPolicyAssignmentPropertiesUser.objectId = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedAccessPolicyAssignmentPropertiesUser; - }); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/AccessPolicyAssignments.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/AccessPolicyAssignments.java deleted file mode 100644 index 9dde182fb631c..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/AccessPolicyAssignments.java +++ /dev/null @@ -1,153 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of AccessPolicyAssignments. - */ -public interface AccessPolicyAssignments { - /** - * Gets information about access policy assignment for database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about access policy assignment for database along with {@link Response}. - */ - Response getWithResponse(String resourceGroupName, String clusterName, String databaseName, - String accessPolicyAssignmentName, Context context); - - /** - * Gets information about access policy assignment for database. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about access policy assignment for database. - */ - AccessPolicyAssignment get(String resourceGroupName, String clusterName, String databaseName, - String accessPolicyAssignmentName); - - /** - * Deletes a single access policy assignment. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String resourceGroupName, String clusterName, String databaseName, String accessPolicyAssignmentName); - - /** - * Deletes a single access policy assignment. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param accessPolicyAssignmentName The name of the Redis Enterprise database access policy assignment. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String resourceGroupName, String clusterName, String databaseName, String accessPolicyAssignmentName, - Context context); - - /** - * Gets all access policy assignments.. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all access policy assignments. as paginated response with {@link PagedIterable}. - */ - PagedIterable list(String resourceGroupName, String clusterName, String databaseName); - - /** - * Gets all access policy assignments.. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all access policy assignments. as paginated response with {@link PagedIterable}. - */ - PagedIterable list(String resourceGroupName, String clusterName, String databaseName, - Context context); - - /** - * Gets information about access policy assignment for database. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about access policy assignment for database along with {@link Response}. - */ - AccessPolicyAssignment getById(String id); - - /** - * Gets information about access policy assignment for database. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about access policy assignment for database along with {@link Response}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Deletes a single access policy assignment. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * Deletes a single access policy assignment. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new AccessPolicyAssignment resource. - * - * @param name resource name. - * @return the first stage of the new AccessPolicyAssignment definition. - */ - AccessPolicyAssignment.DefinitionStages.Blank define(String name); -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/AofFrequency.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/AofFrequency.java index 95209778aacd5..952c42a3c83cd 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/AofFrequency.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/AofFrequency.java @@ -8,8 +8,7 @@ import java.util.Collection; /** - * 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 final class AofFrequency extends ExpandableStringEnum { /** diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Cluster.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Cluster.java index 4a4f2dbe61d8e..ea4c27c80fbf8 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Cluster.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Cluster.java @@ -71,17 +71,7 @@ public interface Cluster { ManagedServiceIdentity identity(); /** - * Gets the highAvailability property: 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. - * - * @return the highAvailability value. - */ - HighAvailability highAvailability(); - - /** - * Gets the minimumTlsVersion property: 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. + * Gets the minimumTlsVersion property: The minimum TLS version for the cluster to support, e.g. '1.2'. * * @return the minimumTlsVersion value. */ @@ -108,14 +98,6 @@ public interface Cluster { */ ProvisioningState provisioningState(); - /** - * Gets the redundancyMode property: Explains the current redundancy strategy of the cluster, which affects the - * expected SLA. - * - * @return the redundancyMode value. - */ - RedundancyMode redundancyMode(); - /** * Gets the resourceState property: Current resource status of the cluster. * @@ -132,7 +114,7 @@ public interface Cluster { /** * Gets the privateEndpointConnections property: List of private endpoint connections associated with the specified - * Redis Enterprise cluster. + * RedisEnterprise cluster. * * @return the privateEndpointConnections value. */ @@ -235,8 +217,7 @@ interface WithSku { * created, but also allows for any other optional properties to be specified. */ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithZones, - DefinitionStages.WithIdentity, DefinitionStages.WithHighAvailability, - DefinitionStages.WithMinimumTlsVersion, DefinitionStages.WithEncryption { + DefinitionStages.WithIdentity, DefinitionStages.WithMinimumTlsVersion, DefinitionStages.WithEncryption { /** * Executes the create request. * @@ -292,33 +273,14 @@ interface WithIdentity { WithCreate withIdentity(ManagedServiceIdentity identity); } - /** - * The stage of the Cluster definition allowing to specify highAvailability. - */ - interface WithHighAvailability { - /** - * Specifies the highAvailability property: 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.. - * - * @param highAvailability 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. - * @return the next definition stage. - */ - WithCreate withHighAvailability(HighAvailability highAvailability); - } - /** * The stage of the Cluster definition allowing to specify minimumTlsVersion. */ interface WithMinimumTlsVersion { /** * Specifies the minimumTlsVersion property: 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.. * - * @param minimumTlsVersion 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. + * @param minimumTlsVersion The minimum TLS version for the cluster to support, e.g. '1.2'. * @return the next definition stage. */ WithCreate withMinimumTlsVersion(TlsVersion minimumTlsVersion); @@ -349,7 +311,7 @@ interface WithEncryption { * The template for Cluster update. */ interface Update extends UpdateStages.WithTags, UpdateStages.WithSku, UpdateStages.WithIdentity, - UpdateStages.WithHighAvailability, UpdateStages.WithMinimumTlsVersion, UpdateStages.WithEncryption { + UpdateStages.WithMinimumTlsVersion, UpdateStages.WithEncryption { /** * Executes the update request. * @@ -409,33 +371,14 @@ interface WithIdentity { Update withIdentity(ManagedServiceIdentity identity); } - /** - * The stage of the Cluster update allowing to specify highAvailability. - */ - interface WithHighAvailability { - /** - * Specifies the highAvailability property: 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.. - * - * @param highAvailability 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. - * @return the next definition stage. - */ - Update withHighAvailability(HighAvailability highAvailability); - } - /** * The stage of the Cluster update allowing to specify minimumTlsVersion. */ interface WithMinimumTlsVersion { /** * Specifies the minimumTlsVersion property: 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.. * - * @param minimumTlsVersion 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. + * @param minimumTlsVersion The minimum TLS version for the cluster to support, e.g. '1.2'. * @return the next definition stage. */ Update withMinimumTlsVersion(TlsVersion minimumTlsVersion); diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ClusterUpdate.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ClusterUpdate.java index e46e9397e5229..f681bc645f11a 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ClusterUpdate.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ClusterUpdate.java @@ -16,7 +16,7 @@ import java.util.Map; /** - * A partial update to the Redis Enterprise cluster. + * A partial update to the RedisEnterprise cluster. */ @Fluent public final class ClusterUpdate implements JsonSerializable { @@ -116,34 +116,7 @@ public ClusterUpdate withTags(Map tags) { } /** - * Get the highAvailability property: 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. - * - * @return the highAvailability value. - */ - public HighAvailability highAvailability() { - return this.innerProperties() == null ? null : this.innerProperties().highAvailability(); - } - - /** - * Set the highAvailability property: 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. - * - * @param highAvailability the highAvailability value to set. - * @return the ClusterUpdate object itself. - */ - public ClusterUpdate withHighAvailability(HighAvailability highAvailability) { - if (this.innerProperties() == null) { - this.innerProperties = new ClusterProperties(); - } - this.innerProperties().withHighAvailability(highAvailability); - return this; - } - - /** - * Get the minimumTlsVersion property: 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. + * Get the minimumTlsVersion property: The minimum TLS version for the cluster to support, e.g. '1.2'. * * @return the minimumTlsVersion value. */ @@ -152,9 +125,7 @@ public TlsVersion minimumTlsVersion() { } /** - * Set the minimumTlsVersion property: 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. + * Set the minimumTlsVersion property: The minimum TLS version for the cluster to support, e.g. '1.2'. * * @param minimumTlsVersion the minimumTlsVersion value to set. * @return the ClusterUpdate object itself. @@ -208,16 +179,6 @@ public ProvisioningState provisioningState() { return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); } - /** - * Get the redundancyMode property: Explains the current redundancy strategy of the cluster, which affects the - * expected SLA. - * - * @return the redundancyMode value. - */ - public RedundancyMode redundancyMode() { - return this.innerProperties() == null ? null : this.innerProperties().redundancyMode(); - } - /** * Get the resourceState property: Current resource status of the cluster. * @@ -238,7 +199,7 @@ public String redisVersion() { /** * Get the privateEndpointConnections property: List of private endpoint connections associated with the specified - * Redis Enterprise cluster. + * RedisEnterprise cluster. * * @return the privateEndpointConnections value. */ diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ClusteringPolicy.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ClusteringPolicy.java index bc3c017e6fa5f..5eeb8063f2598 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ClusteringPolicy.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ClusteringPolicy.java @@ -8,8 +8,7 @@ import java.util.Collection; /** - * 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 final class ClusteringPolicy extends ExpandableStringEnum { /** diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Database.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Database.java index f6b1af8f13233..ac671a2848c16 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Database.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Database.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.redisenterprise.models; import com.azure.core.http.rest.Response; -import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.redisenterprise.fluent.models.DatabaseInner; import java.util.List; @@ -35,13 +34,6 @@ public interface Database { */ String type(); - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - /** * Gets the clientProtocol property: Specifies whether redis clients can connect using TLS-encrypted or plaintext * redis protocols. Default is TLS-encrypted. @@ -73,8 +65,7 @@ public interface Database { ResourceState resourceState(); /** - * Gets the clusteringPolicy property: Clustering policy - default is OSSCluster. This property must be chosen at - * create time, and cannot be changed without deleting the database. + * Gets the clusteringPolicy property: Clustering policy - default is OSSCluster. Specified at create time. * * @return the clusteringPolicy value. */ @@ -109,29 +100,6 @@ public interface Database { */ DatabasePropertiesGeoReplication geoReplication(); - /** - * Gets the redisVersion property: Version of Redis the database is running on, e.g. '6.0'. - * - * @return the redisVersion value. - */ - String redisVersion(); - - /** - * Gets the deferUpgrade property: Option to defer upgrade when newest version is released - default is NotDeferred. - * Learn more: https://aka.ms/redisversionupgrade. - * - * @return the deferUpgrade value. - */ - DeferUpgradeSetting deferUpgrade(); - - /** - * Gets the accessKeysAuthentication property: This property can be Enabled/Disabled to allow or deny access with - * the current access keys. Can be updated even after database is created. - * - * @return the accessKeysAuthentication value. - */ - AccessKeysAuthentication accessKeysAuthentication(); - /** * Gets the name of the resource group. * @@ -171,7 +139,8 @@ interface WithParentResource { * Specifies resourceGroupName, clusterName. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @return the next definition stage. */ WithCreate withExistingRedisEnterprise(String resourceGroupName, String clusterName); @@ -183,8 +152,7 @@ interface WithParentResource { */ interface WithCreate extends DefinitionStages.WithClientProtocol, DefinitionStages.WithPort, DefinitionStages.WithClusteringPolicy, DefinitionStages.WithEvictionPolicy, - DefinitionStages.WithPersistence, DefinitionStages.WithModules, DefinitionStages.WithGeoReplication, - DefinitionStages.WithDeferUpgrade, DefinitionStages.WithAccessKeysAuthentication { + DefinitionStages.WithPersistence, DefinitionStages.WithModules, DefinitionStages.WithGeoReplication { /** * Executes the create request. * @@ -235,11 +203,10 @@ interface WithPort { */ interface WithClusteringPolicy { /** - * Specifies the clusteringPolicy property: Clustering policy - default is OSSCluster. This property must be - * chosen at create time, and cannot be changed without deleting the database.. + * Specifies the clusteringPolicy property: Clustering policy - default is OSSCluster. Specified at create + * time.. * - * @param clusteringPolicy Clustering policy - default is OSSCluster. This property must be chosen at create - * time, and cannot be changed without deleting the database. + * @param clusteringPolicy Clustering policy - default is OSSCluster. Specified at create time. * @return the next definition stage. */ WithCreate withClusteringPolicy(ClusteringPolicy clusteringPolicy); @@ -299,36 +266,6 @@ interface WithGeoReplication { */ WithCreate withGeoReplication(DatabasePropertiesGeoReplication geoReplication); } - - /** - * The stage of the Database definition allowing to specify deferUpgrade. - */ - interface WithDeferUpgrade { - /** - * Specifies the deferUpgrade property: Option to defer upgrade when newest version is released - default is - * NotDeferred. Learn more: https://aka.ms/redisversionupgrade. - * - * @param deferUpgrade Option to defer upgrade when newest version is released - default is NotDeferred. - * Learn more: https://aka.ms/redisversionupgrade. - * @return the next definition stage. - */ - WithCreate withDeferUpgrade(DeferUpgradeSetting deferUpgrade); - } - - /** - * The stage of the Database definition allowing to specify accessKeysAuthentication. - */ - interface WithAccessKeysAuthentication { - /** - * Specifies the accessKeysAuthentication property: This property can be Enabled/Disabled to allow or deny - * access with the current access keys. Can be updated even after database is created.. - * - * @param accessKeysAuthentication This property can be Enabled/Disabled to allow or deny access with the - * current access keys. Can be updated even after database is created. - * @return the next definition stage. - */ - WithCreate withAccessKeysAuthentication(AccessKeysAuthentication accessKeysAuthentication); - } } /** @@ -341,8 +278,8 @@ interface WithAccessKeysAuthentication { /** * The template for Database update. */ - interface Update extends UpdateStages.WithClientProtocol, UpdateStages.WithEvictionPolicy, - UpdateStages.WithPersistence, UpdateStages.WithDeferUpgrade, UpdateStages.WithAccessKeysAuthentication { + interface Update + extends UpdateStages.WithClientProtocol, UpdateStages.WithEvictionPolicy, UpdateStages.WithPersistence { /** * Executes the update request. * @@ -403,36 +340,6 @@ interface WithPersistence { */ Update withPersistence(Persistence persistence); } - - /** - * The stage of the Database update allowing to specify deferUpgrade. - */ - interface WithDeferUpgrade { - /** - * Specifies the deferUpgrade property: Option to defer upgrade when newest version is released - default is - * NotDeferred. Learn more: https://aka.ms/redisversionupgrade. - * - * @param deferUpgrade Option to defer upgrade when newest version is released - default is NotDeferred. - * Learn more: https://aka.ms/redisversionupgrade. - * @return the next definition stage. - */ - Update withDeferUpgrade(DeferUpgradeSetting deferUpgrade); - } - - /** - * The stage of the Database update allowing to specify accessKeysAuthentication. - */ - interface WithAccessKeysAuthentication { - /** - * Specifies the accessKeysAuthentication property: This property can be Enabled/Disabled to allow or deny - * access with the current access keys. Can be updated even after database is created.. - * - * @param accessKeysAuthentication This property can be Enabled/Disabled to allow or deny access with the - * current access keys. Can be updated even after database is created. - * @return the next definition stage. - */ - Update withAccessKeysAuthentication(AccessKeysAuthentication accessKeysAuthentication); - } } /** @@ -451,7 +358,7 @@ interface WithAccessKeysAuthentication { Database refresh(Context context); /** - * Retrieves the access keys for the Redis Enterprise database. + * Retrieves the access keys for the RedisEnterprise database. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -462,7 +369,7 @@ interface WithAccessKeysAuthentication { Response listKeysWithResponse(Context context); /** - * Retrieves the access keys for the Redis Enterprise database. + * Retrieves the access keys for the RedisEnterprise database. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -471,7 +378,7 @@ interface WithAccessKeysAuthentication { AccessKeys listKeys(); /** - * Regenerates the Redis Enterprise database's access keys. + * Regenerates the RedisEnterprise database's access keys. * * @param parameters Specifies which key to regenerate. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -482,7 +389,7 @@ interface WithAccessKeysAuthentication { AccessKeys regenerateKey(RegenerateKeyParameters parameters); /** - * Regenerates the Redis Enterprise database's access keys. + * Regenerates the RedisEnterprise database's access keys. * * @param parameters Specifies which key to regenerate. * @param context The context to associate with this operation. @@ -601,22 +508,4 @@ interface WithAccessKeysAuthentication { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ void flush(FlushParameters parameters, Context context); - - /** - * Upgrades the database Redis version to the latest available. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void upgradeDBRedisVersion(); - - /** - * Upgrades the database Redis version to the latest available. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void upgradeDBRedisVersion(Context context); } diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/DatabaseUpdate.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/DatabaseUpdate.java index 1506d904c573e..d98681b0b3081 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/DatabaseUpdate.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/DatabaseUpdate.java @@ -14,7 +14,7 @@ import java.util.List; /** - * A partial update to the Redis Enterprise database. + * A partial update to the RedisEnterprise database. */ @Fluent public final class DatabaseUpdate implements JsonSerializable { @@ -107,8 +107,7 @@ public ResourceState resourceState() { } /** - * Get the clusteringPolicy property: Clustering policy - default is OSSCluster. This property must be chosen at - * create time, and cannot be changed without deleting the database. + * Get the clusteringPolicy property: Clustering policy - default is OSSCluster. Specified at create time. * * @return the clusteringPolicy value. */ @@ -117,8 +116,7 @@ public ClusteringPolicy clusteringPolicy() { } /** - * Set the clusteringPolicy property: Clustering policy - default is OSSCluster. This property must be chosen at - * create time, and cannot be changed without deleting the database. + * Set the clusteringPolicy property: Clustering policy - default is OSSCluster. Specified at create time. * * @param clusteringPolicy the clusteringPolicy value to set. * @return the DatabaseUpdate object itself. @@ -225,65 +223,6 @@ public DatabaseUpdate withGeoReplication(DatabasePropertiesGeoReplication geoRep return this; } - /** - * Get the redisVersion property: Version of Redis the database is running on, e.g. '6.0'. - * - * @return the redisVersion value. - */ - public String redisVersion() { - return this.innerProperties() == null ? null : this.innerProperties().redisVersion(); - } - - /** - * Get the deferUpgrade property: Option to defer upgrade when newest version is released - default is NotDeferred. - * Learn more: https://aka.ms/redisversionupgrade. - * - * @return the deferUpgrade value. - */ - public DeferUpgradeSetting deferUpgrade() { - return this.innerProperties() == null ? null : this.innerProperties().deferUpgrade(); - } - - /** - * Set the deferUpgrade property: Option to defer upgrade when newest version is released - default is NotDeferred. - * Learn more: https://aka.ms/redisversionupgrade. - * - * @param deferUpgrade the deferUpgrade value to set. - * @return the DatabaseUpdate object itself. - */ - public DatabaseUpdate withDeferUpgrade(DeferUpgradeSetting deferUpgrade) { - if (this.innerProperties() == null) { - this.innerProperties = new DatabaseProperties(); - } - this.innerProperties().withDeferUpgrade(deferUpgrade); - return this; - } - - /** - * Get the accessKeysAuthentication property: This property can be Enabled/Disabled to allow or deny access with the - * current access keys. Can be updated even after database is created. - * - * @return the accessKeysAuthentication value. - */ - public AccessKeysAuthentication accessKeysAuthentication() { - return this.innerProperties() == null ? null : this.innerProperties().accessKeysAuthentication(); - } - - /** - * Set the accessKeysAuthentication property: This property can be Enabled/Disabled to allow or deny access with the - * current access keys. Can be updated even after database is created. - * - * @param accessKeysAuthentication the accessKeysAuthentication value to set. - * @return the DatabaseUpdate object itself. - */ - public DatabaseUpdate withAccessKeysAuthentication(AccessKeysAuthentication accessKeysAuthentication) { - if (this.innerProperties() == null) { - this.innerProperties = new DatabaseProperties(); - } - this.innerProperties().withAccessKeysAuthentication(accessKeysAuthentication); - return this; - } - /** * Validates the instance. * diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Databases.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Databases.java index db95e6c77ca86..394eb6c688093 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Databases.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Databases.java @@ -13,55 +13,59 @@ */ public interface Databases { /** - * Gets all databases in the specified Redis Enterprise cluster. + * Gets all databases in the specified RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all databases in the specified Redis Enterprise cluster as paginated response with {@link PagedIterable}. + * @return all databases in the specified RedisEnterprise cluster as paginated response with {@link PagedIterable}. */ PagedIterable listByCluster(String resourceGroupName, String clusterName); /** - * Gets all databases in the specified Redis Enterprise cluster. + * Gets all databases in the specified RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all databases in the specified Redis Enterprise cluster as paginated response with {@link PagedIterable}. + * @return all databases in the specified RedisEnterprise cluster as paginated response with {@link PagedIterable}. */ PagedIterable listByCluster(String resourceGroupName, String clusterName, Context context); /** - * Gets information about a database in a Redis Enterprise cluster. + * Gets information about a database in a RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a database in a Redis Enterprise cluster along with {@link Response}. + * @return information about a database in a RedisEnterprise cluster along with {@link Response}. */ Response getWithResponse(String resourceGroupName, String clusterName, String databaseName, Context context); /** - * Gets information about a database in a Redis Enterprise cluster. + * Gets information about a database in a RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a database in a Redis Enterprise cluster. + * @return information about a database in a RedisEnterprise cluster. */ Database get(String resourceGroupName, String clusterName, String databaseName); @@ -69,7 +73,8 @@ Response getWithResponse(String resourceGroupName, String clusterName, * Deletes a single database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -81,7 +86,8 @@ Response getWithResponse(String resourceGroupName, String clusterName, * Deletes a single database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -91,10 +97,11 @@ Response getWithResponse(String resourceGroupName, String clusterName, void delete(String resourceGroupName, String clusterName, String databaseName, Context context); /** - * Retrieves the access keys for the Redis Enterprise database. + * Retrieves the access keys for the RedisEnterprise database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -106,10 +113,11 @@ Response listKeysWithResponse(String resourceGroupName, String clust Context context); /** - * Retrieves the access keys for the Redis Enterprise database. + * Retrieves the access keys for the RedisEnterprise database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -119,10 +127,11 @@ Response listKeysWithResponse(String resourceGroupName, String clust AccessKeys listKeys(String resourceGroupName, String clusterName, String databaseName); /** - * Regenerates the Redis Enterprise database's access keys. + * Regenerates the RedisEnterprise database's access keys. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Specifies which key to regenerate. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -134,10 +143,11 @@ AccessKeys regenerateKey(String resourceGroupName, String clusterName, String da RegenerateKeyParameters parameters); /** - * Regenerates the Redis Enterprise database's access keys. + * Regenerates the RedisEnterprise database's access keys. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Specifies which key to regenerate. * @param context The context to associate with this operation. @@ -153,7 +163,8 @@ AccessKeys regenerateKey(String resourceGroupName, String clusterName, String da * Imports database files to target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for importing into the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -167,7 +178,8 @@ void importMethod(String resourceGroupName, String clusterName, String databaseN * Imports database files to target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for importing into the cluster. * @param context The context to associate with this operation. @@ -182,7 +194,8 @@ void importMethod(String resourceGroupName, String clusterName, String databaseN * Exports a database file from target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for exporting into the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -195,7 +208,8 @@ void importMethod(String resourceGroupName, String clusterName, String databaseN * Exports a database file from target database. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Storage information for exporting into the cluster. * @param context The context to associate with this operation. @@ -210,7 +224,8 @@ void export(String resourceGroupName, String clusterName, String databaseName, E * Forcibly removes the link to the specified database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -224,7 +239,8 @@ void forceUnlink(String resourceGroupName, String clusterName, String databaseNa * Forcibly removes the link to the specified database resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @param context The context to associate with this operation. @@ -241,7 +257,8 @@ void forceUnlink(String resourceGroupName, String clusterName, String databaseNa * unavailable while rejoining the replication group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -257,7 +274,8 @@ void forceLinkToReplicationGroup(String resourceGroupName, String clusterName, S * unavailable while rejoining the replication group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the database to be unlinked. * @param context The context to associate with this operation. @@ -272,7 +290,8 @@ void forceLinkToReplicationGroup(String resourceGroupName, String clusterName, S * Flushes all the keys in this database and also from its linked databases. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the databases to be flushed. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -285,7 +304,8 @@ void forceLinkToReplicationGroup(String resourceGroupName, String clusterName, S * Flushes all the keys in this database and also from its linked databases. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param databaseName The name of the Redis Enterprise database. * @param parameters Information identifying the databases to be flushed. * @param context The context to associate with this operation. @@ -297,50 +317,25 @@ void flush(String resourceGroupName, String clusterName, String databaseName, Fl Context context); /** - * Upgrades the database Redis version to the latest available. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void upgradeDBRedisVersion(String resourceGroupName, String clusterName, String databaseName); - - /** - * Upgrades the database Redis version to the latest available. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. - * @param databaseName The name of the Redis Enterprise database. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void upgradeDBRedisVersion(String resourceGroupName, String clusterName, String databaseName, Context context); - - /** - * Gets information about a database in a Redis Enterprise cluster. + * Gets information about a database in a RedisEnterprise cluster. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a database in a Redis Enterprise cluster along with {@link Response}. + * @return information about a database in a RedisEnterprise cluster along with {@link Response}. */ Database getById(String id); /** - * Gets information about a database in a Redis Enterprise cluster. + * Gets information about a database in a RedisEnterprise cluster. * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a database in a Redis Enterprise cluster along with {@link Response}. + * @return information about a database in a RedisEnterprise cluster along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/DeferUpgradeSetting.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/DeferUpgradeSetting.java deleted file mode 100644 index 41aefe004133c..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/DeferUpgradeSetting.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Option to defer upgrade when newest version is released - default is NotDeferred. Learn more: - * https://aka.ms/redisversionupgrade. - */ -public final class DeferUpgradeSetting extends ExpandableStringEnum { - /** - * Static value Deferred for DeferUpgradeSetting. - */ - public static final DeferUpgradeSetting DEFERRED = fromString("Deferred"); - - /** - * Static value NotDeferred for DeferUpgradeSetting. - */ - public static final DeferUpgradeSetting NOT_DEFERRED = fromString("NotDeferred"); - - /** - * Creates a new instance of DeferUpgradeSetting value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public DeferUpgradeSetting() { - } - - /** - * Creates or finds a DeferUpgradeSetting from its string representation. - * - * @param name a name to look for. - * @return the corresponding DeferUpgradeSetting. - */ - public static DeferUpgradeSetting fromString(String name) { - return fromString(name, DeferUpgradeSetting.class); - } - - /** - * Gets known DeferUpgradeSetting values. - * - * @return known DeferUpgradeSetting values. - */ - public static Collection values() { - return values(DeferUpgradeSetting.class); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ForceUnlinkParameters.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ForceUnlinkParameters.java index 15890a62072be..a9adc1a3409d1 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ForceUnlinkParameters.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ForceUnlinkParameters.java @@ -16,7 +16,7 @@ /** * Forcibly unlink another database from this database. * - * Parameters for a redis enterprise active geo-replication force unlink operation. + * Parameters for a Redis Enterprise Active Geo Replication Force Unlink operation. */ @Fluent public final class ForceUnlinkParameters implements JsonSerializable { diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/HighAvailability.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/HighAvailability.java deleted file mode 100644 index e99af3683e5cb..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/HighAvailability.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * 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 final class HighAvailability extends ExpandableStringEnum { - /** - * Static value Enabled for HighAvailability. - */ - public static final HighAvailability ENABLED = fromString("Enabled"); - - /** - * Static value Disabled for HighAvailability. - */ - public static final HighAvailability DISABLED = fromString("Disabled"); - - /** - * Creates a new instance of HighAvailability value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public HighAvailability() { - } - - /** - * Creates or finds a HighAvailability from its string representation. - * - * @param name a name to look for. - * @return the corresponding HighAvailability. - */ - public static HighAvailability fromString(String name) { - return fromString(name, HighAvailability.class); - } - - /** - * Gets known HighAvailability values. - * - * @return known HighAvailability values. - */ - public static Collection values() { - return values(HighAvailability.class); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Persistence.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Persistence.java index e92cf3e43692e..df9944d37fd8f 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Persistence.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Persistence.java @@ -14,23 +14,22 @@ /** * Persistence settings * - * Persistence-related configuration for the Redis Enterprise database. + * Persistence-related configuration for the RedisEnterprise database. */ @Fluent public final class Persistence implements JsonSerializable { /* - * Sets whether AOF is enabled. Note that at most one of AOF or RDB persistence may be enabled. + * Sets whether AOF is enabled. */ private Boolean aofEnabled; /* - * Sets whether RDB is enabled. Note that at most one of AOF or RDB persistence may be enabled. + * Sets whether RDB is enabled. */ private Boolean rdbEnabled; /* - * 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. */ private AofFrequency aofFrequency; @@ -46,8 +45,7 @@ public Persistence() { } /** - * Get the aofEnabled property: Sets whether AOF is enabled. Note that at most one of AOF or RDB persistence may be - * enabled. + * Get the aofEnabled property: Sets whether AOF is enabled. * * @return the aofEnabled value. */ @@ -56,8 +54,7 @@ public Boolean aofEnabled() { } /** - * Set the aofEnabled property: Sets whether AOF is enabled. Note that at most one of AOF or RDB persistence may be - * enabled. + * Set the aofEnabled property: Sets whether AOF is enabled. * * @param aofEnabled the aofEnabled value to set. * @return the Persistence object itself. @@ -68,8 +65,7 @@ public Persistence withAofEnabled(Boolean aofEnabled) { } /** - * Get the rdbEnabled property: Sets whether RDB is enabled. Note that at most one of AOF or RDB persistence may be - * enabled. + * Get the rdbEnabled property: Sets whether RDB is enabled. * * @return the rdbEnabled value. */ @@ -78,8 +74,7 @@ public Boolean rdbEnabled() { } /** - * Set the rdbEnabled property: Sets whether RDB is enabled. Note that at most one of AOF or RDB persistence may be - * enabled. + * Set the rdbEnabled property: Sets whether RDB is enabled. * * @param rdbEnabled the rdbEnabled value to set. * @return the Persistence object itself. @@ -90,8 +85,7 @@ public Persistence withRdbEnabled(Boolean rdbEnabled) { } /** - * Get the aofFrequency property: 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. + * Get the aofFrequency property: Sets the frequency at which data is written to disk. * * @return the aofFrequency value. */ @@ -100,8 +94,7 @@ public AofFrequency aofFrequency() { } /** - * Set the aofFrequency property: 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. + * Set the aofFrequency property: Sets the frequency at which data is written to disk. * * @param aofFrequency the aofFrequency value to set. * @return the Persistence object itself. diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/PrivateEndpointConnection.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/PrivateEndpointConnection.java index 214cf89d5b318..ee33840df7be0 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/PrivateEndpointConnection.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/PrivateEndpointConnection.java @@ -93,7 +93,8 @@ interface WithParentResource { * Specifies resourceGroupName, clusterName. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @return the next definition stage. */ WithCreate withExistingRedisEnterprise(String resourceGroupName, String clusterName); diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/PrivateEndpointConnections.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/PrivateEndpointConnections.java index a6ab0bc463f88..1785975f3bc94 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/PrivateEndpointConnections.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/PrivateEndpointConnections.java @@ -13,10 +13,11 @@ */ public interface PrivateEndpointConnections { /** - * Lists all the private endpoint connections associated with the Redis Enterprise cluster. + * Lists all the private endpoint connections associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -26,10 +27,11 @@ public interface PrivateEndpointConnections { PagedIterable list(String resourceGroupName, String clusterName); /** - * Lists all the private endpoint connections associated with the Redis Enterprise cluster. + * Lists all the private endpoint connections associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -40,41 +42,44 @@ public interface PrivateEndpointConnections { PagedIterable list(String resourceGroupName, String clusterName, Context context); /** - * Gets the specified private endpoint connection associated with the Redis Enterprise cluster. + * Gets the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection associated with the Redis Enterprise cluster along with + * @return the specified private endpoint connection associated with the RedisEnterprise cluster along with * {@link Response}. */ Response getWithResponse(String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context); /** - * Gets the specified private endpoint connection associated with the Redis Enterprise cluster. + * Gets the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection associated with the Redis Enterprise cluster. + * @return the specified private endpoint connection associated with the RedisEnterprise cluster. */ PrivateEndpointConnection get(String resourceGroupName, String clusterName, String privateEndpointConnectionName); /** - * Deletes the specified private endpoint connection associated with the Redis Enterprise cluster. + * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -84,10 +89,11 @@ Response getWithResponse(String resourceGroupName, St void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName); /** - * Deletes the specified private endpoint connection associated with the Redis Enterprise cluster. + * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param context The context to associate with this operation. @@ -98,32 +104,32 @@ Response getWithResponse(String resourceGroupName, St void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context); /** - * Gets the specified private endpoint connection associated with the Redis Enterprise cluster. + * Gets the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection associated with the Redis Enterprise cluster along with + * @return the specified private endpoint connection associated with the RedisEnterprise cluster along with * {@link Response}. */ PrivateEndpointConnection getById(String id); /** - * Gets the specified private endpoint connection associated with the Redis Enterprise cluster. + * Gets the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection associated with the Redis Enterprise cluster along with + * @return the specified private endpoint connection associated with the RedisEnterprise cluster along with * {@link Response}. */ Response getByIdWithResponse(String id, Context context); /** - * Deletes the specified private endpoint connection associated with the Redis Enterprise cluster. + * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -133,7 +139,7 @@ Response getWithResponse(String resourceGroupName, St void deleteById(String id); /** - * Deletes the specified private endpoint connection associated with the Redis Enterprise cluster. + * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/PrivateLinkResources.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/PrivateLinkResources.java index 2b1cd723fd4d3..efa9a0ca227f4 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/PrivateLinkResources.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/PrivateLinkResources.java @@ -12,28 +12,30 @@ */ public interface PrivateLinkResources { /** - * 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. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private link resources that need to be created for a Redis Enterprise cluster as paginated response + * @return the private link resources that need to be created for a RedisEnterprise cluster as paginated response * with {@link PagedIterable}. */ PagedIterable listByCluster(String resourceGroupName, String clusterName); /** - * 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. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private link resources that need to be created for a Redis Enterprise cluster as paginated response + * @return the private link resources that need to be created for a RedisEnterprise cluster as paginated response * with {@link PagedIterable}. */ PagedIterable listByCluster(String resourceGroupName, String clusterName, Context context); diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/RedisEnterprises.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/RedisEnterprises.java index e4ec8ca91da8c..d5bb97ba80416 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/RedisEnterprises.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/RedisEnterprises.java @@ -13,10 +13,11 @@ */ public interface RedisEnterprises { /** - * Deletes a Redis Enterprise cache cluster. + * Deletes a RedisEnterprise cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -24,10 +25,11 @@ public interface RedisEnterprises { void deleteByResourceGroup(String resourceGroupName, String clusterName); /** - * Deletes a Redis Enterprise cache cluster. + * Deletes a RedisEnterprise cache cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -36,32 +38,34 @@ public interface RedisEnterprises { void delete(String resourceGroupName, String clusterName, Context context); /** - * Gets information about a Redis Enterprise cluster. + * Gets information about a RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a Redis Enterprise cluster along with {@link Response}. + * @return information about a RedisEnterprise cluster along with {@link Response}. */ Response getByResourceGroupWithResponse(String resourceGroupName, String clusterName, Context context); /** - * Gets information about a Redis Enterprise cluster. + * Gets information about a RedisEnterprise cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the Redis Enterprise cluster. + * @param clusterName 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a Redis Enterprise cluster. + * @return information about a RedisEnterprise cluster. */ Cluster getByResourceGroup(String resourceGroupName, String clusterName); /** - * Lists all Redis Enterprise clusters in a resource group. + * Lists all RedisEnterprise clusters in a resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -72,7 +76,7 @@ public interface RedisEnterprises { PagedIterable listByResourceGroup(String resourceGroupName); /** - * Lists all Redis Enterprise clusters in a resource group. + * Lists all RedisEnterprise clusters in a resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. @@ -84,50 +88,52 @@ public interface RedisEnterprises { PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * Lists all Redis Enterprise clusters in the specified subscription. + * Gets all RedisEnterprise clusters in the specified subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a list-all operation as paginated response with {@link PagedIterable}. + * @return all RedisEnterprise clusters in the specified subscription as paginated response with + * {@link PagedIterable}. */ PagedIterable list(); /** - * Lists all Redis Enterprise clusters in the specified subscription. + * Gets all RedisEnterprise clusters in the specified subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a list-all operation as paginated response with {@link PagedIterable}. + * @return all RedisEnterprise clusters in the specified subscription as paginated response with + * {@link PagedIterable}. */ PagedIterable list(Context context); /** - * Gets information about a Redis Enterprise cluster. + * Gets information about a RedisEnterprise cluster. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a Redis Enterprise cluster along with {@link Response}. + * @return information about a RedisEnterprise cluster along with {@link Response}. */ Cluster getById(String id); /** - * Gets information about a Redis Enterprise cluster. + * Gets information about a RedisEnterprise cluster. * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a Redis Enterprise cluster along with {@link Response}. + * @return information about a RedisEnterprise cluster along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); /** - * Deletes a Redis Enterprise cache cluster. + * Deletes a RedisEnterprise cache cluster. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -137,7 +143,7 @@ public interface RedisEnterprises { void deleteById(String id); /** - * Deletes a Redis Enterprise cache cluster. + * Deletes a RedisEnterprise cache cluster. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/RedundancyMode.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/RedundancyMode.java deleted file mode 100644 index 055692603d27e..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/RedundancyMode.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Explains the current redundancy strategy of the cluster, which affects the expected SLA. - */ -public final class RedundancyMode extends ExpandableStringEnum { - /** - * Static value None for RedundancyMode. - */ - public static final RedundancyMode NONE = fromString("None"); - - /** - * Static value LR for RedundancyMode. - */ - public static final RedundancyMode LR = fromString("LR"); - - /** - * Static value ZR for RedundancyMode. - */ - public static final RedundancyMode ZR = fromString("ZR"); - - /** - * Creates a new instance of RedundancyMode value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public RedundancyMode() { - } - - /** - * Creates or finds a RedundancyMode from its string representation. - * - * @param name a name to look for. - * @return the corresponding RedundancyMode. - */ - public static RedundancyMode fromString(String name) { - return fromString(name, RedundancyMode.class); - } - - /** - * Gets known RedundancyMode values. - * - * @return known RedundancyMode values. - */ - public static Collection values() { - return values(RedundancyMode.class); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Sku.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Sku.java index 8e8add570d70f..0f0654a584ce0 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Sku.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Sku.java @@ -13,20 +13,18 @@ import java.io.IOException; /** - * SKU parameters supplied to the create Redis Enterprise cluster operation. + * SKU parameters supplied to the create RedisEnterprise operation. */ @Fluent public final class Sku implements JsonSerializable { /* - * 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.) */ private SkuName name; /* - * 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. */ private Integer capacity; @@ -37,9 +35,8 @@ public Sku() { } /** - * Get the name property: 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. + * Get the name property: The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, + * EnterpriseFlash_F300 etc.). * * @return the name value. */ @@ -48,9 +45,8 @@ public SkuName name() { } /** - * Set the name property: 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. + * Set the name property: The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, + * EnterpriseFlash_F300 etc.). * * @param name the name value to set. * @return the Sku object itself. @@ -61,9 +57,8 @@ public Sku withName(SkuName name) { } /** - * Get the capacity property: 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. + * Get the capacity property: 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. * * @return the capacity value. */ @@ -72,9 +67,8 @@ public Integer capacity() { } /** - * Set the capacity property: 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. + * Set the capacity property: 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. * * @param capacity the capacity value to set. * @return the Sku object itself. diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/SkuName.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/SkuName.java index 9031d6245c8c4..9489a95c0aa71 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/SkuName.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/SkuName.java @@ -8,9 +8,7 @@ import java.util.Collection; /** - * 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 final class SkuName extends ExpandableStringEnum { /** @@ -68,226 +66,6 @@ public final class SkuName extends ExpandableStringEnum { */ public static final SkuName ENTERPRISE_FLASH_F1500 = fromString("EnterpriseFlash_F1500"); - /** - * Static value Balanced_B0 for SkuName. - */ - public static final SkuName BALANCED_B0 = fromString("Balanced_B0"); - - /** - * Static value Balanced_B1 for SkuName. - */ - public static final SkuName BALANCED_B1 = fromString("Balanced_B1"); - - /** - * Static value Balanced_B3 for SkuName. - */ - public static final SkuName BALANCED_B3 = fromString("Balanced_B3"); - - /** - * Static value Balanced_B5 for SkuName. - */ - public static final SkuName BALANCED_B5 = fromString("Balanced_B5"); - - /** - * Static value Balanced_B10 for SkuName. - */ - public static final SkuName BALANCED_B10 = fromString("Balanced_B10"); - - /** - * Static value Balanced_B20 for SkuName. - */ - public static final SkuName BALANCED_B20 = fromString("Balanced_B20"); - - /** - * Static value Balanced_B50 for SkuName. - */ - public static final SkuName BALANCED_B50 = fromString("Balanced_B50"); - - /** - * Static value Balanced_B100 for SkuName. - */ - public static final SkuName BALANCED_B100 = fromString("Balanced_B100"); - - /** - * Static value Balanced_B150 for SkuName. - */ - public static final SkuName BALANCED_B150 = fromString("Balanced_B150"); - - /** - * Static value Balanced_B250 for SkuName. - */ - public static final SkuName BALANCED_B250 = fromString("Balanced_B250"); - - /** - * Static value Balanced_B350 for SkuName. - */ - public static final SkuName BALANCED_B350 = fromString("Balanced_B350"); - - /** - * Static value Balanced_B500 for SkuName. - */ - public static final SkuName BALANCED_B500 = fromString("Balanced_B500"); - - /** - * Static value Balanced_B700 for SkuName. - */ - public static final SkuName BALANCED_B700 = fromString("Balanced_B700"); - - /** - * Static value Balanced_B1000 for SkuName. - */ - public static final SkuName BALANCED_B1000 = fromString("Balanced_B1000"); - - /** - * Static value MemoryOptimized_M10 for SkuName. - */ - public static final SkuName MEMORY_OPTIMIZED_M10 = fromString("MemoryOptimized_M10"); - - /** - * Static value MemoryOptimized_M20 for SkuName. - */ - public static final SkuName MEMORY_OPTIMIZED_M20 = fromString("MemoryOptimized_M20"); - - /** - * Static value MemoryOptimized_M50 for SkuName. - */ - public static final SkuName MEMORY_OPTIMIZED_M50 = fromString("MemoryOptimized_M50"); - - /** - * Static value MemoryOptimized_M100 for SkuName. - */ - public static final SkuName MEMORY_OPTIMIZED_M100 = fromString("MemoryOptimized_M100"); - - /** - * Static value MemoryOptimized_M150 for SkuName. - */ - public static final SkuName MEMORY_OPTIMIZED_M150 = fromString("MemoryOptimized_M150"); - - /** - * Static value MemoryOptimized_M250 for SkuName. - */ - public static final SkuName MEMORY_OPTIMIZED_M250 = fromString("MemoryOptimized_M250"); - - /** - * Static value MemoryOptimized_M350 for SkuName. - */ - public static final SkuName MEMORY_OPTIMIZED_M350 = fromString("MemoryOptimized_M350"); - - /** - * Static value MemoryOptimized_M500 for SkuName. - */ - public static final SkuName MEMORY_OPTIMIZED_M500 = fromString("MemoryOptimized_M500"); - - /** - * Static value MemoryOptimized_M700 for SkuName. - */ - public static final SkuName MEMORY_OPTIMIZED_M700 = fromString("MemoryOptimized_M700"); - - /** - * Static value MemoryOptimized_M1000 for SkuName. - */ - public static final SkuName MEMORY_OPTIMIZED_M1000 = fromString("MemoryOptimized_M1000"); - - /** - * Static value MemoryOptimized_M1500 for SkuName. - */ - public static final SkuName MEMORY_OPTIMIZED_M1500 = fromString("MemoryOptimized_M1500"); - - /** - * Static value MemoryOptimized_M2000 for SkuName. - */ - public static final SkuName MEMORY_OPTIMIZED_M2000 = fromString("MemoryOptimized_M2000"); - - /** - * Static value ComputeOptimized_X3 for SkuName. - */ - public static final SkuName COMPUTE_OPTIMIZED_X3 = fromString("ComputeOptimized_X3"); - - /** - * Static value ComputeOptimized_X5 for SkuName. - */ - public static final SkuName COMPUTE_OPTIMIZED_X5 = fromString("ComputeOptimized_X5"); - - /** - * Static value ComputeOptimized_X10 for SkuName. - */ - public static final SkuName COMPUTE_OPTIMIZED_X10 = fromString("ComputeOptimized_X10"); - - /** - * Static value ComputeOptimized_X20 for SkuName. - */ - public static final SkuName COMPUTE_OPTIMIZED_X20 = fromString("ComputeOptimized_X20"); - - /** - * Static value ComputeOptimized_X50 for SkuName. - */ - public static final SkuName COMPUTE_OPTIMIZED_X50 = fromString("ComputeOptimized_X50"); - - /** - * Static value ComputeOptimized_X100 for SkuName. - */ - public static final SkuName COMPUTE_OPTIMIZED_X100 = fromString("ComputeOptimized_X100"); - - /** - * Static value ComputeOptimized_X150 for SkuName. - */ - public static final SkuName COMPUTE_OPTIMIZED_X150 = fromString("ComputeOptimized_X150"); - - /** - * Static value ComputeOptimized_X250 for SkuName. - */ - public static final SkuName COMPUTE_OPTIMIZED_X250 = fromString("ComputeOptimized_X250"); - - /** - * Static value ComputeOptimized_X350 for SkuName. - */ - public static final SkuName COMPUTE_OPTIMIZED_X350 = fromString("ComputeOptimized_X350"); - - /** - * Static value ComputeOptimized_X500 for SkuName. - */ - public static final SkuName COMPUTE_OPTIMIZED_X500 = fromString("ComputeOptimized_X500"); - - /** - * Static value ComputeOptimized_X700 for SkuName. - */ - public static final SkuName COMPUTE_OPTIMIZED_X700 = fromString("ComputeOptimized_X700"); - - /** - * Static value FlashOptimized_A250 for SkuName. - */ - public static final SkuName FLASH_OPTIMIZED_A250 = fromString("FlashOptimized_A250"); - - /** - * Static value FlashOptimized_A500 for SkuName. - */ - public static final SkuName FLASH_OPTIMIZED_A500 = fromString("FlashOptimized_A500"); - - /** - * Static value FlashOptimized_A700 for SkuName. - */ - public static final SkuName FLASH_OPTIMIZED_A700 = fromString("FlashOptimized_A700"); - - /** - * Static value FlashOptimized_A1000 for SkuName. - */ - public static final SkuName FLASH_OPTIMIZED_A1000 = fromString("FlashOptimized_A1000"); - - /** - * Static value FlashOptimized_A1500 for SkuName. - */ - public static final SkuName FLASH_OPTIMIZED_A1500 = fromString("FlashOptimized_A1500"); - - /** - * Static value FlashOptimized_A2000 for SkuName. - */ - public static final SkuName FLASH_OPTIMIZED_A2000 = fromString("FlashOptimized_A2000"); - - /** - * Static value FlashOptimized_A4500 for SkuName. - */ - public static final SkuName FLASH_OPTIMIZED_A4500 = fromString("FlashOptimized_A4500"); - /** * Creates a new instance of SkuName value. * diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/TlsVersion.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/TlsVersion.java index 95da92f977e42..ee1f60122ece1 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/TlsVersion.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/TlsVersion.java @@ -8,9 +8,7 @@ import java.util.Collection; /** - * 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 final class TlsVersion extends ExpandableStringEnum { /** diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-redisenterprise/proxy-config.json b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-redisenterprise/proxy-config.json index b8d659c4e0945..22499b3119fcc 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-redisenterprise/proxy-config.json +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-redisenterprise/proxy-config.json @@ -1 +1 @@ -[["com.azure.resourcemanager.redisenterprise.implementation.AccessPolicyAssignmentsClientImpl$AccessPolicyAssignmentsService"],["com.azure.resourcemanager.redisenterprise.implementation.DatabasesClientImpl$DatabasesService"],["com.azure.resourcemanager.redisenterprise.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.redisenterprise.implementation.OperationsStatusClientImpl$OperationsStatusService"],["com.azure.resourcemanager.redisenterprise.implementation.PrivateEndpointConnectionsClientImpl$PrivateEndpointConnectionsService"],["com.azure.resourcemanager.redisenterprise.implementation.PrivateLinkResourcesClientImpl$PrivateLinkResourcesService"],["com.azure.resourcemanager.redisenterprise.implementation.RedisEnterprisesClientImpl$RedisEnterprisesService"]] \ No newline at end of file +[["com.azure.resourcemanager.redisenterprise.implementation.DatabasesClientImpl$DatabasesService"],["com.azure.resourcemanager.redisenterprise.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.redisenterprise.implementation.OperationsStatusClientImpl$OperationsStatusService"],["com.azure.resourcemanager.redisenterprise.implementation.PrivateEndpointConnectionsClientImpl$PrivateEndpointConnectionsService"],["com.azure.resourcemanager.redisenterprise.implementation.PrivateLinkResourcesClientImpl$PrivateLinkResourcesService"],["com.azure.resourcemanager.redisenterprise.implementation.RedisEnterprisesClientImpl$RedisEnterprisesService"]] \ No newline at end of file diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentCreateUpdateSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentCreateUpdateSamples.java deleted file mode 100644 index dff12f6746b2f..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentCreateUpdateSamples.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.resourcemanager.redisenterprise.models.AccessPolicyAssignmentPropertiesUser; - -/** - * Samples for AccessPolicyAssignment CreateUpdate. - */ -public final class AccessPolicyAssignmentCreateUpdateSamples { - /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ - * RedisEnterpriseAccessPolicyAssignmentCreateUpdate.json - */ - /** - * Sample code: RedisEnterpriseAccessPolicyAssignmentCreateUpdate. - * - * @param manager Entry point to RedisEnterpriseManager. - */ - public static void redisEnterpriseAccessPolicyAssignmentCreateUpdate( - com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) { - manager.accessPolicyAssignments() - .define("defaultTestEntraApp1") - .withExistingDatabase("rg1", "cache1", "default") - .withAccessPolicyName("default") - .withUser(new AccessPolicyAssignmentPropertiesUser().withObjectId("6497c918-11ad-41e7-1b0f-7c518a87d0b0")) - .create(); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentDeleteSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentDeleteSamples.java deleted file mode 100644 index 45ad72c3e8dc4..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentDeleteSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -/** - * Samples for AccessPolicyAssignment Delete. - */ -public final class AccessPolicyAssignmentDeleteSamples { - /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ - * RedisEnterpriseAccessPolicyAssignmentDelete.json - */ - /** - * Sample code: RedisEnterpriseAccessPolicyAssignmentDelete. - * - * @param manager Entry point to RedisEnterpriseManager. - */ - public static void redisEnterpriseAccessPolicyAssignmentDelete( - com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) { - manager.accessPolicyAssignments() - .delete("rg1", "cache1", "default", "defaultTestEntraApp1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentGetSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentGetSamples.java deleted file mode 100644 index 37c74ac54f351..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentGetSamples.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -/** - * Samples for AccessPolicyAssignment Get. - */ -public final class AccessPolicyAssignmentGetSamples { - /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ - * RedisEnterpriseAccessPolicyAssignmentGet.json - */ - /** - * Sample code: RedisEnterpriseAccessPolicyAssignmentGet. - * - * @param manager Entry point to RedisEnterpriseManager. - */ - public static void redisEnterpriseAccessPolicyAssignmentGet( - com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) { - manager.accessPolicyAssignments() - .getWithResponse("rg1", "cache1", "default", "accessPolicyAssignmentName1", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentListSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentListSamples.java deleted file mode 100644 index ca715464d8a5b..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentListSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -/** - * Samples for AccessPolicyAssignment List. - */ -public final class AccessPolicyAssignmentListSamples { - /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ - * RedisEnterpriseAccessPolicyAssignmentsList.json - */ - /** - * Sample code: RedisEnterpriseAccessPolicyAssignmentList. - * - * @param manager Entry point to RedisEnterpriseManager. - */ - public static void redisEnterpriseAccessPolicyAssignmentList( - com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) { - manager.accessPolicyAssignments().list("rg1", "cache1", "default", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesCreateSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesCreateSamples.java index f907d88474ab6..c88c5372cd5b7 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesCreateSamples.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesCreateSamples.java @@ -4,11 +4,9 @@ package com.azure.resourcemanager.redisenterprise.generated; -import com.azure.resourcemanager.redisenterprise.models.AccessKeysAuthentication; import com.azure.resourcemanager.redisenterprise.models.AofFrequency; import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy; import com.azure.resourcemanager.redisenterprise.models.DatabasePropertiesGeoReplication; -import com.azure.resourcemanager.redisenterprise.models.DeferUpgradeSetting; import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy; import com.azure.resourcemanager.redisenterprise.models.LinkedDatabase; import com.azure.resourcemanager.redisenterprise.models.Module; @@ -21,8 +19,7 @@ */ public final class DatabasesCreateSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDatabasesCreate.json */ /** @@ -43,14 +40,11 @@ public final class DatabasesCreateSamples { .withModules(Arrays.asList(new Module().withName("RedisBloom").withArgs("ERROR_RATE 0.00 INITIAL_SIZE 400"), new Module().withName("RedisTimeSeries").withArgs("RETENTION_POLICY 20"), new Module().withName("RediSearch"))) - .withDeferUpgrade(DeferUpgradeSetting.NOT_DEFERRED) - .withAccessKeysAuthentication(AccessKeysAuthentication.ENABLED) .create(); } /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDatabasesCreateWithGeoReplication.json */ /** @@ -69,10 +63,9 @@ public static void redisEnterpriseDatabasesCreateWithActiveGeoReplication( .withEvictionPolicy(EvictionPolicy.NO_EVICTION) .withGeoReplication(new DatabasePropertiesGeoReplication().withGroupNickname("groupName") .withLinkedDatabases(Arrays.asList(new LinkedDatabase().withId( - "/subscriptions/e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default"), + "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default"), new LinkedDatabase().withId( - "/subscriptions/e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8e/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default")))) - .withAccessKeysAuthentication(AccessKeysAuthentication.ENABLED) + "/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default")))) .create(); } } diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesDeleteSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesDeleteSamples.java index 751d4451a9e62..9e7419a37dc11 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesDeleteSamples.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class DatabasesDeleteSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDatabasesDelete.json */ /** diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesExportSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesExportSamples.java index 0fc0965679cd5..391b57776e4ac 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesExportSamples.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesExportSamples.java @@ -11,8 +11,7 @@ */ public final class DatabasesExportSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDatabasesExport.json */ /** diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesFlushSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesFlushSamples.java index 0a6cdf0573ec0..d6531fd3c227e 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesFlushSamples.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesFlushSamples.java @@ -12,8 +12,7 @@ */ public final class DatabasesFlushSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDatabasesFlush.json */ /** @@ -25,7 +24,7 @@ public final class DatabasesFlushSamples { howToFlushAllTheKeysInTheDatabase(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) { manager.databases() .flush("rg1", "cache1", "default", new FlushParameters().withIds(Arrays.asList( - "/subscriptions/e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default")), + "/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default")), com.azure.core.util.Context.NONE); } } diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesForceLinkToReplicationGroupSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesForceLinkToReplicationGroupSamples.java index 0daedac6faa95..b50e204abc621 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesForceLinkToReplicationGroupSamples.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesForceLinkToReplicationGroupSamples.java @@ -5,16 +5,13 @@ package com.azure.resourcemanager.redisenterprise.generated; import com.azure.resourcemanager.redisenterprise.models.ForceLinkParameters; -import com.azure.resourcemanager.redisenterprise.models.LinkedDatabase; -import java.util.Arrays; /** * Samples for Databases ForceLinkToReplicationGroup. */ public final class DatabasesForceLinkToReplicationGroupSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDatabasesForceLink.json */ /** @@ -25,12 +22,7 @@ public final class DatabasesForceLinkToReplicationGroupSamples { public static void howToRelinkADatabaseAfterARegionalOutage( com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) { manager.databases() - .forceLinkToReplicationGroup("rg1", "cache1", "default", new ForceLinkParameters() - .withGroupNickname("groupName") - .withLinkedDatabases(Arrays.asList(new LinkedDatabase().withId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default"), - new LinkedDatabase().withId( - "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default"))), + .forceLinkToReplicationGroup("rg1", "cache1", "default", new ForceLinkParameters(), com.azure.core.util.Context.NONE); } } diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesForceUnlinkSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesForceUnlinkSamples.java index df80e25d2cd0b..675f02cf104e6 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesForceUnlinkSamples.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesForceUnlinkSamples.java @@ -12,8 +12,7 @@ */ public final class DatabasesForceUnlinkSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDatabasesForceUnlink.json */ /** @@ -25,7 +24,7 @@ public static void howToUnlinkADatabaseDuringARegionalOutage( com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) { manager.databases() .forceUnlink("rg1", "cache1", "default", new ForceUnlinkParameters().withIds(Arrays.asList( - "/subscriptions/e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default")), + "/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default")), com.azure.core.util.Context.NONE); } } diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesGetSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesGetSamples.java index d6f40f954ed36..44d47cdf8b4e2 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesGetSamples.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesGetSamples.java @@ -9,8 +9,7 @@ */ public final class DatabasesGetSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDatabasesGet.json */ /** diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesImportMethodSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesImportMethodSamples.java index 21b85e39e87c6..0ae1b0fe23bae 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesImportMethodSamples.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesImportMethodSamples.java @@ -12,8 +12,7 @@ */ public final class DatabasesImportMethodSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDatabasesImport.json */ /** diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesListByClusterSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesListByClusterSamples.java index c783abc1c0f19..36b67a5a75545 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesListByClusterSamples.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesListByClusterSamples.java @@ -9,8 +9,7 @@ */ public final class DatabasesListByClusterSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDatabasesListByCluster.json */ /** diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesListKeysSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesListKeysSamples.java index 3863366009ffe..e1f09e01bb795 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesListKeysSamples.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesListKeysSamples.java @@ -9,8 +9,7 @@ */ public final class DatabasesListKeysSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDatabasesListKeys.json */ /** diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesRegenerateKeySamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesRegenerateKeySamples.java index 89a19d7222fe6..986a9679634bb 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesRegenerateKeySamples.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesRegenerateKeySamples.java @@ -12,8 +12,7 @@ */ public final class DatabasesRegenerateKeySamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDatabasesRegenerateKey.json */ /** diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesUpdateSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesUpdateSamples.java index 41d74d943ed5a..2645676d254e9 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesUpdateSamples.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.redisenterprise.generated; -import com.azure.resourcemanager.redisenterprise.models.AccessKeysAuthentication; import com.azure.resourcemanager.redisenterprise.models.Database; import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy; import com.azure.resourcemanager.redisenterprise.models.Persistence; @@ -16,8 +15,7 @@ */ public final class DatabasesUpdateSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDatabasesUpdate.json */ /** @@ -34,7 +32,6 @@ public final class DatabasesUpdateSamples { .withClientProtocol(Protocol.ENCRYPTED) .withEvictionPolicy(EvictionPolicy.ALL_KEYS_LRU) .withPersistence(new Persistence().withRdbEnabled(true).withRdbFrequency(RdbFrequency.ONE_TWOH)) - .withAccessKeysAuthentication(AccessKeysAuthentication.ENABLED) .apply(); } } diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesUpgradeDBRedisVersionSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesUpgradeDBRedisVersionSamples.java deleted file mode 100644 index 9c998f4b32fd9..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesUpgradeDBRedisVersionSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -/** - * Samples for Databases UpgradeDBRedisVersion. - */ -public final class DatabasesUpgradeDBRedisVersionSamples { - /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ - * RedisEnterpriseDatabasesUpgradeDBRedisVersion.json - */ - /** - * Sample code: How to upgrade your database Redis version. - * - * @param manager Entry point to RedisEnterpriseManager. - */ - public static void - howToUpgradeYourDatabaseRedisVersion(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) { - manager.databases().upgradeDBRedisVersion("rg1", "cache1", "default", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/OperationsListSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/OperationsListSamples.java index 0445a6c5d0554..da090cc6ebcef 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/OperationsListSamples.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/OperationsListSamples.java @@ -10,8 +10,7 @@ public final class OperationsListSamples { /* * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/OperationsList - * .json + * specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/OperationsList.json */ /** * Sample code: OperationsList. diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/OperationsStatusGetSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/OperationsStatusGetSamples.java index dbf91af2ee2d3..b5573bb1eb71c 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/OperationsStatusGetSamples.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/OperationsStatusGetSamples.java @@ -10,8 +10,8 @@ public final class OperationsStatusGetSamples { /* * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ - * OperationsStatusGet.json + * specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/OperationsStatusGet. + * json */ /** * Sample code: OperationsStatusGet. diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsDeleteSamples.java index a0a415710d7af..7eae8729d6859 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseDeletePrivateEndpointConnection.json */ /** diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsGetSamples.java index bb4c69962051e..c3e6de3176acf 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsGetSamples.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsGetSamples.java @@ -9,8 +9,7 @@ */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseGetPrivateEndpointConnection.json */ /** diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsListSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsListSamples.java index e3dfbec47cb35..770287d342d8b 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsListSamples.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsListSamples.java @@ -9,8 +9,7 @@ */ public final class PrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseListPrivateEndpointConnections.json */ /** diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsPutSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsPutSamples.java index 26221cca0eec3..2ef2232537b76 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsPutSamples.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsPutSamples.java @@ -12,8 +12,7 @@ */ public final class PrivateEndpointConnectionsPutSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterprisePutPrivateEndpointConnection.json */ /** diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcesListByClusterSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcesListByClusterSamples.java index f148702fe729e..1350fd287d4a7 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcesListByClusterSamples.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcesListByClusterSamples.java @@ -9,8 +9,7 @@ */ public final class PrivateLinkResourcesListByClusterSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseListPrivateLinkResources.json */ /** diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseCreateSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseCreateSamples.java index d6031092a022b..94fb313c2aa7d 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseCreateSamples.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseCreateSamples.java @@ -24,8 +24,8 @@ public final class RedisEnterpriseCreateSamples { /* * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ - * RedisEnterpriseCreate.json + * specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseCreate. + * json */ /** * Sample code: RedisEnterpriseCreate. diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseDeleteSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseDeleteSamples.java index fcf932ac98d66..089a621d83e10 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseDeleteSamples.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseDeleteSamples.java @@ -10,8 +10,8 @@ public final class RedisEnterpriseDeleteSamples { /* * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ - * RedisEnterpriseDelete.json + * specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseDelete. + * json */ /** * Sample code: RedisEnterpriseDelete. diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseGetByResourceGroupSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseGetByResourceGroupSamples.java index f52f577a45872..b53b823abaa96 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseGetByResourceGroupSamples.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseGetByResourceGroupSamples.java @@ -10,8 +10,7 @@ public final class RedisEnterpriseGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ - * RedisEnterpriseGet.json + * specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseGet.json */ /** * Sample code: RedisEnterpriseGet. diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseListByResourceGroupSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseListByResourceGroupSamples.java index 6ccadcc5604e0..ed2272a2f2710 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseListByResourceGroupSamples.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class RedisEnterpriseListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ + * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/ * RedisEnterpriseListByResourceGroup.json */ /** diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseListSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseListSamples.java index bad1781874ce9..9fa8b76bce82e 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseListSamples.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseListSamples.java @@ -10,8 +10,8 @@ public final class RedisEnterpriseListSamples { /* * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ - * RedisEnterpriseList.json + * specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseList. + * json */ /** * Sample code: RedisEnterpriseList. diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseUpdateSamples.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseUpdateSamples.java index 9793adc74208d..833c20d6da191 100644 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseUpdateSamples.java +++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterpriseUpdateSamples.java @@ -17,8 +17,8 @@ public final class RedisEnterpriseUpdateSamples { /* * x-ms-original-file: - * specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/ - * RedisEnterpriseUpdate.json + * specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseUpdate. + * json */ /** * Sample code: RedisEnterpriseUpdate. diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentInnerTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentInnerTests.java deleted file mode 100644 index 724cf999c110a..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentInnerTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.fluent.models.AccessPolicyAssignmentInner; -import com.azure.resourcemanager.redisenterprise.models.AccessPolicyAssignmentPropertiesUser; -import org.junit.jupiter.api.Assertions; - -public final class AccessPolicyAssignmentInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AccessPolicyAssignmentInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Updating\",\"accessPolicyName\":\"pxokajionp\",\"user\":{\"objectId\":\"ex\"}},\"id\":\"stxgc\",\"name\":\"odgmaajrmvdjwz\",\"type\":\"lovmclwhijcoe\"}") - .toObject(AccessPolicyAssignmentInner.class); - Assertions.assertEquals("pxokajionp", model.accessPolicyName()); - Assertions.assertEquals("ex", model.user().objectId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AccessPolicyAssignmentInner model = new AccessPolicyAssignmentInner().withAccessPolicyName("pxokajionp") - .withUser(new AccessPolicyAssignmentPropertiesUser().withObjectId("ex")); - model = BinaryData.fromObject(model).toObject(AccessPolicyAssignmentInner.class); - Assertions.assertEquals("pxokajionp", model.accessPolicyName()); - Assertions.assertEquals("ex", model.user().objectId()); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentListTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentListTests.java deleted file mode 100644 index a88c31ca2a6a9..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentListTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.fluent.models.AccessPolicyAssignmentInner; -import com.azure.resourcemanager.redisenterprise.models.AccessPolicyAssignmentList; -import com.azure.resourcemanager.redisenterprise.models.AccessPolicyAssignmentPropertiesUser; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AccessPolicyAssignmentListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AccessPolicyAssignmentList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"accessPolicyName\":\"ddtocjjxhvp\",\"user\":{\"objectId\":\"uexhdzx\"}},\"id\":\"bqe\",\"name\":\"jnxqbzvddntwn\",\"type\":\"eic\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"accessPolicyName\":\"pzaoqvuhr\",\"user\":{\"objectId\":\"f\"}},\"id\":\"cyddglmjthjqk\",\"name\":\"pyeicxm\",\"type\":\"ciwqvhk\"},{\"properties\":{\"provisioningState\":\"Creating\",\"accessPolicyName\":\"igdtopbob\",\"user\":{\"objectId\":\"ghmewuam\"}},\"id\":\"uhrzayvvt\",\"name\":\"gvdfgiotkftutq\",\"type\":\"ln\"},{\"properties\":{\"provisioningState\":\"Deleting\",\"accessPolicyName\":\"fgugnxkrxdqmid\",\"user\":{\"objectId\":\"hzrvqd\"}},\"id\":\"abhjybi\",\"name\":\"ehoqfbowskan\",\"type\":\"ktzlcuiywg\"}],\"nextLink\":\"wgndrvynhzgpp\"}") - .toObject(AccessPolicyAssignmentList.class); - Assertions.assertEquals("ddtocjjxhvp", model.value().get(0).accessPolicyName()); - Assertions.assertEquals("uexhdzx", model.value().get(0).user().objectId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AccessPolicyAssignmentList model = new AccessPolicyAssignmentList().withValue(Arrays.asList( - new AccessPolicyAssignmentInner().withAccessPolicyName("ddtocjjxhvp") - .withUser(new AccessPolicyAssignmentPropertiesUser().withObjectId("uexhdzx")), - new AccessPolicyAssignmentInner().withAccessPolicyName("pzaoqvuhr") - .withUser(new AccessPolicyAssignmentPropertiesUser().withObjectId("f")), - new AccessPolicyAssignmentInner().withAccessPolicyName("igdtopbob") - .withUser(new AccessPolicyAssignmentPropertiesUser().withObjectId("ghmewuam")), - new AccessPolicyAssignmentInner().withAccessPolicyName("fgugnxkrxdqmid") - .withUser(new AccessPolicyAssignmentPropertiesUser().withObjectId("hzrvqd")))); - model = BinaryData.fromObject(model).toObject(AccessPolicyAssignmentList.class); - Assertions.assertEquals("ddtocjjxhvp", model.value().get(0).accessPolicyName()); - Assertions.assertEquals("uexhdzx", model.value().get(0).user().objectId()); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentPropertiesTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentPropertiesTests.java deleted file mode 100644 index 1dea07b71cc89..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentPropertiesTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.fluent.models.AccessPolicyAssignmentProperties; -import com.azure.resourcemanager.redisenterprise.models.AccessPolicyAssignmentPropertiesUser; -import org.junit.jupiter.api.Assertions; - -public final class AccessPolicyAssignmentPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AccessPolicyAssignmentProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Updating\",\"accessPolicyName\":\"bzaqsqsycbkbfk\",\"user\":{\"objectId\":\"kdkexxp\"}}") - .toObject(AccessPolicyAssignmentProperties.class); - Assertions.assertEquals("bzaqsqsycbkbfk", model.accessPolicyName()); - Assertions.assertEquals("kdkexxp", model.user().objectId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AccessPolicyAssignmentProperties model - = new AccessPolicyAssignmentProperties().withAccessPolicyName("bzaqsqsycbkbfk") - .withUser(new AccessPolicyAssignmentPropertiesUser().withObjectId("kdkexxp")); - model = BinaryData.fromObject(model).toObject(AccessPolicyAssignmentProperties.class); - Assertions.assertEquals("bzaqsqsycbkbfk", model.accessPolicyName()); - Assertions.assertEquals("kdkexxp", model.user().objectId()); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentPropertiesUserTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentPropertiesUserTests.java deleted file mode 100644 index b3aad160de915..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentPropertiesUserTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.models.AccessPolicyAssignmentPropertiesUser; -import org.junit.jupiter.api.Assertions; - -public final class AccessPolicyAssignmentPropertiesUserTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AccessPolicyAssignmentPropertiesUser model - = BinaryData.fromString("{\"objectId\":\"fmxa\"}").toObject(AccessPolicyAssignmentPropertiesUser.class); - Assertions.assertEquals("fmxa", model.objectId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AccessPolicyAssignmentPropertiesUser model = new AccessPolicyAssignmentPropertiesUser().withObjectId("fmxa"); - model = BinaryData.fromObject(model).toObject(AccessPolicyAssignmentPropertiesUser.class); - Assertions.assertEquals("fmxa", model.objectId()); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentsCreateUpdateMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentsCreateUpdateMockTests.java deleted file mode 100644 index e35a10b524f4e..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentsCreateUpdateMockTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager; -import com.azure.resourcemanager.redisenterprise.models.AccessPolicyAssignment; -import com.azure.resourcemanager.redisenterprise.models.AccessPolicyAssignmentPropertiesUser; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class AccessPolicyAssignmentsCreateUpdateMockTests { - @Test - public void testCreateUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"accessPolicyName\":\"mvb\",\"user\":{\"objectId\":\"yjsflhhcaalnji\"}},\"id\":\"isxyawjoyaqcslyj\",\"name\":\"kiidzyex\",\"type\":\"nelixhnrztfo\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - RedisEnterpriseManager manager = RedisEnterpriseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - AccessPolicyAssignment response = manager.accessPolicyAssignments() - .define("ultskzbbtdz") - .withExistingDatabase("vawjvzunlu", "hnnpr", "xipeilpjzuaejx") - .withAccessPolicyName("ekg") - .withUser(new AccessPolicyAssignmentPropertiesUser().withObjectId("ozuhkfp")) - .create(); - - Assertions.assertEquals("mvb", response.accessPolicyName()); - Assertions.assertEquals("yjsflhhcaalnji", response.user().objectId()); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentsGetWithResponseMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentsGetWithResponseMockTests.java deleted file mode 100644 index 13a42574333d2..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentsGetWithResponseMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager; -import com.azure.resourcemanager.redisenterprise.models.AccessPolicyAssignment; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class AccessPolicyAssignmentsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"Failed\",\"accessPolicyName\":\"vlvqhjkbegi\",\"user\":{\"objectId\":\"nmxiebwwaloayqc\"}},\"id\":\"wrtz\",\"name\":\"uzgwyzmhtx\",\"type\":\"ngmtsavjcb\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - RedisEnterpriseManager manager = RedisEnterpriseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - AccessPolicyAssignment response = manager.accessPolicyAssignments() - .getWithResponse("upjm", "hfxobbcswsrtj", "iplrbpbewtghfgb", "c", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("vlvqhjkbegi", response.accessPolicyName()); - Assertions.assertEquals("nmxiebwwaloayqc", response.user().objectId()); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentsListMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentsListMockTests.java deleted file mode 100644 index 2521a91a74baa..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/AccessPolicyAssignmentsListMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager; -import com.azure.resourcemanager.redisenterprise.models.AccessPolicyAssignment; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class AccessPolicyAssignmentsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Creating\",\"accessPolicyName\":\"yqbexrmcqibycno\",\"user\":{\"objectId\":\"knme\"}},\"id\":\"qsgzvahapj\",\"name\":\"zhpvgqzcjrvxd\",\"type\":\"zlmwlxkvugfhz\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - RedisEnterpriseManager manager = RedisEnterpriseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.accessPolicyAssignments() - .list("wxqpsrknftguvri", "hprwmdyv", "qtayri", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("yqbexrmcqibycno", response.iterator().next().accessPolicyName()); - Assertions.assertEquals("knme", response.iterator().next().user().objectId()); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentityTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentityTests.java deleted file mode 100644 index 2de5521405c41..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentityTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity; -import com.azure.resourcemanager.redisenterprise.models.CmkIdentityType; -import org.junit.jupiter.api.Assertions; - -public final class ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity model = BinaryData - .fromString("{\"userAssignedIdentityResourceId\":\"mdvpjhulsu\",\"identityType\":\"userAssignedIdentity\"}") - .toObject(ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity.class); - Assertions.assertEquals("mdvpjhulsu", model.userAssignedIdentityResourceId()); - Assertions.assertEquals(CmkIdentityType.USER_ASSIGNED_IDENTITY, model.identityType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity model - = new ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity() - .withUserAssignedIdentityResourceId("mdvpjhulsu") - .withIdentityType(CmkIdentityType.USER_ASSIGNED_IDENTITY); - model = BinaryData.fromObject(model) - .toObject(ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity.class); - Assertions.assertEquals("mdvpjhulsu", model.userAssignedIdentityResourceId()); - Assertions.assertEquals(CmkIdentityType.USER_ASSIGNED_IDENTITY, model.identityType()); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasePropertiesGeoReplicationTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasePropertiesGeoReplicationTests.java deleted file mode 100644 index 2594ded1c81a8..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasePropertiesGeoReplicationTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.models.DatabasePropertiesGeoReplication; -import com.azure.resourcemanager.redisenterprise.models.LinkedDatabase; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DatabasePropertiesGeoReplicationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabasePropertiesGeoReplication model = BinaryData - .fromString( - "{\"groupNickname\":\"c\",\"linkedDatabases\":[{\"id\":\"cufufsrpymz\",\"state\":\"Unlinking\"}]}") - .toObject(DatabasePropertiesGeoReplication.class); - Assertions.assertEquals("c", model.groupNickname()); - Assertions.assertEquals("cufufsrpymz", model.linkedDatabases().get(0).id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabasePropertiesGeoReplication model = new DatabasePropertiesGeoReplication().withGroupNickname("c") - .withLinkedDatabases(Arrays.asList(new LinkedDatabase().withId("cufufsrpymz"))); - model = BinaryData.fromObject(model).toObject(DatabasePropertiesGeoReplication.class); - Assertions.assertEquals("c", model.groupNickname()); - Assertions.assertEquals("cufufsrpymz", model.linkedDatabases().get(0).id()); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesDeleteMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesDeleteMockTests.java deleted file mode 100644 index 857e5c9a80a39..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesDeleteMockTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DatabasesDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - RedisEnterpriseManager manager = RedisEnterpriseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.databases().delete("plpho", "uscrpabgyepsb", "tazqugxywpmueefj", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesExportMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesExportMockTests.java deleted file mode 100644 index 48e78e536e750..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesExportMockTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager; -import com.azure.resourcemanager.redisenterprise.models.ExportClusterParameters; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DatabasesExportMockTests { - @Test - public void testExport() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - RedisEnterpriseManager manager = RedisEnterpriseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.databases() - .export("ehhseyvjusrts", "hspkdeemao", "mx", new ExportClusterParameters().withSasUri("gkvtmelmqkrhah"), - com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesFlushMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesFlushMockTests.java deleted file mode 100644 index c4211b79ea58a..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesFlushMockTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager; -import com.azure.resourcemanager.redisenterprise.models.FlushParameters; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DatabasesFlushMockTests { - @Test - public void testFlush() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - RedisEnterpriseManager manager = RedisEnterpriseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.databases() - .flush("isgwbnbbeldawkz", "ali", "urqhaka", - new FlushParameters().withIds(Arrays.asList("shsfwxosowzxcu", "i", "jooxdjebw")), - com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesForceUnlinkMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesForceUnlinkMockTests.java deleted file mode 100644 index be080f673205e..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesForceUnlinkMockTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager; -import com.azure.resourcemanager.redisenterprise.models.ForceUnlinkParameters; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DatabasesForceUnlinkMockTests { - @Test - public void testForceUnlink() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - RedisEnterpriseManager manager = RedisEnterpriseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.databases() - .forceUnlink("ljuahaquhcdh", "duala", "xqpvfadmw", - new ForceUnlinkParameters().withIds(Arrays.asList("crgvxpvgom", "lf")), - com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesImportMethodMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesImportMethodMockTests.java deleted file mode 100644 index 1d3d4926fb224..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesImportMethodMockTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager; -import com.azure.resourcemanager.redisenterprise.models.ImportClusterParameters; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DatabasesImportMethodMockTests { - @Test - public void testImportMethod() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - RedisEnterpriseManager manager = RedisEnterpriseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.databases() - .importMethod("dzhlrq", "bh", "kfrlhrxsbky", - new ImportClusterParameters().withSasUris(Arrays.asList("ycanuzbpzkafku", "b", "rnwb")), - com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ExportClusterParametersTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ExportClusterParametersTests.java deleted file mode 100644 index 57488abe01f10..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ExportClusterParametersTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.models.ExportClusterParameters; -import org.junit.jupiter.api.Assertions; - -public final class ExportClusterParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExportClusterParameters model - = BinaryData.fromString("{\"sasUri\":\"tjaodxobnb\"}").toObject(ExportClusterParameters.class); - Assertions.assertEquals("tjaodxobnb", model.sasUri()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExportClusterParameters model = new ExportClusterParameters().withSasUri("tjaodxobnb"); - model = BinaryData.fromObject(model).toObject(ExportClusterParameters.class); - Assertions.assertEquals("tjaodxobnb", model.sasUri()); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/FlushParametersTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/FlushParametersTests.java deleted file mode 100644 index 56f3fe2e6467a..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/FlushParametersTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.models.FlushParameters; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class FlushParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FlushParameters model = BinaryData.fromString("{\"ids\":[\"cohslkev\",\"eggzfb\",\"hfmvfaxkffe\"]}") - .toObject(FlushParameters.class); - Assertions.assertEquals("cohslkev", model.ids().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FlushParameters model = new FlushParameters().withIds(Arrays.asList("cohslkev", "eggzfb", "hfmvfaxkffe")); - model = BinaryData.fromObject(model).toObject(FlushParameters.class); - Assertions.assertEquals("cohslkev", model.ids().get(0)); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ForceLinkParametersTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ForceLinkParametersTests.java deleted file mode 100644 index 9f317fb9c9ced..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ForceLinkParametersTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.models.ForceLinkParameters; -import com.azure.resourcemanager.redisenterprise.models.LinkedDatabase; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ForceLinkParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ForceLinkParameters model = BinaryData.fromString( - "{\"groupNickname\":\"oskg\",\"linkedDatabases\":[{\"id\":\"uuimjmvxieduug\",\"state\":\"UnlinkFailed\"},{\"id\":\"rrfbyaosvexcson\",\"state\":\"Linked\"}]}") - .toObject(ForceLinkParameters.class); - Assertions.assertEquals("oskg", model.groupNickname()); - Assertions.assertEquals("uuimjmvxieduug", model.linkedDatabases().get(0).id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ForceLinkParameters model = new ForceLinkParameters().withGroupNickname("oskg") - .withLinkedDatabases(Arrays.asList(new LinkedDatabase().withId("uuimjmvxieduug"), - new LinkedDatabase().withId("rrfbyaosvexcson"))); - model = BinaryData.fromObject(model).toObject(ForceLinkParameters.class); - Assertions.assertEquals("oskg", model.groupNickname()); - Assertions.assertEquals("uuimjmvxieduug", model.linkedDatabases().get(0).id()); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ForceUnlinkParametersTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ForceUnlinkParametersTests.java deleted file mode 100644 index b0aab25489879..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ForceUnlinkParametersTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.models.ForceUnlinkParameters; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ForceUnlinkParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ForceUnlinkParameters model - = BinaryData.fromString("{\"ids\":[\"dobpxjmflbvvn\",\"hrk\",\"ciwwzjuqkhr\",\"ajiwkuo\"]}") - .toObject(ForceUnlinkParameters.class); - Assertions.assertEquals("dobpxjmflbvvn", model.ids().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ForceUnlinkParameters model - = new ForceUnlinkParameters().withIds(Arrays.asList("dobpxjmflbvvn", "hrk", "ciwwzjuqkhr", "ajiwkuo")); - model = BinaryData.fromObject(model).toObject(ForceUnlinkParameters.class); - Assertions.assertEquals("dobpxjmflbvvn", model.ids().get(0)); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ImportClusterParametersTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ImportClusterParametersTests.java deleted file mode 100644 index a68f38d93b8a4..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ImportClusterParametersTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.models.ImportClusterParameters; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ImportClusterParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ImportClusterParameters model - = BinaryData.fromString("{\"sasUris\":[\"aierhhb\",\"sglumma\"]}").toObject(ImportClusterParameters.class); - Assertions.assertEquals("aierhhb", model.sasUris().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ImportClusterParameters model = new ImportClusterParameters().withSasUris(Arrays.asList("aierhhb", "sglumma")); - model = BinaryData.fromObject(model).toObject(ImportClusterParameters.class); - Assertions.assertEquals("aierhhb", model.sasUris().get(0)); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/LinkedDatabaseTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/LinkedDatabaseTests.java deleted file mode 100644 index e629ebd2b5b8f..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/LinkedDatabaseTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.models.LinkedDatabase; -import org.junit.jupiter.api.Assertions; - -public final class LinkedDatabaseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LinkedDatabase model = BinaryData.fromString("{\"id\":\"ezcxtbzsgfyccsne\",\"state\":\"Unlinking\"}") - .toObject(LinkedDatabase.class); - Assertions.assertEquals("ezcxtbzsgfyccsne", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedDatabase model = new LinkedDatabase().withId("ezcxtbzsgfyccsne"); - model = BinaryData.fromObject(model).toObject(LinkedDatabase.class); - Assertions.assertEquals("ezcxtbzsgfyccsne", model.id()); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ManagedServiceIdentityTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ManagedServiceIdentityTests.java deleted file mode 100644 index 7ebee3c2b52b7..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ManagedServiceIdentityTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentity; -import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentityType; -import com.azure.resourcemanager.redisenterprise.models.UserAssignedIdentity; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ManagedServiceIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedServiceIdentity model = BinaryData.fromString( - "{\"principalId\":\"fb83a83e-8793-49fc-abf9-c8fe61ad96d8\",\"tenantId\":\"9d864f5f-ffcb-43ba-addc-52d3d68168dd\",\"type\":\"SystemAssigned, UserAssigned\",\"userAssignedIdentities\":{\"chgejspodm\":{\"principalId\":\"810d54c7-ff54-4a55-a848-b5006a04747a\",\"clientId\":\"456aa80d-4c24-4e93-9fb5-37e96c88e0e1\"}}}") - .toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedServiceIdentity model - = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("chgejspodm", new UserAssignedIdentity())); - model = BinaryData.fromObject(model).toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ModuleTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ModuleTests.java deleted file mode 100644 index 3df2e048cca2e..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ModuleTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.models.Module; -import org.junit.jupiter.api.Assertions; - -public final class ModuleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Module model - = BinaryData.fromString("{\"name\":\"idf\",\"args\":\"wdzuhtymwisd\",\"version\":\"thwxmnteiwaopvkm\"}") - .toObject(Module.class); - Assertions.assertEquals("idf", model.name()); - Assertions.assertEquals("wdzuhtymwisd", model.args()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Module model = new Module().withName("idf").withArgs("wdzuhtymwisd"); - model = BinaryData.fromObject(model).toObject(Module.class); - Assertions.assertEquals("idf", model.name()); - Assertions.assertEquals("wdzuhtymwisd", model.args()); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationDisplayTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationDisplayTests.java deleted file mode 100644 index 7b0e49090cbb0..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationDisplayTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.models.OperationDisplay; - -public final class OperationDisplayTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationDisplay model = BinaryData.fromString( - "{\"provider\":\"yrtih\",\"resource\":\"tijbpzvgnwzsymgl\",\"operation\":\"fcyzkohdbihanufh\",\"description\":\"bj\"}") - .toObject(OperationDisplay.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationDisplay model = new OperationDisplay(); - model = BinaryData.fromObject(model).toObject(OperationDisplay.class); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationInnerTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationInnerTests.java deleted file mode 100644 index f3c6bea0d56ec..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationInnerTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.fluent.models.OperationInner; -import com.azure.resourcemanager.redisenterprise.models.OperationDisplay; - -public final class OperationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationInner model = BinaryData.fromString( - "{\"name\":\"usarhmofc\",\"isDataAction\":false,\"display\":{\"provider\":\"urkdtmlx\",\"resource\":\"kuksjtxukcdm\",\"operation\":\"rcryuanzwuxzdxta\",\"description\":\"lhmwhfpmrqobm\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}") - .toObject(OperationInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationInner model = new OperationInner().withDisplay(new OperationDisplay()); - model = BinaryData.fromObject(model).toObject(OperationInner.class); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationListResultTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationListResultTests.java deleted file mode 100644 index 3fd7015bf9ab6..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationListResultTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.models.OperationListResult; - -public final class OperationListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationListResult model = BinaryData.fromString( - "{\"value\":[{\"name\":\"quvgjxpybczme\",\"isDataAction\":true,\"display\":{\"provider\":\"pbsphrupidgs\",\"resource\":\"bejhphoycmsxa\",\"operation\":\"hdxbmtqio\",\"description\":\"zehtbmu\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"},{\"name\":\"izhwlrxy\",\"isDataAction\":false,\"display\":{\"provider\":\"ijgkdm\",\"resource\":\"azlobcufpdznrbt\",\"operation\":\"qjnqglhqgnufoooj\",\"description\":\"ifsqesaagdfmg\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"},{\"name\":\"rifkwm\",\"isDataAction\":true,\"display\":{\"provider\":\"izntocipao\",\"resource\":\"jpsq\",\"operation\":\"mpoyfd\",\"description\":\"ogknygjofjdd\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}],\"nextLink\":\"upewnwreitjzy\"}") - .toObject(OperationListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationListResult model = new OperationListResult(); - model = BinaryData.fromObject(model).toObject(OperationListResult.class); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationsListMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationsListMockTests.java deleted file mode 100644 index aca624d995e17..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationsListMockTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager; -import com.azure.resourcemanager.redisenterprise.models.Operation; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class OperationsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"name\":\"th\",\"isDataAction\":false,\"display\":{\"provider\":\"yvshxmz\",\"resource\":\"bzoggigrx\",\"operation\":\"ur\",\"description\":\"xxjnspydptk\"},\"origin\":\"system\",\"actionType\":\"Internal\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - RedisEnterpriseManager manager = RedisEnterpriseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PersistenceTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PersistenceTests.java deleted file mode 100644 index 7fbf43bcfb06c..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PersistenceTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.models.AofFrequency; -import com.azure.resourcemanager.redisenterprise.models.Persistence; -import com.azure.resourcemanager.redisenterprise.models.RdbFrequency; -import org.junit.jupiter.api.Assertions; - -public final class PersistenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Persistence model = BinaryData - .fromString("{\"aofEnabled\":false,\"rdbEnabled\":false,\"aofFrequency\":\"1s\",\"rdbFrequency\":\"1h\"}") - .toObject(Persistence.class); - Assertions.assertEquals(false, model.aofEnabled()); - Assertions.assertEquals(false, model.rdbEnabled()); - Assertions.assertEquals(AofFrequency.ONES, model.aofFrequency()); - Assertions.assertEquals(RdbFrequency.ONEH, model.rdbFrequency()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Persistence model = new Persistence().withAofEnabled(false) - .withRdbEnabled(false) - .withAofFrequency(AofFrequency.ONES) - .withRdbFrequency(RdbFrequency.ONEH); - model = BinaryData.fromObject(model).toObject(Persistence.class); - Assertions.assertEquals(false, model.aofEnabled()); - Assertions.assertEquals(false, model.rdbEnabled()); - Assertions.assertEquals(AofFrequency.ONES, model.aofFrequency()); - Assertions.assertEquals(RdbFrequency.ONEH, model.rdbFrequency()); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionInnerTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionInnerTests.java deleted file mode 100644 index 76ac510002185..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionInnerTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.fluent.models.PrivateEndpointConnectionInner; -import com.azure.resourcemanager.redisenterprise.models.PrivateEndpoint; -import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointServiceConnectionStatus; -import com.azure.resourcemanager.redisenterprise.models.PrivateLinkServiceConnectionState; -import org.junit.jupiter.api.Assertions; - -public final class PrivateEndpointConnectionInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpointConnectionInner model = BinaryData.fromString( - "{\"properties\":{\"privateEndpoint\":{\"id\":\"zkrwfn\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"jpslwejd\",\"actionsRequired\":\"wryoqpsoacc\"},\"provisioningState\":\"Deleting\"},\"id\":\"akl\",\"name\":\"lahbcryff\",\"type\":\"fdosyg\"}") - .toObject(PrivateEndpointConnectionInner.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, - model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("jpslwejd", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("wryoqpsoacc", model.privateLinkServiceConnectionState().actionsRequired()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpointConnectionInner model - = new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint()) - .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.APPROVED) - .withDescription("jpslwejd") - .withActionsRequired("wryoqpsoacc")); - model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionInner.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, - model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("jpslwejd", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("wryoqpsoacc", model.privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionListResultTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionListResultTests.java deleted file mode 100644 index bcdb77007dbaa..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionListResultTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.fluent.models.PrivateEndpointConnectionInner; -import com.azure.resourcemanager.redisenterprise.models.PrivateEndpoint; -import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointConnectionListResult; -import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointServiceConnectionStatus; -import com.azure.resourcemanager.redisenterprise.models.PrivateLinkServiceConnectionState; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PrivateEndpointConnectionListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpointConnectionListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"privateEndpoint\":{\"id\":\"cocpecfvmmcoofsx\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"gbmqjqabcypmiv\",\"actionsRequired\":\"lzu\"},\"provisioningState\":\"Succeeded\"},\"id\":\"fwnfnb\",\"name\":\"cfionl\",\"type\":\"bxetqgtzxdpn\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"wxrjfeallnwsub\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"ampmngnz\",\"actionsRequired\":\"xaqwoochcbonqv\"},\"provisioningState\":\"Failed\"},\"id\":\"lrxnjeaseiphe\",\"name\":\"f\",\"type\":\"okeyyienj\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"tgrhpdjpjumas\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"pqyegualhbxxh\",\"actionsRequired\":\"jzzvdud\"},\"provisioningState\":\"Deleting\"},\"id\":\"slfhotwm\",\"name\":\"ynpwlbj\",\"type\":\"pgacftadehxnlty\"}]}") - .toObject(PrivateEndpointConnectionListResult.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, - model.value().get(0).privateLinkServiceConnectionState().status()); - Assertions.assertEquals("gbmqjqabcypmiv", - model.value().get(0).privateLinkServiceConnectionState().description()); - Assertions.assertEquals("lzu", model.value().get(0).privateLinkServiceConnectionState().actionsRequired()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpointConnectionListResult model - = new PrivateEndpointConnectionListResult() - .withValue(Arrays.asList( - new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint()) - .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() - .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED) - .withDescription("gbmqjqabcypmiv") - .withActionsRequired("lzu")), - new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint()) - .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() - .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED) - .withDescription("ampmngnz") - .withActionsRequired("xaqwoochcbonqv")), - new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint()) - .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() - .withStatus(PrivateEndpointServiceConnectionStatus.PENDING) - .withDescription("pqyegualhbxxh") - .withActionsRequired("jzzvdud")))); - model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionListResult.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, - model.value().get(0).privateLinkServiceConnectionState().status()); - Assertions.assertEquals("gbmqjqabcypmiv", - model.value().get(0).privateLinkServiceConnectionState().description()); - Assertions.assertEquals("lzu", model.value().get(0).privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionPropertiesTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionPropertiesTests.java deleted file mode 100644 index db1a78d771534..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionPropertiesTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.fluent.models.PrivateEndpointConnectionProperties; -import com.azure.resourcemanager.redisenterprise.models.PrivateEndpoint; -import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointServiceConnectionStatus; -import com.azure.resourcemanager.redisenterprise.models.PrivateLinkServiceConnectionState; -import org.junit.jupiter.api.Assertions; - -public final class PrivateEndpointConnectionPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpointConnectionProperties model = BinaryData.fromString( - "{\"privateEndpoint\":{\"id\":\"aojakhmsbzjhcrz\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"hlxaolthqtr\",\"actionsRequired\":\"jbp\"},\"provisioningState\":\"Failed\"}") - .toObject(PrivateEndpointConnectionProperties.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, - model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("hlxaolthqtr", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("jbp", model.privateLinkServiceConnectionState().actionsRequired()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpointConnectionProperties model - = new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint()) - .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.REJECTED) - .withDescription("hlxaolthqtr") - .withActionsRequired("jbp")); - model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionProperties.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, - model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("hlxaolthqtr", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("jbp", model.privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsDeleteMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsDeleteMockTests.java deleted file mode 100644 index 11e80cdd1845c..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsDeleteMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class PrivateEndpointConnectionsDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - RedisEnterpriseManager manager = RedisEnterpriseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.privateEndpointConnections() - .delete("szjfauvjfdxxivet", "t", "qaqtdoqmcbxvwvxy", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java deleted file mode 100644 index 9d24347b9f0e4..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager; -import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointConnection; -import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointServiceConnectionStatus; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class PrivateEndpointConnectionsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"privateEndpoint\":{\"id\":\"pcqeqx\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"ahzxctobgbk\",\"actionsRequired\":\"oizpostmgrcfbun\"},\"provisioningState\":\"Failed\"},\"id\":\"qjhhkxbpv\",\"name\":\"ymjhxxjyngudivkr\",\"type\":\"swbxqz\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - RedisEnterpriseManager manager = RedisEnterpriseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PrivateEndpointConnection response = manager.privateEndpointConnections() - .getWithResponse("oellwp", "fdygpfqbuaceopz", "qrhhu", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, - response.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ahzxctobgbk", response.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("oizpostmgrcfbun", response.privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsListMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsListMockTests.java deleted file mode 100644 index 9b8529edc0e65..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsListMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager; -import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointConnection; -import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointServiceConnectionStatus; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class PrivateEndpointConnectionsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"privateEndpoint\":{\"id\":\"napnyiropuhpigv\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"gqgitxmedjvcsl\",\"actionsRequired\":\"qwwncw\"},\"provisioningState\":\"Succeeded\"},\"id\":\"xgk\",\"name\":\"rmgucnap\",\"type\":\"t\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - RedisEnterpriseManager manager = RedisEnterpriseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.privateEndpointConnections().list("hb", "xknalaulppg", com.azure.core.util.Context.NONE); - - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, - response.iterator().next().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("gqgitxmedjvcsl", - response.iterator().next().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("qwwncw", - response.iterator().next().privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointTests.java deleted file mode 100644 index c17c8c68eaccf..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointTests.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.models.PrivateEndpoint; - -public final class PrivateEndpointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpoint model = BinaryData.fromString("{\"id\":\"inzgvfcj\"}").toObject(PrivateEndpoint.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpoint model = new PrivateEndpoint(); - model = BinaryData.fromObject(model).toObject(PrivateEndpoint.class); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourceInnerTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourceInnerTests.java deleted file mode 100644 index 263f7098a9662..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourceInnerTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.fluent.models.PrivateLinkResourceInner; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkResourceInner model = BinaryData.fromString( - "{\"properties\":{\"groupId\":\"fu\",\"requiredMembers\":[\"odsfcpkvxodpuozm\",\"zydagfuaxbezyiuo\",\"ktwh\"],\"requiredZoneNames\":[\"wz\"]},\"id\":\"wqsmbsur\",\"name\":\"xim\",\"type\":\"ryocfsfksymdd\"}") - .toObject(PrivateLinkResourceInner.class); - Assertions.assertEquals("wz", model.requiredZoneNames().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkResourceInner model = new PrivateLinkResourceInner().withRequiredZoneNames(Arrays.asList("wz")); - model = BinaryData.fromObject(model).toObject(PrivateLinkResourceInner.class); - Assertions.assertEquals("wz", model.requiredZoneNames().get(0)); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourceListResultTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourceListResultTests.java deleted file mode 100644 index 1b9068800a408..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourceListResultTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.fluent.models.PrivateLinkResourceInner; -import com.azure.resourcemanager.redisenterprise.models.PrivateLinkResourceListResult; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkResourceListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkResourceListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"groupId\":\"usue\",\"requiredMembers\":[\"wd\",\"jbavorxzdm\",\"hctbqvudwxdn\"],\"requiredZoneNames\":[\"owgujjugwdkcglhs\"]},\"id\":\"azjdyggd\",\"name\":\"jixhbk\",\"type\":\"ofqweykhmenevfye\"},{\"properties\":{\"groupId\":\"hybcibv\",\"requiredMembers\":[\"c\"],\"requiredZoneNames\":[\"ynnaam\",\"ectehf\",\"qsc\",\"eypvhezrkg\"]},\"id\":\"hcjrefovgmk\",\"name\":\"sle\",\"type\":\"yvxyqjp\"},{\"properties\":{\"groupId\":\"t\",\"requiredMembers\":[\"gjcrcczsqpjhvm\"],\"requiredZoneNames\":[\"v\",\"ysou\",\"q\"]},\"id\":\"canoaeupf\",\"name\":\"yhltrpmopjmcm\",\"type\":\"tuo\"}]}") - .toObject(PrivateLinkResourceListResult.class); - Assertions.assertEquals("owgujjugwdkcglhs", model.value().get(0).requiredZoneNames().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkResourceListResult model = new PrivateLinkResourceListResult().withValue( - Arrays.asList(new PrivateLinkResourceInner().withRequiredZoneNames(Arrays.asList("owgujjugwdkcglhs")), - new PrivateLinkResourceInner() - .withRequiredZoneNames(Arrays.asList("ynnaam", "ectehf", "qsc", "eypvhezrkg")), - new PrivateLinkResourceInner().withRequiredZoneNames(Arrays.asList("v", "ysou", "q")))); - model = BinaryData.fromObject(model).toObject(PrivateLinkResourceListResult.class); - Assertions.assertEquals("owgujjugwdkcglhs", model.value().get(0).requiredZoneNames().get(0)); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcePropertiesTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcePropertiesTests.java deleted file mode 100644 index d7258c44e05ae..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcePropertiesTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.fluent.models.PrivateLinkResourceProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkResourcePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkResourceProperties model = BinaryData.fromString( - "{\"groupId\":\"tki\",\"requiredMembers\":[\"hqyudxorrqnbpoc\",\"vyifqrvkdvjsl\",\"rm\",\"vdfwatkpn\"],\"requiredZoneNames\":[\"exxbczwtr\",\"wiqzbqjvsovmyo\",\"acspkwl\"]}") - .toObject(PrivateLinkResourceProperties.class); - Assertions.assertEquals("exxbczwtr", model.requiredZoneNames().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkResourceProperties model = new PrivateLinkResourceProperties() - .withRequiredZoneNames(Arrays.asList("exxbczwtr", "wiqzbqjvsovmyo", "acspkwl")); - model = BinaryData.fromObject(model).toObject(PrivateLinkResourceProperties.class); - Assertions.assertEquals("exxbczwtr", model.requiredZoneNames().get(0)); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcesListByClusterMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcesListByClusterMockTests.java deleted file mode 100644 index 260513f1bee33..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcesListByClusterMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager; -import com.azure.resourcemanager.redisenterprise.models.PrivateLinkResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class PrivateLinkResourcesListByClusterMockTests { - @Test - public void testListByCluster() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"groupId\":\"blmpewww\",\"requiredMembers\":[\"rvrnsvshqjohxc\",\"sbfov\"],\"requiredZoneNames\":[\"ruvw\",\"hsqfsubcgjbirxbp\",\"bsrfbj\"]},\"id\":\"dtws\",\"name\":\"otftpvjzbexilz\",\"type\":\"nfqqnvwp\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - RedisEnterpriseManager manager = RedisEnterpriseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.privateLinkResources().listByCluster("lqbhsf", "obl", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ruvw", response.iterator().next().requiredZoneNames().get(0)); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkServiceConnectionStateTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkServiceConnectionStateTests.java deleted file mode 100644 index 027efb0dcec95..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkServiceConnectionStateTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointServiceConnectionStatus; -import com.azure.resourcemanager.redisenterprise.models.PrivateLinkServiceConnectionState; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkServiceConnectionStateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkServiceConnectionState model = BinaryData - .fromString("{\"status\":\"Pending\",\"description\":\"xxjtfe\",\"actionsRequired\":\"uwfzitonpe\"}") - .toObject(PrivateLinkServiceConnectionState.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, model.status()); - Assertions.assertEquals("xxjtfe", model.description()); - Assertions.assertEquals("uwfzitonpe", model.actionsRequired()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkServiceConnectionState model - = new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.PENDING) - .withDescription("xxjtfe") - .withActionsRequired("uwfzitonpe"); - model = BinaryData.fromObject(model).toObject(PrivateLinkServiceConnectionState.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, model.status()); - Assertions.assertEquals("xxjtfe", model.description()); - Assertions.assertEquals("uwfzitonpe", model.actionsRequired()); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesDeleteMockTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesDeleteMockTests.java deleted file mode 100644 index f4c88d56bf858..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesDeleteMockTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class RedisEnterprisesDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - RedisEnterpriseManager manager = RedisEnterpriseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.redisEnterprises().delete("alpbuxwgipwhon", "wkgshwa", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/SkuTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/SkuTests.java deleted file mode 100644 index cfe0e6638d805..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/SkuTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.models.Sku; -import com.azure.resourcemanager.redisenterprise.models.SkuName; -import org.junit.jupiter.api.Assertions; - -public final class SkuTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Sku model - = BinaryData.fromString("{\"name\":\"MemoryOptimized_M50\",\"capacity\":1373520670}").toObject(Sku.class); - Assertions.assertEquals(SkuName.MEMORY_OPTIMIZED_M50, model.name()); - Assertions.assertEquals(1373520670, model.capacity()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Sku model = new Sku().withName(SkuName.MEMORY_OPTIMIZED_M50).withCapacity(1373520670); - model = BinaryData.fromObject(model).toObject(Sku.class); - Assertions.assertEquals(SkuName.MEMORY_OPTIMIZED_M50, model.name()); - Assertions.assertEquals(1373520670, model.capacity()); - } -} diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/UserAssignedIdentityTests.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/UserAssignedIdentityTests.java deleted file mode 100644 index 61be7cf205f7e..0000000000000 --- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/UserAssignedIdentityTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.redisenterprise.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redisenterprise.models.UserAssignedIdentity; - -public final class UserAssignedIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UserAssignedIdentity model = BinaryData.fromString( - "{\"principalId\":\"75a303e1-7d83-4eb2-bc8c-0b5172196464\",\"clientId\":\"f496c6eb-768f-447a-b799-74a1db57c2bb\"}") - .toObject(UserAssignedIdentity.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UserAssignedIdentity model = new UserAssignedIdentity(); - model = BinaryData.fromObject(model).toObject(UserAssignedIdentity.class); - } -}