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