diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/CHANGELOG.md b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/CHANGELOG.md
index 97204f152b7a..850a4a12814e 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/CHANGELOG.md
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/CHANGELOG.md
@@ -1,14 +1,234 @@
# Release History
-## 2.2.0-beta.1 (Unreleased)
+## 2.2.0-beta.1 (2026-06-12)
-### Features Added
+- Azure Resource Manager Redis Enterprise client library for Java. This package contains Microsoft Azure SDK for Redis Enterprise Management SDK. REST API for managing Redis Enterprise resources in Azure. Package api-version 2026-02-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Breaking Changes
-### Bugs Fixed
+#### `models.PrivateLinkResourceListResult` was removed
+
+#### `models.PrivateEndpointConnectionListResult` was removed
+
+#### `models.OperationListResult` was removed
+
+#### `models.AccessPolicyAssignmentList` was removed
+
+#### `models.ClusterList` was removed
+
+#### `models.DatabaseList` was removed
+
+#### `models.ManagedServiceIdentity` was modified
+
+* `validate()` was removed
+* `java.util.UUID tenantId()` -> `java.lang.String tenantId()`
+* `java.util.UUID principalId()` -> `java.lang.String principalId()`
+
+#### `models.ClusterUpdate` was modified
+
+* `validate()` was removed
+
+#### `models.ForceLinkParametersGeoReplication` was modified
+
+* `validate()` was removed
+
+#### `models.ForceUnlinkParameters` was modified
+
+* `validate()` was removed
+
+#### `models.UserAssignedIdentity` was modified
+
+* `java.util.UUID principalId()` -> `java.lang.String principalId()`
+* `java.util.UUID clientId()` -> `java.lang.String clientId()`
+* `validate()` was removed
+
+#### `models.DatabaseUpdate` was modified
+
+* `validate()` was removed
+
+#### `models.Module` was modified
+
+* `validate()` was removed
+
+#### `models.PrivateEndpoint` was modified
+
+* `validate()` was removed
+
+#### `models.Sku` was modified
+
+* `validate()` was removed
+
+#### `models.ClusterPropertiesEncryption` was modified
+
+* `validate()` was removed
+
+#### `models.AccessPolicyAssignmentPropertiesUser` was modified
+
+* `validate()` was removed
+
+#### `models.DatabasePropertiesGeoReplication` was modified
+
+* `validate()` was removed
+
+#### `models.RegenerateKeyParameters` was modified
+
+* `validate()` was removed
+
+#### `models.LinkedDatabase` was modified
+
+* `validate()` was removed
+
+#### `models.PrivateLinkServiceConnectionState` was modified
+
+* `validate()` was removed
+
+#### `models.ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity` was modified
+
+* `validate()` was removed
+
+#### `models.ImportClusterParameters` was modified
+
+* `validate()` was removed
+
+#### `models.ClusterCommonProperties` was modified
+
+* `validate()` was removed
+
+#### `models.ForceLinkParameters` was modified
+
+* `validate()` was removed
+
+#### `models.FlushParameters` was modified
+
+* `validate()` was removed
+
+#### `models.DatabaseCommonProperties` was modified
+
+* `validate()` was removed
+
+#### `models.OperationDisplay` was modified
+
+* `OperationDisplay()` was changed to private access
+* `validate()` was removed
+
+#### `models.ExportClusterParameters` was modified
+
+* `validate()` was removed
+
+#### `models.Persistence` was modified
+
+* `validate()` was removed
+
+#### `models.ClusterPropertiesEncryptionCustomerManagedKeyEncryption` was modified
+
+* `validate()` was removed
+
+#### `models.SkuDetails` was modified
+
+* `SkuDetails()` was changed to private access
+* `validate()` was removed
+
+### Features Added
+
+* `models.MaintenanceWindowSchedule` was added
+
+* `models.MigrationValidationRequest` was added
+
+* `models.SourceType` was added
+
+* `models.MaintenanceWindowType` was added
+
+* `models.MaintenanceDayOfWeek` was added
+
+* `models.MigrationProvisioningState` was added
+
+* `models.MigrationValidationError` was added
+
+* `models.MaintenanceConfiguration` was added
+
+* `models.MaintenanceWindow` was added
+
+* `models.AzureCacheForRedisMigrationProperties` was added
+
+* `models.MigrationProperties` was added
+
+* `models.MigrationOperations` was added
+
+* `models.Migration` was added
+
+* `models.MigrationValidationResponse` was added
+
+* `models.Migrations` was added
+
+* `models.MigrationValidationDisparity` was added
+
+* `models.MigrationValidationWarning` was added
+
+#### `models.ClusterUpdate` was modified
+
+* `migratedEndpoint()` was added
+* `withMaintenanceConfiguration(models.MaintenanceConfiguration)` was added
+* `maintenanceConfiguration()` was added
+
+#### `models.PrivateLinkResource` was modified
+
+* `systemData()` was added
+
+#### `models.DatabaseUpdate` was modified
+
+* `notifyKeyspaceEvents()` was added
+* `withNotifyKeyspaceEvents(java.lang.String)` was added
+
+#### `models.Cluster$Update` was modified
+
+* `withMaintenanceConfiguration(models.MaintenanceConfiguration)` was added
+
+#### `RedisEnterpriseManager` was modified
+
+* `migrations()` was added
+* `migrationOperations()` was added
-### Other Changes
+#### `models.Database$Definition` was modified
+
+* `withNotifyKeyspaceEvents(java.lang.String)` was added
+
+#### `models.Cluster$Definition` was modified
+
+* `withMaintenanceConfiguration(models.MaintenanceConfiguration)` was added
+
+#### `models.ClusterCommonProperties` was modified
+
+* `migratedEndpoint()` was added
+* `withMaintenanceConfiguration(models.MaintenanceConfiguration)` was added
+* `maintenanceConfiguration()` was added
+
+#### `models.Database$Update` was modified
+
+* `withNotifyKeyspaceEvents(java.lang.String)` was added
+
+#### `models.AccessPolicyAssignment` was modified
+
+* `systemData()` was added
+
+#### `models.Database` was modified
+
+* `notifyKeyspaceEvents()` was added
+
+#### `models.DatabaseCommonProperties` was modified
+
+* `notifyKeyspaceEvents()` was added
+* `withNotifyKeyspaceEvents(java.lang.String)` was added
+
+#### `models.PrivateEndpointConnection` was modified
+
+* `systemData()` was added
+* `groupIds()` was added
+
+#### `models.Cluster` was modified
+
+* `systemData()` was added
+* `migratedEndpoint()` was added
+* `maintenanceConfiguration()` was added
## 2.1.0 (2025-10-15)
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md
index 1e053c4631b4..f0c55b33fd1a 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md
@@ -1,8 +1,8 @@
-# Azure Resource Manager RedisEnterprise client library for Java
+# Azure Resource Manager Redis Enterprise client library for Java
-Azure Resource Manager RedisEnterprise client library for Java.
+Azure Resource Manager Redis Enterprise 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-2025-07-01. 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 Redis Enterprise Management SDK. REST API for managing Redis Enterprise resources in Azure. Package api-version 2026-02-01-preview. 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
+ 2.2.0-beta.1
```
[//]: # ({x-version-update-end})
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/SAMPLE.md b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/SAMPLE.md
index a8d0a9293569..fd468cdb86e0 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/SAMPLE.md
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/SAMPLE.md
@@ -24,6 +24,17 @@
- [Update](#databases_update)
- [UpgradeDBRedisVersion](#databases_upgradedbredisversion)
+## MigrationOperation
+
+- [Cancel](#migrationoperation_cancel)
+- [Get](#migrationoperation_get)
+- [List](#migrationoperation_list)
+- [Start](#migrationoperation_start)
+
+## Migrations
+
+- [Validate](#migrations_validate)
+
## Operations
- [List](#operations_list)
@@ -62,9 +73,7 @@ import com.azure.resourcemanager.redisenterprise.models.AccessPolicyAssignmentPr
*/
public final class AccessPolicyAssignmentCreateUpdateSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseAccessPolicyAssignmentCreateUpdate.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseAccessPolicyAssignmentCreateUpdate.json
*/
/**
* Sample code: RedisEnterpriseAccessPolicyAssignmentCreateUpdate.
@@ -91,9 +100,7 @@ public final class AccessPolicyAssignmentCreateUpdateSamples {
*/
public final class AccessPolicyAssignmentDeleteSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseAccessPolicyAssignmentDelete.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseAccessPolicyAssignmentDelete.json
*/
/**
* Sample code: RedisEnterpriseAccessPolicyAssignmentDelete.
@@ -116,9 +123,7 @@ public final class AccessPolicyAssignmentDeleteSamples {
*/
public final class AccessPolicyAssignmentGetSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseAccessPolicyAssignmentGet.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseAccessPolicyAssignmentGet.json
*/
/**
* Sample code: RedisEnterpriseAccessPolicyAssignmentGet.
@@ -142,9 +147,7 @@ public final class AccessPolicyAssignmentGetSamples {
*/
public final class AccessPolicyAssignmentListSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseAccessPolicyAssignmentsList.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseAccessPolicyAssignmentsList.json
*/
/**
* Sample code: RedisEnterpriseAccessPolicyAssignmentList.
@@ -178,9 +181,7 @@ import java.util.Arrays;
*/
public final class DatabasesCreateSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseDatabasesNoClusterCacheCreate.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseDatabasesNoClusterCacheCreate.json
*/
/**
* Sample code: RedisEnterpriseDatabasesCreate No Cluster Cache.
@@ -196,13 +197,12 @@ public final class DatabasesCreateSamples {
.withPort(10000)
.withClusteringPolicy(ClusteringPolicy.NO_CLUSTER)
.withEvictionPolicy(EvictionPolicy.NO_EVICTION)
+ .withNotifyKeyspaceEvents("")
.create();
}
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseDatabasesCreate.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseDatabasesCreate.json
*/
/**
* Sample code: RedisEnterpriseDatabasesCreate.
@@ -214,6 +214,7 @@ public final class DatabasesCreateSamples {
manager.databases()
.define("default")
.withExistingRedisEnterprise("rg1", "cache1")
+ .withAccessKeysAuthentication(AccessKeysAuthentication.ENABLED)
.withClientProtocol(Protocol.ENCRYPTED)
.withPort(10000)
.withClusteringPolicy(ClusteringPolicy.ENTERPRISE_CLUSTER)
@@ -223,14 +224,12 @@ public final class DatabasesCreateSamples {
new Module().withName("RedisTimeSeries").withArgs("RETENTION_POLICY 20"),
new Module().withName("RediSearch")))
.withDeferUpgrade(DeferUpgradeSetting.NOT_DEFERRED)
- .withAccessKeysAuthentication(AccessKeysAuthentication.ENABLED)
+ .withNotifyKeyspaceEvents("KEA")
.create();
}
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseDatabasesCreateWithGeoReplication.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseDatabasesCreateWithGeoReplication.json
*/
/**
* Sample code: RedisEnterpriseDatabasesCreate With Active Geo Replication.
@@ -242,6 +241,7 @@ public final class DatabasesCreateSamples {
manager.databases()
.define("default")
.withExistingRedisEnterprise("rg1", "cache1")
+ .withAccessKeysAuthentication(AccessKeysAuthentication.ENABLED)
.withClientProtocol(Protocol.ENCRYPTED)
.withPort(10000)
.withClusteringPolicy(ClusteringPolicy.ENTERPRISE_CLUSTER)
@@ -251,7 +251,7 @@ public final class DatabasesCreateSamples {
"/subscriptions/e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f/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)
+ .withNotifyKeyspaceEvents("KEA")
.create();
}
}
@@ -265,9 +265,7 @@ public final class DatabasesCreateSamples {
*/
public final class DatabasesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseDatabasesDelete.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseDatabasesDelete.json
*/
/**
* Sample code: RedisEnterpriseDatabasesDelete.
@@ -291,9 +289,7 @@ import com.azure.resourcemanager.redisenterprise.models.ExportClusterParameters;
*/
public final class DatabasesExportSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseDatabasesExport.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseDatabasesExport.json
*/
/**
* Sample code: RedisEnterpriseDatabasesExport.
@@ -322,9 +318,7 @@ import java.util.Arrays;
*/
public final class DatabasesFlushSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseDatabasesFlush.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseDatabasesFlush.json
*/
/**
* Sample code: How to flush all the keys in the database.
@@ -354,9 +348,7 @@ import java.util.Arrays;
*/
public final class DatabasesForceLinkToReplicationGroupSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseDatabasesForceLink.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseDatabasesForceLink.json
*/
/**
* Sample code: How to relink a database after a regional outage.
@@ -389,9 +381,7 @@ import java.util.Arrays;
*/
public final class DatabasesForceUnlinkSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseDatabasesForceUnlink.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseDatabasesForceUnlink.json
*/
/**
* Sample code: How to unlink a database during a regional outage.
@@ -416,9 +406,7 @@ public final class DatabasesForceUnlinkSamples {
*/
public final class DatabasesGetSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseDatabasesGet.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseDatabasesGet.json
*/
/**
* Sample code: RedisEnterpriseDatabasesGet.
@@ -443,9 +431,7 @@ import java.util.Arrays;
*/
public final class DatabasesImportMethodSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseDatabasesImport.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseDatabasesImport.json
*/
/**
* Sample code: RedisEnterpriseDatabasesImport.
@@ -472,9 +458,7 @@ public final class DatabasesImportMethodSamples {
*/
public final class DatabasesListByClusterSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseDatabasesListByCluster.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseDatabasesListByCluster.json
*/
/**
* Sample code: RedisEnterpriseDatabasesListByCluster.
@@ -496,9 +480,7 @@ public final class DatabasesListByClusterSamples {
*/
public final class DatabasesListKeysSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseDatabasesListKeys.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseDatabasesListKeys.json
*/
/**
* Sample code: RedisEnterpriseDatabasesListKeys.
@@ -523,9 +505,7 @@ import com.azure.resourcemanager.redisenterprise.models.RegenerateKeyParameters;
*/
public final class DatabasesRegenerateKeySamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseDatabasesRegenerateKey.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseDatabasesRegenerateKey.json
*/
/**
* Sample code: RedisEnterpriseDatabasesRegenerateKey.
@@ -557,9 +537,7 @@ import com.azure.resourcemanager.redisenterprise.models.RdbFrequency;
*/
public final class DatabasesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseDatabasesNoClusterCacheUpdateClustering.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseDatabasesNoClusterCacheUpdateClustering.json
*/
/**
* Sample code: RedisEnterpriseDatabasesUpdate Clustering on No Cluster Cache.
@@ -575,13 +553,12 @@ public final class DatabasesUpdateSamples {
.withClientProtocol(Protocol.ENCRYPTED)
.withClusteringPolicy(ClusteringPolicy.ENTERPRISE_CLUSTER)
.withEvictionPolicy(EvictionPolicy.NO_EVICTION)
+ .withNotifyKeyspaceEvents("")
.apply();
}
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseDatabasesUpdate.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseDatabasesUpdate.json
*/
/**
* Sample code: RedisEnterpriseDatabasesUpdate.
@@ -594,10 +571,11 @@ public final class DatabasesUpdateSamples {
.getWithResponse("rg1", "cache1", "default", com.azure.core.util.Context.NONE)
.getValue();
resource.update()
+ .withAccessKeysAuthentication(AccessKeysAuthentication.ENABLED)
.withClientProtocol(Protocol.ENCRYPTED)
.withEvictionPolicy(EvictionPolicy.ALL_KEYS_LRU)
.withPersistence(new Persistence().withRdbEnabled(true).withRdbFrequency(RdbFrequency.ONE_TWOH))
- .withAccessKeysAuthentication(AccessKeysAuthentication.ENABLED)
+ .withNotifyKeyspaceEvents("KEA")
.apply();
}
}
@@ -611,9 +589,7 @@ public final class DatabasesUpdateSamples {
*/
public final class DatabasesUpgradeDBRedisVersionSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseDatabasesUpgradeDBRedisVersion.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseDatabasesUpgradeDBRedisVersion.json
*/
/**
* Sample code: How to upgrade your database Redis version.
@@ -627,6 +603,131 @@ public final class DatabasesUpgradeDBRedisVersionSamples {
}
```
+### MigrationOperation_Cancel
+
+```java
+/**
+ * Samples for MigrationOperation Cancel.
+ */
+public final class MigrationOperationCancelSamples {
+ /*
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseMigrationCancel.json
+ */
+ /**
+ * Sample code: RedisEnterpriseMigrationCancel.
+ *
+ * @param manager Entry point to RedisEnterpriseManager.
+ */
+ public static void
+ redisEnterpriseMigrationCancel(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
+ manager.migrationOperations().cancel("rg1", "cache1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### MigrationOperation_Get
+
+```java
+/**
+ * Samples for MigrationOperation Get.
+ */
+public final class MigrationOperationGetSamples {
+ /*
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseMigrationGet.json
+ */
+ /**
+ * Sample code: RedisEnterpriseMigrationGet.
+ *
+ * @param manager Entry point to RedisEnterpriseManager.
+ */
+ public static void
+ redisEnterpriseMigrationGet(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
+ manager.migrationOperations().getWithResponse("rg1", "cache1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### MigrationOperation_List
+
+```java
+/**
+ * Samples for MigrationOperation List.
+ */
+public final class MigrationOperationListSamples {
+ /*
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseMigrationList.json
+ */
+ /**
+ * Sample code: RedisEnterpriseMigrationList.
+ *
+ * @param manager Entry point to RedisEnterpriseManager.
+ */
+ public static void
+ redisEnterpriseMigrationList(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
+ manager.migrationOperations().list("rg1", "cache1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### MigrationOperation_Start
+
+```java
+import com.azure.resourcemanager.redisenterprise.fluent.models.MigrationInner;
+import com.azure.resourcemanager.redisenterprise.models.AzureCacheForRedisMigrationProperties;
+
+/**
+ * Samples for MigrationOperation Start.
+ */
+public final class MigrationOperationStartSamples {
+ /*
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseMigrationStart.json
+ */
+ /**
+ * Sample code: RedisEnterpriseMigrationStart.
+ *
+ * @param manager Entry point to RedisEnterpriseManager.
+ */
+ public static void
+ redisEnterpriseMigrationStart(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
+ manager.migrationOperations()
+ .start("rg1", "cache1",
+ new MigrationInner().withProperties(new AzureCacheForRedisMigrationProperties().withSourceResourceId(
+ "/subscriptions/e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1")
+ .withSwitchDns(true)
+ .withSkipDataMigration(true)),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Migrations_Validate
+
+```java
+import com.azure.resourcemanager.redisenterprise.models.MigrationValidationRequest;
+
+/**
+ * Samples for Migrations Validate.
+ */
+public final class MigrationsValidateSamples {
+ /*
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseMigrationValidate.json
+ */
+ /**
+ * Sample code: RedisEnterpriseMigrationValidate.
+ *
+ * @param manager Entry point to RedisEnterpriseManager.
+ */
+ public static void
+ redisEnterpriseMigrationValidate(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
+ manager.migrations()
+ .validateWithResponse("rg1", "cache1", new MigrationValidationRequest().withSourceResourceId(
+ "/subscriptions/e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f/resourceGroups/rg1/providers/Microsoft.Cache/redis/cache1")
+ .withSkipDataMigration(true)
+ .withForceMigrate(false), com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Operations_List
```java
@@ -635,9 +736,7 @@ public final class DatabasesUpgradeDBRedisVersionSamples {
*/
public final class OperationsListSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * OperationsList.json
+ * x-ms-original-file: 2026-02-01-preview/OperationsList.json
*/
/**
* Sample code: OperationsList.
@@ -658,9 +757,7 @@ public final class OperationsListSamples {
*/
public final class OperationsStatusGetSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * OperationsStatusGet.json
+ * x-ms-original-file: 2026-02-01-preview/OperationsStatusGet.json
*/
/**
* Sample code: OperationsStatusGet.
@@ -681,9 +778,7 @@ public final class OperationsStatusGetSamples {
*/
public final class PrivateEndpointConnectionsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseDeletePrivateEndpointConnection.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseDeletePrivateEndpointConnection.json
*/
/**
* Sample code: RedisEnterpriseDeletePrivateEndpointConnection.
@@ -705,9 +800,7 @@ public final class PrivateEndpointConnectionsDeleteSamples {
*/
public final class PrivateEndpointConnectionsGetSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseGetPrivateEndpointConnection.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseGetPrivateEndpointConnection.json
*/
/**
* Sample code: RedisEnterpriseGetPrivateEndpointConnection.
@@ -730,9 +823,7 @@ public final class PrivateEndpointConnectionsGetSamples {
*/
public final class PrivateEndpointConnectionsListSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseListPrivateEndpointConnections.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseListPrivateEndpointConnections.json
*/
/**
* Sample code: RedisEnterpriseListPrivateEndpointConnections.
@@ -757,9 +848,7 @@ import com.azure.resourcemanager.redisenterprise.models.PrivateLinkServiceConnec
*/
public final class PrivateEndpointConnectionsPutSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterprisePutPrivateEndpointConnection.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterprisePutPrivateEndpointConnection.json
*/
/**
* Sample code: RedisEnterprisePutPrivateEndpointConnection.
@@ -787,9 +876,7 @@ public final class PrivateEndpointConnectionsPutSamples {
*/
public final class PrivateLinkResourcesListByClusterSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseListPrivateLinkResources.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseListPrivateLinkResources.json
*/
/**
* Sample code: RedisEnterpriseListPrivateLinkResources.
@@ -810,6 +897,11 @@ import com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncrypt
import com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryptionCustomerManagedKeyEncryption;
import com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity;
import com.azure.resourcemanager.redisenterprise.models.CmkIdentityType;
+import com.azure.resourcemanager.redisenterprise.models.MaintenanceConfiguration;
+import com.azure.resourcemanager.redisenterprise.models.MaintenanceDayOfWeek;
+import com.azure.resourcemanager.redisenterprise.models.MaintenanceWindow;
+import com.azure.resourcemanager.redisenterprise.models.MaintenanceWindowSchedule;
+import com.azure.resourcemanager.redisenterprise.models.MaintenanceWindowType;
import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentity;
import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentityType;
import com.azure.resourcemanager.redisenterprise.models.PublicNetworkAccess;
@@ -826,9 +918,7 @@ import java.util.Map;
*/
public final class RedisEnterpriseCreateSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseCreate.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseCreate.json
*/
/**
* Sample code: RedisEnterpriseCreate.
@@ -856,6 +946,19 @@ public final class RedisEnterpriseCreateSamples {
"/subscriptions/your-subscription/resourceGroups/your-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/your-identity")
.withIdentityType(CmkIdentityType.USER_ASSIGNED_IDENTITY))
.withKeyEncryptionKeyUrl("fakeTokenPlaceholder")))
+ .withMaintenanceConfiguration(new MaintenanceConfiguration().withMaintenanceWindows(Arrays.asList(
+ new MaintenanceWindow().withType(MaintenanceWindowType.WEEKLY)
+ .withDuration("PT6H")
+ .withStartHourUtc(3)
+ .withSchedule(new MaintenanceWindowSchedule().withDayOfWeek(MaintenanceDayOfWeek.MONDAY)),
+ new MaintenanceWindow().withType(MaintenanceWindowType.WEEKLY)
+ .withDuration("PT6H")
+ .withStartHourUtc(3)
+ .withSchedule(new MaintenanceWindowSchedule().withDayOfWeek(MaintenanceDayOfWeek.TUESDAY)),
+ new MaintenanceWindow().withType(MaintenanceWindowType.WEEKLY)
+ .withDuration("PT6H")
+ .withStartHourUtc(3)
+ .withSchedule(new MaintenanceWindowSchedule().withDayOfWeek(MaintenanceDayOfWeek.WEDNESDAY)))))
.create();
}
@@ -881,9 +984,7 @@ public final class RedisEnterpriseCreateSamples {
*/
public final class RedisEnterpriseDeleteSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseDelete.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseDelete.json
*/
/**
* Sample code: RedisEnterpriseDelete.
@@ -904,9 +1005,7 @@ public final class RedisEnterpriseDeleteSamples {
*/
public final class RedisEnterpriseGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseGet.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseGet.json
*/
/**
* Sample code: RedisEnterpriseGet.
@@ -927,9 +1026,7 @@ public final class RedisEnterpriseGetByResourceGroupSamples {
*/
public final class RedisEnterpriseListSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseList.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseList.json
*/
/**
* Sample code: RedisEnterpriseList.
@@ -950,9 +1047,7 @@ public final class RedisEnterpriseListSamples {
*/
public final class RedisEnterpriseListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseListByResourceGroup.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseListByResourceGroup.json
*/
/**
* Sample code: RedisEnterpriseListByResourceGroup.
@@ -974,9 +1069,7 @@ public final class RedisEnterpriseListByResourceGroupSamples {
*/
public final class RedisEnterpriseListSkusForScalingSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseListSkusForScaling.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseListSkusForScaling.json
*/
/**
* Sample code: RedisEnterpriseListSkusForScaling.
@@ -994,10 +1087,16 @@ public final class RedisEnterpriseListSkusForScalingSamples {
```java
import com.azure.resourcemanager.redisenterprise.models.Cluster;
+import com.azure.resourcemanager.redisenterprise.models.MaintenanceConfiguration;
+import com.azure.resourcemanager.redisenterprise.models.MaintenanceDayOfWeek;
+import com.azure.resourcemanager.redisenterprise.models.MaintenanceWindow;
+import com.azure.resourcemanager.redisenterprise.models.MaintenanceWindowSchedule;
+import com.azure.resourcemanager.redisenterprise.models.MaintenanceWindowType;
import com.azure.resourcemanager.redisenterprise.models.PublicNetworkAccess;
import com.azure.resourcemanager.redisenterprise.models.Sku;
import com.azure.resourcemanager.redisenterprise.models.SkuName;
import com.azure.resourcemanager.redisenterprise.models.TlsVersion;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
@@ -1006,9 +1105,7 @@ import java.util.Map;
*/
public final class RedisEnterpriseUpdateSamples {
/*
- * x-ms-original-file:
- * specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/examples/
- * RedisEnterpriseUpdate.json
+ * x-ms-original-file: 2026-02-01-preview/RedisEnterpriseUpdate.json
*/
/**
* Sample code: RedisEnterpriseUpdate.
@@ -1024,6 +1121,19 @@ public final class RedisEnterpriseUpdateSamples {
.withSku(new Sku().withName(SkuName.ENTERPRISE_FLASH_F300).withCapacity(9))
.withPublicNetworkAccess(PublicNetworkAccess.ENABLED)
.withMinimumTlsVersion(TlsVersion.ONE_TWO)
+ .withMaintenanceConfiguration(new MaintenanceConfiguration().withMaintenanceWindows(Arrays.asList(
+ new MaintenanceWindow().withType(MaintenanceWindowType.WEEKLY)
+ .withDuration("PT6H")
+ .withStartHourUtc(3)
+ .withSchedule(new MaintenanceWindowSchedule().withDayOfWeek(MaintenanceDayOfWeek.MONDAY)),
+ new MaintenanceWindow().withType(MaintenanceWindowType.WEEKLY)
+ .withDuration("PT6H")
+ .withStartHourUtc(3)
+ .withSchedule(new MaintenanceWindowSchedule().withDayOfWeek(MaintenanceDayOfWeek.TUESDAY)),
+ new MaintenanceWindow().withType(MaintenanceWindowType.WEEKLY)
+ .withDuration("PT6H")
+ .withStartHourUtc(3)
+ .withSchedule(new MaintenanceWindowSchedule().withDayOfWeek(MaintenanceDayOfWeek.WEDNESDAY)))))
.apply();
}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/pom.xml b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/pom.xml
index 64534fb9e51c..d5c5984c31e6 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/pom.xml
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/pom.xml
@@ -1,9 +1,9 @@
-
+
4.0.0
com.azure
@@ -17,8 +17,8 @@
2.2.0-beta.1
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-2025-07-01.
+ Microsoft Azure SDK for Redis Enterprise Management
+ This package contains Microsoft Azure SDK for Redis Enterprise 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 api-version 2026-02-01-preview.
https://github.com/Azure/azure-sdk-for-java
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 2f902dec57ce..d236089b5a3b 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise;
@@ -27,6 +27,8 @@
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.MigrationOperationsImpl;
+import com.azure.resourcemanager.redisenterprise.implementation.MigrationsImpl;
import com.azure.resourcemanager.redisenterprise.implementation.OperationsImpl;
import com.azure.resourcemanager.redisenterprise.implementation.OperationsStatusImpl;
import com.azure.resourcemanager.redisenterprise.implementation.PrivateEndpointConnectionsImpl;
@@ -35,6 +37,8 @@
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.MigrationOperations;
+import com.azure.resourcemanager.redisenterprise.models.Migrations;
import com.azure.resourcemanager.redisenterprise.models.Operations;
import com.azure.resourcemanager.redisenterprise.models.OperationsStatus;
import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointConnections;
@@ -55,17 +59,21 @@
public final class RedisEnterpriseManager {
private Operations operations;
- private OperationsStatus operationsStatus;
+ private Databases databases;
+
+ private PrivateEndpointConnections privateEndpointConnections;
+
+ private Migrations migrations;
private RedisEnterprises redisEnterprises;
- private Databases databases;
+ private PrivateLinkResources privateLinkResources;
private AccessPolicyAssignments accessPolicyAssignments;
- private PrivateEndpointConnections privateEndpointConnections;
+ private MigrationOperations migrationOperations;
- private PrivateLinkResources privateLinkResources;
+ private OperationsStatus operationsStatus;
private final RedisEnterpriseManagementClient clientObject;
@@ -80,11 +88,11 @@ private RedisEnterpriseManager(HttpPipeline httpPipeline, AzureProfile profile,
}
/**
- * Creates an instance of RedisEnterprise service API entry point.
+ * Creates an instance of Redis Enterprise service API entry point.
*
* @param credential the credential to use.
* @param profile the Azure profile for client.
- * @return the RedisEnterprise service API instance.
+ * @return the Redis Enterprise service API instance.
*/
public static RedisEnterpriseManager authenticate(TokenCredential credential, AzureProfile profile) {
Objects.requireNonNull(credential, "'credential' cannot be null.");
@@ -93,11 +101,11 @@ public static RedisEnterpriseManager authenticate(TokenCredential credential, Az
}
/**
- * Creates an instance of RedisEnterprise service API entry point.
+ * Creates an instance of Redis Enterprise service API entry point.
*
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
* @param profile the Azure profile for client.
- * @return the RedisEnterprise service API instance.
+ * @return the Redis Enterprise service API instance.
*/
public static RedisEnterpriseManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
@@ -219,11 +227,11 @@ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
}
/**
- * Creates an instance of RedisEnterprise service API entry point.
+ * Creates an instance of Redis Enterprise service API entry point.
*
* @param credential the credential to use.
* @param profile the Azure profile for client.
- * @return the RedisEnterprise service API instance.
+ * @return the Redis Enterprise service API instance.
*/
public RedisEnterpriseManager authenticate(TokenCredential credential, AzureProfile profile) {
Objects.requireNonNull(credential, "'credential' cannot be null.");
@@ -295,15 +303,40 @@ public Operations operations() {
}
/**
- * Gets the resource collection API of OperationsStatus.
+ * Gets the resource collection API of Databases. It manages Database.
*
- * @return Resource collection API of OperationsStatus.
+ * @return Resource collection API of Databases.
*/
- public OperationsStatus operationsStatus() {
- if (this.operationsStatus == null) {
- this.operationsStatus = new OperationsStatusImpl(clientObject.getOperationsStatus(), this);
+ public Databases databases() {
+ if (this.databases == null) {
+ this.databases = new DatabasesImpl(clientObject.getDatabases(), this);
}
- return operationsStatus;
+ return databases;
+ }
+
+ /**
+ * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection.
+ *
+ * @return Resource collection API of PrivateEndpointConnections.
+ */
+ public PrivateEndpointConnections privateEndpointConnections() {
+ if (this.privateEndpointConnections == null) {
+ this.privateEndpointConnections
+ = new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
+ }
+ return privateEndpointConnections;
+ }
+
+ /**
+ * Gets the resource collection API of Migrations.
+ *
+ * @return Resource collection API of Migrations.
+ */
+ public Migrations migrations() {
+ if (this.migrations == null) {
+ this.migrations = new MigrationsImpl(clientObject.getMigrations(), this);
+ }
+ return migrations;
}
/**
@@ -319,15 +352,15 @@ public RedisEnterprises redisEnterprises() {
}
/**
- * Gets the resource collection API of Databases. It manages Database.
+ * Gets the resource collection API of PrivateLinkResources.
*
- * @return Resource collection API of Databases.
+ * @return Resource collection API of PrivateLinkResources.
*/
- public Databases databases() {
- if (this.databases == null) {
- this.databases = new DatabasesImpl(clientObject.getDatabases(), this);
+ public PrivateLinkResources privateLinkResources() {
+ if (this.privateLinkResources == null) {
+ this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
}
- return databases;
+ return privateLinkResources;
}
/**
@@ -344,28 +377,27 @@ public AccessPolicyAssignments accessPolicyAssignments() {
}
/**
- * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection.
+ * Gets the resource collection API of MigrationOperations.
*
- * @return Resource collection API of PrivateEndpointConnections.
+ * @return Resource collection API of MigrationOperations.
*/
- public PrivateEndpointConnections privateEndpointConnections() {
- if (this.privateEndpointConnections == null) {
- this.privateEndpointConnections
- = new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
+ public MigrationOperations migrationOperations() {
+ if (this.migrationOperations == null) {
+ this.migrationOperations = new MigrationOperationsImpl(clientObject.getMigrationOperations(), this);
}
- return privateEndpointConnections;
+ return migrationOperations;
}
/**
- * Gets the resource collection API of PrivateLinkResources.
+ * Gets the resource collection API of OperationsStatus.
*
- * @return Resource collection API of PrivateLinkResources.
+ * @return Resource collection API of OperationsStatus.
*/
- public PrivateLinkResources privateLinkResources() {
- if (this.privateLinkResources == null) {
- this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
+ public OperationsStatus operationsStatus() {
+ if (this.operationsStatus == null) {
+ this.operationsStatus = new OperationsStatusImpl(clientObject.getOperationsStatus(), this);
}
- return privateLinkResources;
+ return operationsStatus;
}
/**
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
index d7fc33028485..528955525058 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.fluent;
@@ -18,45 +18,39 @@
*/
public interface AccessPolicyAssignmentsClient {
/**
- * Creates/Updates a particular access policy assignment for a database.
+ * 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. Name must be 1-60 characters long. Allowed
* characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens.
* @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.
+ * @return information about access policy assignment for database along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, AccessPolicyAssignmentInner> beginCreateUpdate(
- String resourceGroupName, String clusterName, String databaseName, String accessPolicyAssignmentName,
- AccessPolicyAssignmentInner parameters);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String clusterName,
+ String databaseName, String accessPolicyAssignmentName, Context context);
/**
- * Creates/Updates a particular access policy assignment for a database.
+ * 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. Name must be 1-60 characters long. Allowed
* characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens.
* @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.
+ * @return information about access policy assignment for database.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, AccessPolicyAssignmentInner> beginCreateUpdate(
- String resourceGroupName, String clusterName, String databaseName, String accessPolicyAssignmentName,
- AccessPolicyAssignmentInner parameters, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AccessPolicyAssignmentInner get(String resourceGroupName, String clusterName, String databaseName,
+ String accessPolicyAssignmentName);
/**
* Creates/Updates a particular access policy assignment for a database.
@@ -70,11 +64,13 @@ SyncPoller, AccessPolicyAssignmentInner>
* @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.
+ * @return the {@link SyncPoller} for polling of 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);
+ @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.
@@ -89,46 +85,50 @@ AccessPolicyAssignmentInner createUpdate(String resourceGroupName, String cluste
* @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.
+ * @return the {@link SyncPoller} for polling of 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);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AccessPolicyAssignmentInner> beginCreateUpdate(
+ String resourceGroupName, String clusterName, String databaseName, String accessPolicyAssignmentName,
+ AccessPolicyAssignmentInner parameters, Context context);
/**
- * Gets information about access policy assignment for database.
+ * 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. Name must be 1-60 characters long. Allowed
* characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens.
* @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.
+ * @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 information about access policy assignment for database along with {@link Response}.
+ * @return describes the access policy assignment of Redis Enterprise database.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String clusterName,
- String databaseName, String accessPolicyAssignmentName, Context context);
+ AccessPolicyAssignmentInner createUpdate(String resourceGroupName, String clusterName, String databaseName,
+ String accessPolicyAssignmentName, AccessPolicyAssignmentInner parameters);
/**
- * Gets information about access policy assignment for database.
+ * 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. Name must be 1-60 characters long. Allowed
* characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens.
* @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 information about access policy assignment for database.
+ * @return describes the access policy assignment of Redis Enterprise database.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AccessPolicyAssignmentInner get(String resourceGroupName, String clusterName, String databaseName,
- String accessPolicyAssignmentName);
+ AccessPolicyAssignmentInner createUpdate(String resourceGroupName, String clusterName, String databaseName,
+ String accessPolicyAssignmentName, AccessPolicyAssignmentInner parameters, Context context);
/**
* Deletes a single access policy assignment.
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 ea48f2f8ff97..a7d846eb4eab 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.fluent;
@@ -26,33 +26,36 @@
*/
public interface DatabasesClient {
/**
- * Gets all databases in the specified Redis Enterprise cluster.
+ * Gets information about a database in a Redis Enterprise cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed
* characters(A-Z, a-z, 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 all databases in the specified Redis Enterprise cluster as paginated response with {@link PagedIterable}.
+ * @return information about a database in a Redis Enterprise cluster along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByCluster(String resourceGroupName, String clusterName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String clusterName, String databaseName,
+ Context context);
/**
- * Gets all databases in the specified Redis Enterprise cluster.
+ * Gets information about a database in a Redis Enterprise cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-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.
+ * @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 databases in the specified Redis Enterprise cluster as paginated response with {@link PagedIterable}.
+ * @return information about a database in a Redis Enterprise cluster.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByCluster(String resourceGroupName, String clusterName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatabaseInner get(String resourceGroupName, String clusterName, String databaseName);
/**
* Creates a database.
@@ -193,36 +196,36 @@ DatabaseInner update(String resourceGroupName, String clusterName, String databa
Context context);
/**
- * Gets information about a database in a Redis Enterprise 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. Name must be 1-60 characters long. Allowed
* characters(A-Z, a-z, 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 the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String clusterName, String databaseName,
- Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String databaseName);
/**
- * Gets information about a database in a Redis Enterprise 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. Name must be 1-60 characters long. Allowed
* characters(A-Z, a-z, 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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- DatabaseInner get(String resourceGroupName, String clusterName, String databaseName);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String databaseName,
+ Context context);
/**
* Deletes a single database.
@@ -234,10 +237,9 @@ Response getWithResponse(String resourceGroupName, String cluster
* @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);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String clusterName, String databaseName);
/**
* Deletes a single database.
@@ -250,40 +252,38 @@ Response getWithResponse(String resourceGroupName, String cluster
* @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,
- Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String clusterName, String databaseName, Context context);
/**
- * Deletes a single database.
+ * Gets all databases in the specified Redis Enterprise cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed
* characters(A-Z, a-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 all databases in the specified Redis Enterprise cluster as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String clusterName, String databaseName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByCluster(String resourceGroupName, String clusterName);
/**
- * Deletes a single database.
+ * Gets all databases in the specified Redis Enterprise cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed
* characters(A-Z, a-z, 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 all databases in the specified Redis Enterprise cluster as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String clusterName, String databaseName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByCluster(String resourceGroupName, String clusterName, Context context);
/**
* Retrieves the access keys for the Redis Enterprise database.
@@ -296,7 +296,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
* @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 access keys along with {@link Response}.
+ * @return the secret access keys used for authenticating connections to redis along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listKeysWithResponse(String resourceGroupName, String clusterName, String databaseName,
@@ -312,7 +312,7 @@ Response listKeysWithResponse(String resourceGroupName, String
* @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 access keys.
+ * @return the secret access keys used for authenticating connections to redis.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AccessKeysInner listKeys(String resourceGroupName, String clusterName, String databaseName);
@@ -328,7 +328,7 @@ Response listKeysWithResponse(String resourceGroupName, String
* @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 access keys.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, AccessKeysInner> beginRegenerateKey(String resourceGroupName,
@@ -346,7 +346,7 @@ SyncPoller, AccessKeysInner> beginRegenerateKey(Stri
* @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 access keys.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, AccessKeysInner> beginRegenerateKey(String resourceGroupName,
@@ -363,7 +363,7 @@ SyncPoller, AccessKeysInner> beginRegenerateKey(Stri
* @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 access keys.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AccessKeysInner regenerateKey(String resourceGroupName, String clusterName, String databaseName,
@@ -381,7 +381,7 @@ AccessKeysInner regenerateKey(String resourceGroupName, String clusterName, Stri
* @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 access keys.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AccessKeysInner regenerateKey(String resourceGroupName, String clusterName, String databaseName,
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/MigrationOperationsClient.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/MigrationOperationsClient.java
new file mode 100644
index 000000000000..592fb8924cb7
--- /dev/null
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/MigrationOperationsClient.java
@@ -0,0 +1,201 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec 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.MigrationInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in MigrationOperationsClient.
+ */
+public interface MigrationOperationsClient {
+ /**
+ * Gets information about a migration in a Redis Enterprise cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-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 migration in a Redis Enterprise cluster along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String clusterName, Context context);
+
+ /**
+ * Gets information about a migration in a Redis Enterprise cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the Redis Enterprise cluster. Name must be 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 migration in a Redis Enterprise cluster.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MigrationInner get(String resourceGroupName, String clusterName);
+
+ /**
+ * Starts a new migration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-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 start a migration 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 current migration operation on a Redis Enterprise
+ * cluster.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MigrationInner> beginStart(String resourceGroupName, String clusterName,
+ MigrationInner parameters);
+
+ /**
+ * Starts a new migration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-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 start a migration 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 current migration operation on a Redis Enterprise
+ * cluster.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MigrationInner> beginStart(String resourceGroupName, String clusterName,
+ MigrationInner parameters, Context context);
+
+ /**
+ * Starts a new migration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-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 start a migration 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 current migration operation on a Redis Enterprise cluster.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MigrationInner start(String resourceGroupName, String clusterName, MigrationInner parameters);
+
+ /**
+ * Starts a new migration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-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 start a migration 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 current migration operation on a Redis Enterprise cluster.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MigrationInner start(String resourceGroupName, String clusterName, MigrationInner parameters, Context context);
+
+ /**
+ * Gets information about all migrations attempts in a Redis Enterprise cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the Redis Enterprise cluster. Name must be 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 all migrations attempts in a Redis Enterprise cluster as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String clusterName);
+
+ /**
+ * Gets information about all migrations attempts in a Redis Enterprise cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-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 all migrations attempts in a Redis Enterprise cluster as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String clusterName, Context context);
+
+ /**
+ * Cancel or rollback the migration operation in a Redis Enterprise cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the Redis Enterprise cluster. Name must be 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginCancel(String resourceGroupName, String clusterName);
+
+ /**
+ * Cancel or rollback the migration operation in a Redis Enterprise cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginCancel(String resourceGroupName, String clusterName, Context context);
+
+ /**
+ * Cancel or rollback the migration operation in a Redis Enterprise cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the Redis Enterprise cluster. Name must be 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void cancel(String resourceGroupName, String clusterName);
+
+ /**
+ * Cancel or rollback the migration operation in a Redis Enterprise cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void cancel(String resourceGroupName, String clusterName, Context context);
+}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/MigrationsClient.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/MigrationsClient.java
new file mode 100644
index 000000000000..0c1d8b8dd86b
--- /dev/null
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/MigrationsClient.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec 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.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.redisenterprise.fluent.models.MigrationValidationResponseInner;
+import com.azure.resourcemanager.redisenterprise.models.MigrationValidationRequest;
+
+/**
+ * An instance of this class provides access to all the operations defined in MigrationsClient.
+ */
+public interface MigrationsClient {
+ /**
+ * Validates if a source Azure Cache for Redis resource can be migrated to a target Azure Managed Redis resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed
+ * characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens.
+ * @param body Parameters supplied to validate a migration 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 response for migration validation operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response validateWithResponse(String resourceGroupName, String clusterName,
+ MigrationValidationRequest body, Context context);
+
+ /**
+ * Validates if a source Azure Cache for Redis resource can be migrated to a target Azure Managed Redis resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed
+ * characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens.
+ * @param body Parameters supplied to validate a migration 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 response for migration validation operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MigrationValidationResponseInner validate(String resourceGroupName, String clusterName,
+ MigrationValidationRequest body);
+}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/OperationsClient.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/OperationsClient.java
index 1e0faa8ee6b0..9123b75911a0 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/OperationsClient.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/OperationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.fluent;
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/OperationsStatusClient.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/OperationsStatusClient.java
index ff0d88d8857d..d95184256bd1 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/OperationsStatusClient.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/OperationsStatusClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.fluent;
@@ -17,7 +17,7 @@ public interface OperationsStatusClient {
/**
* Gets the status of operation.
*
- * @param location The name of Azure region.
+ * @param location The name of the Azure region.
* @param operationId The ID of an ongoing async operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -31,7 +31,7 @@ public interface OperationsStatusClient {
/**
* Gets the status of operation.
*
- * @param location The name of Azure region.
+ * @param location The name of the Azure region.
* @param operationId The ID of an ongoing async operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
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 87dd760bd957..7d68e3de7a0a 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.fluent;
@@ -17,37 +17,6 @@
* An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient.
*/
public interface PrivateEndpointConnectionsClient {
- /**
- * Lists all the private endpoint connections associated with the Redis Enterprise cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the Redis Enterprise cluster. Name must be 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 list of private endpoint connection associated with the specified storage account as paginated response
- * with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String clusterName);
-
- /**
- * Lists all the private endpoint connections associated with the Redis Enterprise cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-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 list of private endpoint connection associated with the specified storage account as paginated response
- * with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String clusterName, Context context);
-
/**
* Gets the specified private endpoint connection associated with the Redis Enterprise cluster.
*
@@ -225,4 +194,35 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Lists all the private endpoint connections associated with the Redis Enterprise cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the Redis Enterprise cluster. Name must be 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 response of a PrivateEndpointConnection list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String clusterName);
+
+ /**
+ * Lists all the private endpoint connections associated with the Redis Enterprise cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-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 response of a PrivateEndpointConnection list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String clusterName, Context context);
}
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 aa64deea1acc..1864c83dde41 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.fluent;
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 297f788b7258..e6ceda134d4a 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.fluent;
@@ -12,26 +12,26 @@
*/
public interface RedisEnterpriseManagementClient {
/**
- * Gets The ID of the target subscription.
- *
- * @return the subscriptionId value.
- */
- String getSubscriptionId();
-
- /**
- * Gets server parameter.
+ * Gets Service host.
*
* @return the endpoint value.
*/
String getEndpoint();
/**
- * Gets Api Version.
+ * Gets Version parameter.
*
* @return the apiVersion value.
*/
String getApiVersion();
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
/**
* Gets The HTTP pipeline to send requests through.
*
@@ -54,11 +54,25 @@ public interface RedisEnterpriseManagementClient {
OperationsClient getOperations();
/**
- * Gets the OperationsStatusClient object to access its operations.
+ * Gets the DatabasesClient object to access its operations.
*
- * @return the OperationsStatusClient object.
+ * @return the DatabasesClient object.
*/
- OperationsStatusClient getOperationsStatus();
+ DatabasesClient getDatabases();
+
+ /**
+ * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the PrivateEndpointConnectionsClient object.
+ */
+ PrivateEndpointConnectionsClient getPrivateEndpointConnections();
+
+ /**
+ * Gets the MigrationsClient object to access its operations.
+ *
+ * @return the MigrationsClient object.
+ */
+ MigrationsClient getMigrations();
/**
* Gets the RedisEnterprisesClient object to access its operations.
@@ -68,11 +82,11 @@ public interface RedisEnterpriseManagementClient {
RedisEnterprisesClient getRedisEnterprises();
/**
- * Gets the DatabasesClient object to access its operations.
+ * Gets the PrivateLinkResourcesClient object to access its operations.
*
- * @return the DatabasesClient object.
+ * @return the PrivateLinkResourcesClient object.
*/
- DatabasesClient getDatabases();
+ PrivateLinkResourcesClient getPrivateLinkResources();
/**
* Gets the AccessPolicyAssignmentsClient object to access its operations.
@@ -82,16 +96,16 @@ public interface RedisEnterpriseManagementClient {
AccessPolicyAssignmentsClient getAccessPolicyAssignments();
/**
- * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ * Gets the MigrationOperationsClient object to access its operations.
*
- * @return the PrivateEndpointConnectionsClient object.
+ * @return the MigrationOperationsClient object.
*/
- PrivateEndpointConnectionsClient getPrivateEndpointConnections();
+ MigrationOperationsClient getMigrationOperations();
/**
- * Gets the PrivateLinkResourcesClient object to access its operations.
+ * Gets the OperationsStatusClient object to access its operations.
*
- * @return the PrivateLinkResourcesClient object.
+ * @return the OperationsStatusClient object.
*/
- PrivateLinkResourcesClient getPrivateLinkResources();
+ OperationsStatusClient getOperationsStatus();
}
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 18cb840eb01b..2d62bda9b8c1 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.fluent;
@@ -19,6 +19,36 @@
* An instance of this class provides access to all the operations defined in RedisEnterprisesClient.
*/
public interface RedisEnterprisesClient {
+ /**
+ * Gets information about a Redis Enterprise cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-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}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String clusterName,
+ Context context);
+
+ /**
+ * Gets information about a Redis Enterprise cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the Redis Enterprise cluster. Name must be 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ClusterInner getByResourceGroup(String resourceGroupName, String clusterName);
+
/**
* Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster.
*
@@ -203,36 +233,6 @@ SyncPoller, ClusterInner> beginUpdate(String resourceGr
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String clusterName, Context context);
- /**
- * Gets information about a Redis Enterprise cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the Redis Enterprise cluster. Name must be 1-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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName, String clusterName,
- Context context);
-
- /**
- * Gets information about a Redis Enterprise cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the Redis Enterprise cluster. Name must be 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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ClusterInner getByResourceGroup(String resourceGroupName, String clusterName);
-
/**
* Lists all Redis Enterprise clusters in a resource group.
*
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/AccessKeysInner.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/AccessKeysInner.java
index ee149706c334..f8c531b89ec7 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/AccessKeysInner.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/AccessKeysInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.fluent.models;
@@ -12,8 +12,6 @@
import java.io.IOException;
/**
- * Access keys
- *
* The secret access keys used for authenticating connections to redis.
*/
@Immutable
@@ -31,7 +29,7 @@ public final class AccessKeysInner implements JsonSerializable
/**
* Creates an instance of AccessKeysInner class.
*/
- public AccessKeysInner() {
+ private AccessKeysInner() {
}
/**
@@ -52,14 +50,6 @@ public String secondaryKey() {
return this.secondaryKey;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
/**
* {@inheritDoc}
*/
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
index 5b13cb1f290a..7a21b8e61e39 100644
--- 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
@@ -1,11 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.fluent.models;
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;
@@ -23,6 +24,11 @@ public final class AccessPolicyAssignmentInner extends ProxyResource {
*/
private AccessPolicyAssignmentProperties innerProperties;
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
/*
* The type of the resource.
*/
@@ -53,6 +59,15 @@ private AccessPolicyAssignmentProperties 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.
*
@@ -140,17 +155,6 @@ public AccessPolicyAssignmentInner withUser(AccessPolicyAssignmentPropertiesUser
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
@@ -186,6 +190,8 @@ public static AccessPolicyAssignmentInner fromJson(JsonReader jsonReader) throws
} else if ("properties".equals(fieldName)) {
deserializedAccessPolicyAssignmentInner.innerProperties
= AccessPolicyAssignmentProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedAccessPolicyAssignmentInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
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
index 20d86543af27..bea3e9cdd534 100644
--- 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
@@ -1,11 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec 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;
@@ -15,8 +14,6 @@
import java.io.IOException;
/**
- * Redis Enterprise database access policy assignment properties
- *
* Properties of Redis Enterprise database access policy assignment.
*/
@Fluent
@@ -93,28 +90,6 @@ public AccessPolicyAssignmentProperties withUser(AccessPolicyAssignmentPropertie
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}
*/
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 c551264b5d1e..379222ceb884 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
@@ -1,18 +1,19 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
-import com.azure.core.util.logging.ClientLogger;
+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.ClusterPropertiesEncryption;
import com.azure.resourcemanager.redisenterprise.models.HighAvailability;
import com.azure.resourcemanager.redisenterprise.models.Kind;
+import com.azure.resourcemanager.redisenterprise.models.MaintenanceConfiguration;
import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentity;
import com.azure.resourcemanager.redisenterprise.models.ProvisioningState;
import com.azure.resourcemanager.redisenterprise.models.PublicNetworkAccess;
@@ -29,6 +30,11 @@
*/
@Fluent
public final class ClusterInner extends Resource {
+ /*
+ * Other properties of the cluster.
+ */
+ private ClusterProperties innerProperties;
+
/*
* Distinguishes the kind of cluster. Read-only.
*/
@@ -40,19 +46,19 @@ public final class ClusterInner extends Resource {
private Sku sku;
/*
- * The Availability Zones where this cluster will be deployed.
+ * The availability zones.
*/
private List zones;
/*
- * The identity of the resource.
+ * The managed service identities assigned to this resource.
*/
private ManagedServiceIdentity identity;
/*
- * Other properties of the cluster.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
- private ClusterProperties innerProperties;
+ private SystemData systemData;
/*
* The type of the resource.
@@ -75,6 +81,15 @@ public final class ClusterInner extends Resource {
public ClusterInner() {
}
+ /**
+ * Get the innerProperties property: Other properties of the cluster.
+ *
+ * @return the innerProperties value.
+ */
+ private ClusterProperties innerProperties() {
+ return this.innerProperties;
+ }
+
/**
* Get the kind property: Distinguishes the kind of cluster. Read-only.
*
@@ -105,7 +120,7 @@ public ClusterInner withSku(Sku sku) {
}
/**
- * Get the zones property: The Availability Zones where this cluster will be deployed.
+ * Get the zones property: The availability zones.
*
* @return the zones value.
*/
@@ -114,7 +129,7 @@ public List zones() {
}
/**
- * Set the zones property: The Availability Zones where this cluster will be deployed.
+ * Set the zones property: The availability zones.
*
* @param zones the zones value to set.
* @return the ClusterInner object itself.
@@ -125,7 +140,7 @@ public ClusterInner withZones(List zones) {
}
/**
- * Get the identity property: The identity of the resource.
+ * Get the identity property: The managed service identities assigned to this resource.
*
* @return the identity value.
*/
@@ -134,7 +149,7 @@ public ManagedServiceIdentity identity() {
}
/**
- * Set the identity property: The identity of the resource.
+ * Set the identity property: The managed service identities assigned to this resource.
*
* @param identity the identity value to set.
* @return the ClusterInner object itself.
@@ -145,12 +160,12 @@ public ClusterInner withIdentity(ManagedServiceIdentity identity) {
}
/**
- * Get the innerProperties property: Other properties of the cluster.
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
- * @return the innerProperties value.
+ * @return the systemData value.
*/
- private ClusterProperties innerProperties() {
- return this.innerProperties;
+ public SystemData systemData() {
+ return this.systemData;
}
/**
@@ -303,6 +318,29 @@ public ClusterInner withEncryption(ClusterPropertiesEncryption encryption) {
return this;
}
+ /**
+ * Get the maintenanceConfiguration property: Cluster-level maintenance configuration.
+ *
+ * @return the maintenanceConfiguration value.
+ */
+ public MaintenanceConfiguration maintenanceConfiguration() {
+ return this.innerProperties() == null ? null : this.innerProperties().maintenanceConfiguration();
+ }
+
+ /**
+ * Set the maintenanceConfiguration property: Cluster-level maintenance configuration.
+ *
+ * @param maintenanceConfiguration the maintenanceConfiguration value to set.
+ * @return the ClusterInner object itself.
+ */
+ public ClusterInner withMaintenanceConfiguration(MaintenanceConfiguration maintenanceConfiguration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ClusterProperties();
+ }
+ this.innerProperties().withMaintenanceConfiguration(maintenanceConfiguration);
+ return this;
+ }
+
/**
* Get the hostname property: DNS name of the cluster endpoint.
*
@@ -360,27 +398,15 @@ public List privateEndpointConnections() {
}
/**
- * Validates the instance.
+ * Get the migratedEndpoint property: The endpoint of the source resource that is currently pointing to this
+ * resource as a result of an ACR/ACRE to AMR migration.
*
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (sku() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Missing required property sku in model ClusterInner"));
- } else {
- sku().validate();
- }
- if (identity() != null) {
- identity().validate();
- }
- if (innerProperties() != null) {
- innerProperties().validate();
- }
+ * @return the migratedEndpoint value.
+ */
+ public String migratedEndpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().migratedEndpoint();
}
- private static final ClientLogger LOGGER = new ClientLogger(ClusterInner.class);
-
/**
* {@inheritDoc}
*/
@@ -390,9 +416,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("location", location());
jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("sku", this.sku);
+ jsonWriter.writeJsonField("properties", this.innerProperties);
jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("identity", this.identity);
- jsonWriter.writeJsonField("properties", this.innerProperties);
return jsonWriter.writeEndObject();
}
@@ -425,6 +451,8 @@ public static ClusterInner fromJson(JsonReader jsonReader) throws IOException {
deserializedClusterInner.withTags(tags);
} else if ("sku".equals(fieldName)) {
deserializedClusterInner.sku = Sku.fromJson(reader);
+ } else if ("properties".equals(fieldName)) {
+ deserializedClusterInner.innerProperties = ClusterProperties.fromJson(reader);
} else if ("kind".equals(fieldName)) {
deserializedClusterInner.kind = Kind.fromString(reader.getString());
} else if ("zones".equals(fieldName)) {
@@ -432,8 +460,8 @@ public static ClusterInner fromJson(JsonReader jsonReader) throws IOException {
deserializedClusterInner.zones = zones;
} else if ("identity".equals(fieldName)) {
deserializedClusterInner.identity = ManagedServiceIdentity.fromJson(reader);
- } else if ("properties".equals(fieldName)) {
- deserializedClusterInner.innerProperties = ClusterProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedClusterInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
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 74f2bac2995e..3d6ea3d009d4 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
@@ -1,17 +1,17 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec 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.JsonToken;
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.redisenterprise.models.ClusterCommonProperties;
import com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryption;
import com.azure.resourcemanager.redisenterprise.models.HighAvailability;
+import com.azure.resourcemanager.redisenterprise.models.MaintenanceConfiguration;
import com.azure.resourcemanager.redisenterprise.models.ProvisioningState;
import com.azure.resourcemanager.redisenterprise.models.PublicNetworkAccess;
import com.azure.resourcemanager.redisenterprise.models.RedundancyMode;
@@ -21,8 +21,6 @@
import java.util.List;
/**
- * Redis Enterprise cluster properties for create operations
- *
* Properties of Redis Enterprise clusters for create operations.
*/
@Fluent
@@ -33,6 +31,12 @@ public final class ClusterProperties extends ClusterCommonProperties {
*/
private PublicNetworkAccess publicNetworkAccess;
+ /*
+ * The endpoint of the source resource that is currently pointing to this resource as a result of an ACR/ACRE to AMR
+ * migration.
+ */
+ private String migratedEndpoint;
+
/*
* List of private endpoint connections associated with the specified Redis Enterprise cluster
*/
@@ -93,6 +97,17 @@ public ClusterProperties withPublicNetworkAccess(PublicNetworkAccess publicNetwo
return this;
}
+ /**
+ * Get the migratedEndpoint property: The endpoint of the source resource that is currently pointing to this
+ * resource as a result of an ACR/ACRE to AMR migration.
+ *
+ * @return the migratedEndpoint value.
+ */
+ @Override
+ public String migratedEndpoint() {
+ return this.migratedEndpoint;
+ }
+
/**
* Get the privateEndpointConnections property: List of private endpoint connections associated with the specified
* Redis Enterprise cluster.
@@ -183,27 +198,14 @@ public ClusterProperties withEncryption(ClusterPropertiesEncryption encryption)
}
/**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
+ * {@inheritDoc}
*/
@Override
- public void validate() {
- if (publicNetworkAccess() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property publicNetworkAccess in model ClusterProperties"));
- }
- if (encryption() != null) {
- encryption().validate();
- }
- if (privateEndpointConnections() != null) {
- privateEndpointConnections().forEach(e -> e.validate());
- }
+ public ClusterProperties withMaintenanceConfiguration(MaintenanceConfiguration maintenanceConfiguration) {
+ super.withMaintenanceConfiguration(maintenanceConfiguration);
+ return this;
}
- private static final ClientLogger LOGGER = new ClientLogger(ClusterProperties.class);
-
/**
* {@inheritDoc}
*/
@@ -215,6 +217,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("minimumTlsVersion",
minimumTlsVersion() == null ? null : minimumTlsVersion().toString());
jsonWriter.writeJsonField("encryption", encryption());
+ jsonWriter.writeJsonField("maintenanceConfiguration", maintenanceConfiguration());
jsonWriter.writeStringField("publicNetworkAccess",
this.publicNetworkAccess == null ? null : this.publicNetworkAccess.toString());
return jsonWriter.writeEndObject();
@@ -242,6 +245,9 @@ public static ClusterProperties fromJson(JsonReader jsonReader) throws IOExcepti
deserializedClusterProperties.withMinimumTlsVersion(TlsVersion.fromString(reader.getString()));
} else if ("encryption".equals(fieldName)) {
deserializedClusterProperties.withEncryption(ClusterPropertiesEncryption.fromJson(reader));
+ } else if ("maintenanceConfiguration".equals(fieldName)) {
+ deserializedClusterProperties
+ .withMaintenanceConfiguration(MaintenanceConfiguration.fromJson(reader));
} else if ("hostName".equals(fieldName)) {
deserializedClusterProperties.hostname = reader.getString();
} else if ("provisioningState".equals(fieldName)) {
@@ -256,6 +262,8 @@ public static ClusterProperties fromJson(JsonReader jsonReader) throws IOExcepti
List privateEndpointConnections
= reader.readArray(reader1 -> PrivateEndpointConnectionInner.fromJson(reader1));
deserializedClusterProperties.privateEndpointConnections = privateEndpointConnections;
+ } else if ("migratedEndpoint".equals(fieldName)) {
+ deserializedClusterProperties.migratedEndpoint = reader.getString();
} else if ("publicNetworkAccess".equals(fieldName)) {
deserializedClusterProperties.publicNetworkAccess
= PublicNetworkAccess.fromString(reader.getString());
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/ClusterUpdateProperties.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/ClusterUpdateProperties.java
index 16994ce267bf..bd241b23be23 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/ClusterUpdateProperties.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/ClusterUpdateProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.fluent.models;
@@ -11,6 +11,7 @@
import com.azure.resourcemanager.redisenterprise.models.ClusterCommonProperties;
import com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryption;
import com.azure.resourcemanager.redisenterprise.models.HighAvailability;
+import com.azure.resourcemanager.redisenterprise.models.MaintenanceConfiguration;
import com.azure.resourcemanager.redisenterprise.models.ProvisioningState;
import com.azure.resourcemanager.redisenterprise.models.PublicNetworkAccess;
import com.azure.resourcemanager.redisenterprise.models.RedundancyMode;
@@ -20,8 +21,6 @@
import java.util.List;
/**
- * Redis Enterprise cluster properties for update operations
- *
* Properties of Redis Enterprise clusters for update operations.
*/
@Fluent
@@ -32,6 +31,12 @@ public final class ClusterUpdateProperties extends ClusterCommonProperties {
*/
private PublicNetworkAccess publicNetworkAccess;
+ /*
+ * The endpoint of the source resource that is currently pointing to this resource as a result of an ACR/ACRE to AMR
+ * migration.
+ */
+ private String migratedEndpoint;
+
/*
* List of private endpoint connections associated with the specified Redis Enterprise cluster
*/
@@ -92,6 +97,17 @@ public ClusterUpdateProperties withPublicNetworkAccess(PublicNetworkAccess publi
return this;
}
+ /**
+ * Get the migratedEndpoint property: The endpoint of the source resource that is currently pointing to this
+ * resource as a result of an ACR/ACRE to AMR migration.
+ *
+ * @return the migratedEndpoint value.
+ */
+ @Override
+ public String migratedEndpoint() {
+ return this.migratedEndpoint;
+ }
+
/**
* Get the privateEndpointConnections property: List of private endpoint connections associated with the specified
* Redis Enterprise cluster.
@@ -182,18 +198,12 @@ public ClusterUpdateProperties withEncryption(ClusterPropertiesEncryption encryp
}
/**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
+ * {@inheritDoc}
*/
@Override
- public void validate() {
- if (encryption() != null) {
- encryption().validate();
- }
- if (privateEndpointConnections() != null) {
- privateEndpointConnections().forEach(e -> e.validate());
- }
+ public ClusterUpdateProperties withMaintenanceConfiguration(MaintenanceConfiguration maintenanceConfiguration) {
+ super.withMaintenanceConfiguration(maintenanceConfiguration);
+ return this;
}
/**
@@ -207,6 +217,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("minimumTlsVersion",
minimumTlsVersion() == null ? null : minimumTlsVersion().toString());
jsonWriter.writeJsonField("encryption", encryption());
+ jsonWriter.writeJsonField("maintenanceConfiguration", maintenanceConfiguration());
jsonWriter.writeStringField("publicNetworkAccess",
this.publicNetworkAccess == null ? null : this.publicNetworkAccess.toString());
return jsonWriter.writeEndObject();
@@ -235,6 +246,9 @@ public static ClusterUpdateProperties fromJson(JsonReader jsonReader) throws IOE
.withMinimumTlsVersion(TlsVersion.fromString(reader.getString()));
} else if ("encryption".equals(fieldName)) {
deserializedClusterUpdateProperties.withEncryption(ClusterPropertiesEncryption.fromJson(reader));
+ } else if ("maintenanceConfiguration".equals(fieldName)) {
+ deserializedClusterUpdateProperties
+ .withMaintenanceConfiguration(MaintenanceConfiguration.fromJson(reader));
} else if ("hostName".equals(fieldName)) {
deserializedClusterUpdateProperties.hostname = reader.getString();
} else if ("provisioningState".equals(fieldName)) {
@@ -250,6 +264,8 @@ public static ClusterUpdateProperties fromJson(JsonReader jsonReader) throws IOE
List privateEndpointConnections
= reader.readArray(reader1 -> PrivateEndpointConnectionInner.fromJson(reader1));
deserializedClusterUpdateProperties.privateEndpointConnections = privateEndpointConnections;
+ } else if ("migratedEndpoint".equals(fieldName)) {
+ deserializedClusterUpdateProperties.migratedEndpoint = reader.getString();
} else if ("publicNetworkAccess".equals(fieldName)) {
deserializedClusterUpdateProperties.publicNetworkAccess
= PublicNetworkAccess.fromString(reader.getString());
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/DatabaseCreateProperties.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/DatabaseCreateProperties.java
index c0bd666e40b2..dc32f82bd61f 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/DatabaseCreateProperties.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/DatabaseCreateProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.fluent.models;
@@ -23,12 +23,16 @@
import java.util.List;
/**
- * Redis Enterprise database create properties
- *
* Properties for creating Redis Enterprise databases.
*/
@Fluent
public final class DatabaseCreateProperties extends DatabaseCommonProperties {
+ /*
+ * This property can be Enabled/Disabled to allow or deny access with the current access keys. Can be updated even
+ * after database is created. Default is Disabled.
+ */
+ private AccessKeysAuthentication accessKeysAuthentication;
+
/*
* Version of Redis the database is running on, e.g. '6.0'
*/
@@ -50,6 +54,28 @@ public final class DatabaseCreateProperties extends DatabaseCommonProperties {
public DatabaseCreateProperties() {
}
+ /**
+ * 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. Default is Disabled.
+ *
+ * @return the accessKeysAuthentication value.
+ */
+ public AccessKeysAuthentication accessKeysAuthentication() {
+ return this.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. Default is Disabled.
+ *
+ * @param accessKeysAuthentication the accessKeysAuthentication value to set.
+ * @return the DatabaseCreateProperties object itself.
+ */
+ public DatabaseCreateProperties withAccessKeysAuthentication(AccessKeysAuthentication accessKeysAuthentication) {
+ this.accessKeysAuthentication = accessKeysAuthentication;
+ return this;
+ }
+
/**
* Get the redisVersion property: Version of Redis the database is running on, e.g. '6.0'.
*
@@ -156,29 +182,11 @@ public DatabaseCreateProperties withDeferUpgrade(DeferUpgradeSetting deferUpgrad
* {@inheritDoc}
*/
@Override
- public DatabaseCreateProperties withAccessKeysAuthentication(AccessKeysAuthentication accessKeysAuthentication) {
- super.withAccessKeysAuthentication(accessKeysAuthentication);
+ public DatabaseCreateProperties withNotifyKeyspaceEvents(String notifyKeyspaceEvents) {
+ super.withNotifyKeyspaceEvents(notifyKeyspaceEvents);
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- @Override
- public void validate() {
- if (persistence() != null) {
- persistence().validate();
- }
- if (modules() != null) {
- modules().forEach(e -> e.validate());
- }
- if (geoReplication() != null) {
- geoReplication().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
@@ -194,8 +202,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeArrayField("modules", modules(), (writer, element) -> writer.writeJson(element));
jsonWriter.writeJsonField("geoReplication", geoReplication());
jsonWriter.writeStringField("deferUpgrade", deferUpgrade() == null ? null : deferUpgrade().toString());
+ jsonWriter.writeStringField("notifyKeyspaceEvents", notifyKeyspaceEvents());
jsonWriter.writeStringField("accessKeysAuthentication",
- accessKeysAuthentication() == null ? null : accessKeysAuthentication().toString());
+ this.accessKeysAuthentication == null ? null : this.accessKeysAuthentication.toString());
return jsonWriter.writeEndObject();
}
@@ -242,9 +251,11 @@ public static DatabaseCreateProperties fromJson(JsonReader jsonReader) throws IO
} else if ("deferUpgrade".equals(fieldName)) {
deserializedDatabaseCreateProperties
.withDeferUpgrade(DeferUpgradeSetting.fromString(reader.getString()));
+ } else if ("notifyKeyspaceEvents".equals(fieldName)) {
+ deserializedDatabaseCreateProperties.withNotifyKeyspaceEvents(reader.getString());
} else if ("accessKeysAuthentication".equals(fieldName)) {
- deserializedDatabaseCreateProperties
- .withAccessKeysAuthentication(AccessKeysAuthentication.fromString(reader.getString()));
+ deserializedDatabaseCreateProperties.accessKeysAuthentication
+ = AccessKeysAuthentication.fromString(reader.getString());
} else {
reader.skipChildren();
}
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 3166368a0c67..f6f00d2e014c 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.fluent.models;
@@ -107,6 +107,31 @@ public String id() {
return this.id;
}
+ /**
+ * 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. Default is Disabled.
+ *
+ * @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. Default is Disabled.
+ *
+ * @param accessKeysAuthentication the accessKeysAuthentication value to set.
+ * @return the DatabaseInner object itself.
+ */
+ public DatabaseInner withAccessKeysAuthentication(AccessKeysAuthentication accessKeysAuthentication) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DatabaseCreateProperties();
+ }
+ this.innerProperties().withAccessKeysAuthentication(accessKeysAuthentication);
+ return this;
+ }
+
/**
* Get the clientProtocol property: Specifies whether redis clients can connect using TLS-encrypted or plaintext
* redis protocols. Default is TLS-encrypted.
@@ -331,41 +356,34 @@ public DatabaseInner withDeferUpgrade(DeferUpgradeSetting deferUpgrade) {
}
/**
- * 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.
+ * Get the notifyKeyspaceEvents property: Specifies which keyspace events should trigger notifications. Default is
+ * an empty string, meaning this feature is disabled. When enabled, at least 'K' (keyspace events) or 'E' (keyevent
+ * events) must be present. For example, 'AKE' enables all standard events. See
+ * https://redis.io/docs/latest/develop/use/keyspace-notifications/ for the complete list of event types.
*
- * @return the accessKeysAuthentication value.
+ * @return the notifyKeyspaceEvents value.
*/
- public AccessKeysAuthentication accessKeysAuthentication() {
- return this.innerProperties() == null ? null : this.innerProperties().accessKeysAuthentication();
+ public String notifyKeyspaceEvents() {
+ return this.innerProperties() == null ? null : this.innerProperties().notifyKeyspaceEvents();
}
/**
- * 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.
+ * Set the notifyKeyspaceEvents property: Specifies which keyspace events should trigger notifications. Default is
+ * an empty string, meaning this feature is disabled. When enabled, at least 'K' (keyspace events) or 'E' (keyevent
+ * events) must be present. For example, 'AKE' enables all standard events. See
+ * https://redis.io/docs/latest/develop/use/keyspace-notifications/ for the complete list of event types.
*
- * @param accessKeysAuthentication the accessKeysAuthentication value to set.
+ * @param notifyKeyspaceEvents the notifyKeyspaceEvents value to set.
* @return the DatabaseInner object itself.
*/
- public DatabaseInner withAccessKeysAuthentication(AccessKeysAuthentication accessKeysAuthentication) {
+ public DatabaseInner withNotifyKeyspaceEvents(String notifyKeyspaceEvents) {
if (this.innerProperties() == null) {
this.innerProperties = new DatabaseCreateProperties();
}
- this.innerProperties().withAccessKeysAuthentication(accessKeysAuthentication);
+ this.innerProperties().withNotifyKeyspaceEvents(notifyKeyspaceEvents);
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/DatabaseUpdateProperties.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/DatabaseUpdateProperties.java
index 1238bcd80c10..769a0a597189 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/DatabaseUpdateProperties.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/DatabaseUpdateProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.fluent.models;
@@ -23,12 +23,16 @@
import java.util.List;
/**
- * Redis Enterprise database update properties
- *
* Properties for updating Redis Enterprise databases.
*/
@Fluent
public final class DatabaseUpdateProperties extends DatabaseCommonProperties {
+ /*
+ * This property can be Enabled/Disabled to allow or deny access with the current access keys. Can be updated even
+ * after database is created. Default is Disabled.
+ */
+ private AccessKeysAuthentication accessKeysAuthentication;
+
/*
* Version of Redis the database is running on, e.g. '6.0'
*/
@@ -50,6 +54,28 @@ public final class DatabaseUpdateProperties extends DatabaseCommonProperties {
public DatabaseUpdateProperties() {
}
+ /**
+ * 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. Default is Disabled.
+ *
+ * @return the accessKeysAuthentication value.
+ */
+ public AccessKeysAuthentication accessKeysAuthentication() {
+ return this.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. Default is Disabled.
+ *
+ * @param accessKeysAuthentication the accessKeysAuthentication value to set.
+ * @return the DatabaseUpdateProperties object itself.
+ */
+ public DatabaseUpdateProperties withAccessKeysAuthentication(AccessKeysAuthentication accessKeysAuthentication) {
+ this.accessKeysAuthentication = accessKeysAuthentication;
+ return this;
+ }
+
/**
* Get the redisVersion property: Version of Redis the database is running on, e.g. '6.0'.
*
@@ -156,29 +182,11 @@ public DatabaseUpdateProperties withDeferUpgrade(DeferUpgradeSetting deferUpgrad
* {@inheritDoc}
*/
@Override
- public DatabaseUpdateProperties withAccessKeysAuthentication(AccessKeysAuthentication accessKeysAuthentication) {
- super.withAccessKeysAuthentication(accessKeysAuthentication);
+ public DatabaseUpdateProperties withNotifyKeyspaceEvents(String notifyKeyspaceEvents) {
+ super.withNotifyKeyspaceEvents(notifyKeyspaceEvents);
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- @Override
- public void validate() {
- if (persistence() != null) {
- persistence().validate();
- }
- if (modules() != null) {
- modules().forEach(e -> e.validate());
- }
- if (geoReplication() != null) {
- geoReplication().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
@@ -194,8 +202,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeArrayField("modules", modules(), (writer, element) -> writer.writeJson(element));
jsonWriter.writeJsonField("geoReplication", geoReplication());
jsonWriter.writeStringField("deferUpgrade", deferUpgrade() == null ? null : deferUpgrade().toString());
+ jsonWriter.writeStringField("notifyKeyspaceEvents", notifyKeyspaceEvents());
jsonWriter.writeStringField("accessKeysAuthentication",
- accessKeysAuthentication() == null ? null : accessKeysAuthentication().toString());
+ this.accessKeysAuthentication == null ? null : this.accessKeysAuthentication.toString());
return jsonWriter.writeEndObject();
}
@@ -242,9 +251,11 @@ public static DatabaseUpdateProperties fromJson(JsonReader jsonReader) throws IO
} else if ("deferUpgrade".equals(fieldName)) {
deserializedDatabaseUpdateProperties
.withDeferUpgrade(DeferUpgradeSetting.fromString(reader.getString()));
+ } else if ("notifyKeyspaceEvents".equals(fieldName)) {
+ deserializedDatabaseUpdateProperties.withNotifyKeyspaceEvents(reader.getString());
} else if ("accessKeysAuthentication".equals(fieldName)) {
- deserializedDatabaseUpdateProperties
- .withAccessKeysAuthentication(AccessKeysAuthentication.fromString(reader.getString()));
+ deserializedDatabaseUpdateProperties.accessKeysAuthentication
+ = AccessKeysAuthentication.fromString(reader.getString());
} else {
reader.skipChildren();
}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/MigrationInner.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/MigrationInner.java
new file mode 100644
index 000000000000..270c11f47f6a
--- /dev/null
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/MigrationInner.java
@@ -0,0 +1,155 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.redisenterprise.fluent.models;
+
+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.MigrationProperties;
+import java.io.IOException;
+
+/**
+ * Describes the current migration operation on a Redis Enterprise cluster.
+ */
+@Fluent
+public final class MigrationInner extends ProxyResource {
+ /*
+ * Properties of the migration operation.
+ */
+ private MigrationProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * 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 MigrationInner class.
+ */
+ public MigrationInner() {
+ }
+
+ /**
+ * Get the properties property: Properties of the migration operation.
+ *
+ * @return the properties value.
+ */
+ public MigrationProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Properties of the migration operation.
+ *
+ * @param properties the properties value to set.
+ * @return the MigrationInner object itself.
+ */
+ public MigrationInner withProperties(MigrationProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * 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.
+ *
+ * @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;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of MigrationInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of MigrationInner 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 MigrationInner.
+ */
+ public static MigrationInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ MigrationInner deserializedMigrationInner = new MigrationInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedMigrationInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedMigrationInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedMigrationInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedMigrationInner.properties = MigrationProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedMigrationInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedMigrationInner;
+ });
+ }
+}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/MigrationValidationResponseInner.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/MigrationValidationResponseInner.java
new file mode 100644
index 000000000000..6c1811582291
--- /dev/null
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/MigrationValidationResponseInner.java
@@ -0,0 +1,117 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.redisenterprise.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+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.MigrationValidationError;
+import com.azure.resourcemanager.redisenterprise.models.MigrationValidationWarning;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * Response for migration validation operation.
+ */
+@Immutable
+public final class MigrationValidationResponseInner implements JsonSerializable {
+ /*
+ * Indicates whether the migration validation passed.
+ */
+ private boolean isValid;
+
+ /*
+ * List of validation errors that prevent migration.
+ */
+ private List errors;
+
+ /*
+ * List of validation warnings that may impact migration.
+ */
+ private List warnings;
+
+ /**
+ * Creates an instance of MigrationValidationResponseInner class.
+ */
+ private MigrationValidationResponseInner() {
+ }
+
+ /**
+ * Get the isValid property: Indicates whether the migration validation passed.
+ *
+ * @return the isValid value.
+ */
+ public boolean isValid() {
+ return this.isValid;
+ }
+
+ /**
+ * Get the errors property: List of validation errors that prevent migration.
+ *
+ * @return the errors value.
+ */
+ public List errors() {
+ return this.errors;
+ }
+
+ /**
+ * Get the warnings property: List of validation warnings that may impact migration.
+ *
+ * @return the warnings value.
+ */
+ public List warnings() {
+ return this.warnings;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeBooleanField("isValid", this.isValid);
+ jsonWriter.writeArrayField("errors", this.errors, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("warnings", this.warnings, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of MigrationValidationResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of MigrationValidationResponseInner 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 MigrationValidationResponseInner.
+ */
+ public static MigrationValidationResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ MigrationValidationResponseInner deserializedMigrationValidationResponseInner
+ = new MigrationValidationResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("isValid".equals(fieldName)) {
+ deserializedMigrationValidationResponseInner.isValid = reader.getBoolean();
+ } else if ("errors".equals(fieldName)) {
+ List errors
+ = reader.readArray(reader1 -> MigrationValidationError.fromJson(reader1));
+ deserializedMigrationValidationResponseInner.errors = errors;
+ } else if ("warnings".equals(fieldName)) {
+ List warnings
+ = reader.readArray(reader1 -> MigrationValidationWarning.fromJson(reader1));
+ deserializedMigrationValidationResponseInner.warnings = warnings;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedMigrationValidationResponseInner;
+ });
+ }
+}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/OperationInner.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/OperationInner.java
index 46b7a132eafc..02027d31111a 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/OperationInner.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/OperationInner.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -19,7 +19,7 @@
*
* Details of a REST API operation, returned from the Resource Provider Operations API.
*/
-@Fluent
+@Immutable
public final class OperationInner implements JsonSerializable {
/*
* The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
@@ -28,8 +28,8 @@ public final class OperationInner implements JsonSerializable {
private String name;
/*
- * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for
- * ARM/control-plane operations.
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure
+ * Resource Manager/control-plane operations.
*/
private Boolean isDataAction;
@@ -45,14 +45,14 @@ public final class OperationInner implements JsonSerializable {
private Origin origin;
/*
- * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
+ * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
*/
private ActionType actionType;
/**
* Creates an instance of OperationInner class.
*/
- public OperationInner() {
+ private OperationInner() {
}
/**
@@ -67,7 +67,7 @@ public String name() {
/**
* Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane
- * operations and "false" for ARM/control-plane operations.
+ * operations and "false" for Azure Resource Manager/control-plane operations.
*
* @return the isDataAction value.
*/
@@ -84,17 +84,6 @@ public OperationDisplay display() {
return this.display;
}
- /**
- * Set the display property: Localized display information for this particular operation.
- *
- * @param display the display value to set.
- * @return the OperationInner object itself.
- */
- public OperationInner withDisplay(OperationDisplay display) {
- this.display = display;
- return this;
- }
-
/**
* Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and
* audit logs UX. Default value is "user,system".
@@ -106,8 +95,8 @@ public Origin origin() {
}
/**
- * Get the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal
- * only APIs.
+ * Get the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are
+ * for internal only APIs.
*
* @return the actionType value.
*/
@@ -115,17 +104,6 @@ public ActionType actionType() {
return this.actionType;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (display() != null) {
- display().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/OperationStatusInner.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/OperationStatusInner.java
index a8c0055d5b0d..d26165afe40e 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/OperationStatusInner.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/OperationStatusInner.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.core.management.exception.ManagementError;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
@@ -15,7 +15,7 @@
/**
* The status of a long-running operation.
*/
-@Fluent
+@Immutable
public final class OperationStatusInner implements JsonSerializable {
/*
* The operation's unique id.
@@ -50,7 +50,7 @@ public final class OperationStatusInner implements JsonSerializable groupIds() {
+ return this.innerProperties() == null ? null : this.innerProperties().groupIds();
+ }
+
+ /**
+ * Get the privateEndpoint property: The private endpoint resource.
*
* @return the privateEndpoint value.
*/
@@ -94,7 +119,7 @@ public PrivateEndpoint privateEndpoint() {
}
/**
- * Set the privateEndpoint property: The resource of private end point.
+ * Set the privateEndpoint property: The private endpoint resource.
*
* @param privateEndpoint the privateEndpoint value to set.
* @return the PrivateEndpointConnectionInner object itself.
@@ -142,17 +167,6 @@ public PrivateEndpointConnectionProvisioningState provisioningState() {
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
@@ -189,6 +203,8 @@ public static PrivateEndpointConnectionInner fromJson(JsonReader jsonReader) thr
} else if ("properties".equals(fieldName)) {
deserializedPrivateEndpointConnectionInner.innerProperties
= PrivateEndpointConnectionProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/PrivateEndpointConnectionProperties.java
index 25f7f204421c..61205e1e3133 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/PrivateEndpointConnectionProperties.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/PrivateEndpointConnectionProperties.java
@@ -1,11 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec 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;
@@ -14,15 +13,21 @@
import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointConnectionProvisioningState;
import com.azure.resourcemanager.redisenterprise.models.PrivateLinkServiceConnectionState;
import java.io.IOException;
+import java.util.List;
/**
- * Properties of the PrivateEndpointConnectProperties.
+ * Properties of the private endpoint connection.
*/
@Fluent
public final class PrivateEndpointConnectionProperties
implements JsonSerializable {
/*
- * The resource of private end point.
+ * The group ids for the private endpoint resource.
+ */
+ private List groupIds;
+
+ /*
+ * The private endpoint resource.
*/
private PrivateEndpoint privateEndpoint;
@@ -43,7 +48,16 @@ public PrivateEndpointConnectionProperties() {
}
/**
- * Get the privateEndpoint property: The resource of private end point.
+ * Get the groupIds property: The group ids for the private endpoint resource.
+ *
+ * @return the groupIds value.
+ */
+ public List groupIds() {
+ return this.groupIds;
+ }
+
+ /**
+ * Get the privateEndpoint property: The private endpoint resource.
*
* @return the privateEndpoint value.
*/
@@ -52,7 +66,7 @@ public PrivateEndpoint privateEndpoint() {
}
/**
- * Set the privateEndpoint property: The resource of private end point.
+ * Set the privateEndpoint property: The private endpoint resource.
*
* @param privateEndpoint the privateEndpoint value to set.
* @return the PrivateEndpointConnectionProperties object itself.
@@ -94,26 +108,6 @@ public PrivateEndpointConnectionProvisioningState provisioningState() {
return this.provisioningState;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (privateEndpoint() != null) {
- privateEndpoint().validate();
- }
- if (privateLinkServiceConnectionState() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property privateLinkServiceConnectionState in model PrivateEndpointConnectionProperties"));
- } else {
- privateLinkServiceConnectionState().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionProperties.class);
-
/**
* {@inheritDoc}
*/
@@ -145,6 +139,9 @@ public static PrivateEndpointConnectionProperties fromJson(JsonReader jsonReader
if ("privateLinkServiceConnectionState".equals(fieldName)) {
deserializedPrivateEndpointConnectionProperties.privateLinkServiceConnectionState
= PrivateLinkServiceConnectionState.fromJson(reader);
+ } else if ("groupIds".equals(fieldName)) {
+ List groupIds = reader.readArray(reader1 -> reader1.getString());
+ deserializedPrivateEndpointConnectionProperties.groupIds = groupIds;
} else if ("privateEndpoint".equals(fieldName)) {
deserializedPrivateEndpointConnectionProperties.privateEndpoint = PrivateEndpoint.fromJson(reader);
} else if ("provisioningState".equals(fieldName)) {
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/PrivateLinkResourceInner.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/PrivateLinkResourceInner.java
index 341751b991d9..4b6f40e6f1b7 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/PrivateLinkResourceInner.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/PrivateLinkResourceInner.java
@@ -1,11 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
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;
@@ -15,13 +16,18 @@
/**
* A private link resource.
*/
-@Fluent
+@Immutable
public final class PrivateLinkResourceInner extends ProxyResource {
/*
* Resource properties.
*/
private PrivateLinkResourceProperties innerProperties;
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
/*
* The type of the resource.
*/
@@ -40,7 +46,7 @@ public final class PrivateLinkResourceInner extends ProxyResource {
/**
* Creates an instance of PrivateLinkResourceInner class.
*/
- public PrivateLinkResourceInner() {
+ private PrivateLinkResourceInner() {
}
/**
@@ -52,6 +58,15 @@ private PrivateLinkResourceProperties 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.
*
@@ -101,7 +116,7 @@ public List requiredMembers() {
}
/**
- * Get the requiredZoneNames property: The private link resource Private link DNS zone name.
+ * Get the requiredZoneNames property: The private link resource private link DNS zone name.
*
* @return the requiredZoneNames value.
*/
@@ -109,31 +124,6 @@ public List requiredZoneNames() {
return this.innerProperties() == null ? null : this.innerProperties().requiredZoneNames();
}
- /**
- * Set the requiredZoneNames property: The private link resource Private link DNS zone name.
- *
- * @param requiredZoneNames the requiredZoneNames value to set.
- * @return the PrivateLinkResourceInner object itself.
- */
- public PrivateLinkResourceInner withRequiredZoneNames(List requiredZoneNames) {
- if (this.innerProperties() == null) {
- this.innerProperties = new PrivateLinkResourceProperties();
- }
- this.innerProperties().withRequiredZoneNames(requiredZoneNames);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
@@ -169,6 +159,8 @@ public static PrivateLinkResourceInner fromJson(JsonReader jsonReader) throws IO
} else if ("properties".equals(fieldName)) {
deserializedPrivateLinkResourceInner.innerProperties
= PrivateLinkResourceProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedPrivateLinkResourceInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/PrivateLinkResourceProperties.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/PrivateLinkResourceProperties.java
index a2c3bc6b562c..b546d621c37a 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/PrivateLinkResourceProperties.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/PrivateLinkResourceProperties.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -15,7 +15,7 @@
/**
* Properties of a private link resource.
*/
-@Fluent
+@Immutable
public final class PrivateLinkResourceProperties implements JsonSerializable {
/*
* The private link resource group id.
@@ -28,14 +28,14 @@ public final class PrivateLinkResourceProperties implements JsonSerializable requiredMembers;
/*
- * The private link resource Private link DNS zone name.
+ * The private link resource private link DNS zone name.
*/
private List requiredZoneNames;
/**
* Creates an instance of PrivateLinkResourceProperties class.
*/
- public PrivateLinkResourceProperties() {
+ private PrivateLinkResourceProperties() {
}
/**
@@ -57,7 +57,7 @@ public List requiredMembers() {
}
/**
- * Get the requiredZoneNames property: The private link resource Private link DNS zone name.
+ * Get the requiredZoneNames property: The private link resource private link DNS zone name.
*
* @return the requiredZoneNames value.
*/
@@ -65,25 +65,6 @@ public List requiredZoneNames() {
return this.requiredZoneNames;
}
- /**
- * Set the requiredZoneNames property: The private link resource Private link DNS zone name.
- *
- * @param requiredZoneNames the requiredZoneNames value to set.
- * @return the PrivateLinkResourceProperties object itself.
- */
- public PrivateLinkResourceProperties withRequiredZoneNames(List requiredZoneNames) {
- this.requiredZoneNames = requiredZoneNames;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/SkuDetailsListInner.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/SkuDetailsListInner.java
index b8d0af654f2b..dec7e3c6099d 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/SkuDetailsListInner.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/SkuDetailsListInner.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -16,7 +16,7 @@
/**
* The response of a listSkusForScaling operation.
*/
-@Fluent
+@Immutable
public final class SkuDetailsListInner implements JsonSerializable {
/*
* List of SKUS available to scale up or scale down.
@@ -26,7 +26,7 @@ public final class SkuDetailsListInner implements JsonSerializable skus() {
return this.skus;
}
- /**
- * Set the skus property: List of SKUS available to scale up or scale down.
- *
- * @param skus the skus value to set.
- * @return the SkuDetailsListInner object itself.
- */
- public SkuDetailsListInner withSkus(List skus) {
- this.skus = skus;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (skus() != null) {
- skus().forEach(e -> e.validate());
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/package-info.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/package-info.java
index c35ee78e5751..795b69aa40b7 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/package-info.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/package-info.java
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
/**
- * Package containing the inner data models for RedisEnterpriseManagementClient.
+ * Package containing the inner data models for RedisEnterprise.
* REST API for managing Redis Enterprise resources in Azure.
*/
package com.azure.resourcemanager.redisenterprise.fluent.models;
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/package-info.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/package-info.java
index b7f1c60d0a1e..a4649d7f7e05 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/package-info.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/package-info.java
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
/**
- * Package containing the service clients for RedisEnterpriseManagementClient.
+ * Package containing the service clients for RedisEnterprise.
* REST API for managing Redis Enterprise resources in Azure.
*/
package com.azure.resourcemanager.redisenterprise.fluent;
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/AccessKeysImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/AccessKeysImpl.java
index 461b023af555..a6682ece1d03 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/AccessKeysImpl.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/AccessKeysImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.implementation;
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
index f985bc88dca0..cb2390e6c766 100644
--- 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
@@ -1,9 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.implementation;
+import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.redisenterprise.fluent.models.AccessPolicyAssignmentInner;
import com.azure.resourcemanager.redisenterprise.models.AccessPolicyAssignment;
@@ -28,6 +29,10 @@ public String type() {
return this.innerModel().type();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public ProvisioningState provisioningState() {
return this.innerModel().provisioningState();
}
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
index a2711db000b4..9daa09372d62 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.implementation;
@@ -30,12 +30,11 @@
import com.azure.core.util.BinaryData;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
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 com.azure.resourcemanager.redisenterprise.implementation.models.AccessPolicyAssignmentList;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -69,84 +68,78 @@ public final class AccessPolicyAssignmentsClientImpl implements AccessPolicyAssi
* The interface defining all the services for RedisEnterpriseManagementClientAccessPolicyAssignments to be used by
* the proxy service to perform REST calls.
*/
- @Host("{$host}")
+ @Host("{endpoint}")
@ServiceInterface(name = "RedisEnterpriseManagementClientAccessPolicyAssignments")
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 })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createUpdate(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
+ Mono> get(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @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);
+ @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
- @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}")
- @ExpectedResponses({ 200, 201 })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response createUpdateSync(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
+ Response getSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @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);
+ @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 })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}")
+ @ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
+ Mono>> createUpdate(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @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);
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") AccessPolicyAssignmentInner parameters, Context context);
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}")
- @ExpectedResponses({ 200 })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}")
+ @ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response getSync(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
+ Response createUpdateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @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);
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") AccessPolicyAssignmentInner parameters, Context context);
- @Headers({ "Content-Type: application/json" })
+ @Headers({ "Accept: application/json;q=0.9", "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,
+ Mono>> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @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);
+ @PathParam("accessPolicyAssignmentName") String accessPolicyAssignmentName, Context context);
- @Headers({ "Content-Type: application/json" })
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}")
@ExpectedResponses({ 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response deleteSync(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
+ Response deleteSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @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);
+ @PathParam("accessPolicyAssignmentName") String accessPolicyAssignmentName, 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,
+ Mono> list(@HostParam("endpoint") 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);
@@ -155,7 +148,7 @@ Mono> list(@HostParam("$host") String endpo
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response listSync(@HostParam("$host") String endpoint,
+ Response listSync(@HostParam("endpoint") 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);
@@ -165,7 +158,7 @@ Response listSync(@HostParam("$host") String endpoin
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@@ -173,10 +166,97 @@ Mono> listNext(
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Response listNextSync(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, 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. Name must be 1-60 characters long. Allowed
+ * characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens.
+ * @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) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, clusterName, databaseName,
+ accessPolicyAssignmentName, 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. Name must be 1-60 characters long. Allowed
+ * characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens.
+ * @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. Name must be 1-60 characters long. Allowed
+ * characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens.
+ * @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) {
+ final String accept = "application/json";
+ return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, 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. Name must be 1-60 characters long. Allowed
+ * characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens.
+ * @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();
+ }
+
/**
* Creates/Updates a particular access policy assignment for a database.
*
@@ -195,38 +275,12 @@ Response listNextSync(
@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 contentType = "application/json";
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))
+ .withContext(context -> service.createUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, clusterName, databaseName,
+ accessPolicyAssignmentName, contentType, accept, parameters, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -247,43 +301,11 @@ private Mono>> createUpdateWithResponseAsync(String re
@ServiceMethod(returns = ReturnType.SINGLE)
private Response createUpdateWithResponse(String resourceGroupName, String clusterName,
String databaseName, String accessPolicyAssignmentName, AccessPolicyAssignmentInner parameters) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (clusterName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
- }
- if (databaseName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter databaseName is required and cannot be null."));
- }
- if (accessPolicyAssignmentName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter accessPolicyAssignmentName is required and cannot be null."));
- }
- if (parameters == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
+ final String contentType = "application/json";
final String accept = "application/json";
- return service.createUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- clusterName, databaseName, accessPolicyAssignmentName, this.client.getApiVersion(), parameters, accept,
- Context.NONE);
+ return service.createUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName,
+ contentType, accept, parameters, Context.NONE);
}
/**
@@ -305,43 +327,11 @@ private Response createUpdateWithResponse(String resourceGroupName,
private Response createUpdateWithResponse(String resourceGroupName, String clusterName,
String databaseName, String accessPolicyAssignmentName, AccessPolicyAssignmentInner parameters,
Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (clusterName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
- }
- if (databaseName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter databaseName is required and cannot be null."));
- }
- if (accessPolicyAssignmentName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter accessPolicyAssignmentName is required and cannot be null."));
- }
- if (parameters == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
+ final String contentType = "application/json";
final String accept = "application/json";
- return service.createUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- clusterName, databaseName, accessPolicyAssignmentName, this.client.getApiVersion(), parameters, accept,
- context);
+ return service.createUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName,
+ contentType, accept, parameters, context);
}
/**
@@ -486,142 +476,6 @@ public AccessPolicyAssignmentInner createUpdate(String resourceGroupName, String
context).getFinalResult();
}
- /**
- * 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. Name must be 1-60 characters long. Allowed
- * characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens.
- * @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. Name must be 1-60 characters long. Allowed
- * characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens.
- * @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. Name must be 1-60 characters long. Allowed
- * characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens.
- * @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) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (clusterName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
- }
- if (databaseName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter databaseName is required and cannot be null."));
- }
- if (accessPolicyAssignmentName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter accessPolicyAssignmentName is required and cannot be null."));
- }
- final String accept = "application/json";
- return service.getSync(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. Name must be 1-60 characters long. Allowed
- * characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens.
- * @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.
*
@@ -638,33 +492,10 @@ public AccessPolicyAssignmentInner get(String resourceGroupName, String clusterN
@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))
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, clusterName, databaseName,
+ accessPolicyAssignmentName, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -684,36 +515,9 @@ private Mono>> deleteWithResponseAsync(String resource
@ServiceMethod(returns = ReturnType.SINGLE)
private Response deleteWithResponse(String resourceGroupName, String clusterName, String databaseName,
String accessPolicyAssignmentName) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (clusterName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
- }
- if (databaseName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter databaseName is required and cannot be null."));
- }
- if (accessPolicyAssignmentName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter accessPolicyAssignmentName is required and cannot be null."));
- }
- final String accept = "application/json";
- return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- clusterName, databaseName, accessPolicyAssignmentName, this.client.getApiVersion(), accept, Context.NONE);
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName,
+ Context.NONE);
}
/**
@@ -733,36 +537,9 @@ private Response deleteWithResponse(String resourceGroupName, String
@ServiceMethod(returns = ReturnType.SINGLE)
private Response deleteWithResponse(String resourceGroupName, String clusterName, String databaseName,
String accessPolicyAssignmentName, Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (clusterName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
- }
- if (databaseName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter databaseName is required and cannot be null."));
- }
- if (accessPolicyAssignmentName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter accessPolicyAssignmentName is required and cannot be null."));
- }
- final String accept = "application/json";
- return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- clusterName, databaseName, accessPolicyAssignmentName, this.client.getApiVersion(), accept, context);
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName,
+ context);
}
/**
@@ -902,24 +679,6 @@ public void delete(String resourceGroupName, String clusterName, String database
@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(),
@@ -963,28 +722,6 @@ private PagedFlux listAsync(String resourceGroupNam
@ServiceMethod(returns = ReturnType.SINGLE)
private PagedResponse listSinglePage(String resourceGroupName, String clusterName,
String databaseName) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (clusterName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
- }
- if (databaseName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter databaseName is required and cannot be null."));
- }
final String accept = "application/json";
Response res
= service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
@@ -1009,28 +746,6 @@ private PagedResponse listSinglePage(String resourc
@ServiceMethod(returns = ReturnType.SINGLE)
private PagedResponse listSinglePage(String resourceGroupName, String clusterName,
String databaseName, Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (clusterName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
- }
- if (databaseName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter databaseName is required and cannot be null."));
- }
final String accept = "application/json";
Response res
= service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
@@ -1089,13 +804,6 @@ public PagedIterable list(String resourceGroupName,
*/
@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(),
@@ -1114,15 +822,6 @@ private Mono> listNextSinglePageAsync
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private PagedResponse listNextSinglePage(String nextLink) {
- if (nextLink == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
final String accept = "application/json";
Response res
= service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
@@ -1142,21 +841,10 @@ private PagedResponse listNextSinglePage(String nex
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private PagedResponse listNextSinglePage(String nextLink, Context context) {
- if (nextLink == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
final String accept = "application/json";
Response res
= service.listNextSync(nextLink, this.client.getEndpoint(), accept, context);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
res.getValue().nextLink(), null);
}
-
- private static final ClientLogger LOGGER = new ClientLogger(AccessPolicyAssignmentsClientImpl.class);
}
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
index 175841a1636e..9b6f380f3ef7 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.implementation;
@@ -31,12 +31,8 @@ public Response getWithResponse(String resourceGroupName
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;
- }
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new AccessPolicyAssignmentImpl(inner.getValue(), this.manager()));
}
public AccessPolicyAssignment get(String resourceGroupName, String clusterName, String databaseName,
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 2d5f40b8da58..7e3ce99eb837 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
@@ -1,11 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.implementation;
import com.azure.core.http.rest.Response;
import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.redisenterprise.fluent.models.ClusterInner;
import com.azure.resourcemanager.redisenterprise.fluent.models.PrivateEndpointConnectionInner;
@@ -14,6 +15,7 @@
import com.azure.resourcemanager.redisenterprise.models.ClusterUpdate;
import com.azure.resourcemanager.redisenterprise.models.HighAvailability;
import com.azure.resourcemanager.redisenterprise.models.Kind;
+import com.azure.resourcemanager.redisenterprise.models.MaintenanceConfiguration;
import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentity;
import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointConnection;
import com.azure.resourcemanager.redisenterprise.models.ProvisioningState;
@@ -79,6 +81,10 @@ public ManagedServiceIdentity identity() {
return this.innerModel().identity();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public PublicNetworkAccess publicNetworkAccess() {
return this.innerModel().publicNetworkAccess();
}
@@ -95,6 +101,10 @@ public ClusterPropertiesEncryption encryption() {
return this.innerModel().encryption();
}
+ public MaintenanceConfiguration maintenanceConfiguration() {
+ return this.innerModel().maintenanceConfiguration();
+ }
+
public String hostname() {
return this.innerModel().hostname();
}
@@ -126,6 +136,10 @@ public List privateEndpointConnections() {
}
}
+ public String migratedEndpoint() {
+ return this.innerModel().migratedEndpoint();
+ }
+
public Region region() {
return Region.fromName(this.regionName());
}
@@ -314,6 +328,16 @@ public ClusterImpl withEncryption(ClusterPropertiesEncryption encryption) {
}
}
+ public ClusterImpl withMaintenanceConfiguration(MaintenanceConfiguration maintenanceConfiguration) {
+ if (isInCreateMode()) {
+ this.innerModel().withMaintenanceConfiguration(maintenanceConfiguration);
+ return this;
+ } else {
+ this.updateParameters.withMaintenanceConfiguration(maintenanceConfiguration);
+ return this;
+ }
+ }
+
private boolean isInCreateMode() {
return this.innerModel() == null || this.innerModel().id() == null;
}
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 a8ce62043694..2151d9e4b9e2 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.implementation;
@@ -51,6 +51,10 @@ public SystemData systemData() {
return this.innerModel().systemData();
}
+ public AccessKeysAuthentication accessKeysAuthentication() {
+ return this.innerModel().accessKeysAuthentication();
+ }
+
public Protocol clientProtocol() {
return this.innerModel().clientProtocol();
}
@@ -100,8 +104,8 @@ public DeferUpgradeSetting deferUpgrade() {
return this.innerModel().deferUpgrade();
}
- public AccessKeysAuthentication accessKeysAuthentication() {
- return this.innerModel().accessKeysAuthentication();
+ public String notifyKeyspaceEvents() {
+ return this.innerModel().notifyKeyspaceEvents();
}
public String resourceGroupName() {
@@ -261,6 +265,16 @@ public void upgradeDBRedisVersion(Context context) {
serviceManager.databases().upgradeDBRedisVersion(resourceGroupName, clusterName, databaseName, context);
}
+ public DatabaseImpl withAccessKeysAuthentication(AccessKeysAuthentication accessKeysAuthentication) {
+ if (isInCreateMode()) {
+ this.innerModel().withAccessKeysAuthentication(accessKeysAuthentication);
+ return this;
+ } else {
+ this.updateParameters.withAccessKeysAuthentication(accessKeysAuthentication);
+ return this;
+ }
+ }
+
public DatabaseImpl withClientProtocol(Protocol clientProtocol) {
if (isInCreateMode()) {
this.innerModel().withClientProtocol(clientProtocol);
@@ -326,12 +340,12 @@ public DatabaseImpl withDeferUpgrade(DeferUpgradeSetting deferUpgrade) {
}
}
- public DatabaseImpl withAccessKeysAuthentication(AccessKeysAuthentication accessKeysAuthentication) {
+ public DatabaseImpl withNotifyKeyspaceEvents(String notifyKeyspaceEvents) {
if (isInCreateMode()) {
- this.innerModel().withAccessKeysAuthentication(accessKeysAuthentication);
+ this.innerModel().withNotifyKeyspaceEvents(notifyKeyspaceEvents);
return this;
} else {
- this.updateParameters.withAccessKeysAuthentication(accessKeysAuthentication);
+ this.updateParameters.withNotifyKeyspaceEvents(notifyKeyspaceEvents);
return this;
}
}
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 e44d49fb1991..8c0752098899 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.redisenterprise.implementation;
@@ -32,13 +32,12 @@
import com.azure.core.util.BinaryData;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.redisenterprise.fluent.DatabasesClient;
import com.azure.resourcemanager.redisenterprise.fluent.models.AccessKeysInner;
import com.azure.resourcemanager.redisenterprise.fluent.models.DatabaseInner;
-import com.azure.resourcemanager.redisenterprise.models.DatabaseList;
+import com.azure.resourcemanager.redisenterprise.implementation.models.DatabaseList;
import com.azure.resourcemanager.redisenterprise.models.DatabaseUpdate;
import com.azure.resourcemanager.redisenterprise.models.ExportClusterParameters;
import com.azure.resourcemanager.redisenterprise.models.FlushParameters;
@@ -79,455 +78,351 @@ public final class DatabasesClientImpl implements DatabasesClient {
* The interface defining all the services for RedisEnterpriseManagementClientDatabases to be used by the proxy
* service to perform REST calls.
*/
- @Host("{$host}")
+ @Host("{endpoint}")
@ServiceInterface(name = "RedisEnterpriseManagementClientDatabases")
public interface DatabasesService {
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByCluster(@HostParam("$host") String endpoint,
+ Mono> get(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
- @HeaderParam("Accept") String accept, Context context);
+ @PathParam("databaseName") String databaseName, @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response listByClusterSync(@HostParam("$host") String endpoint,
+ Response getSync(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
- @HeaderParam("Accept") String accept, Context context);
+ @PathParam("databaseName") String databaseName, @HeaderParam("Accept") String accept, Context context);
- @Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}")
@ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> create(@HostParam("$host") String endpoint,
+ Mono>> create(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
- @PathParam("databaseName") String databaseName, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId, @BodyParam("application/json") DatabaseInner parameters,
- @HeaderParam("Accept") String accept, Context context);
+ @PathParam("databaseName") String databaseName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") DatabaseInner parameters,
+ Context context);
- @Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}")
@ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response createSync(@HostParam("$host") String endpoint,
+ Response createSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
- @PathParam("databaseName") String databaseName, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId, @BodyParam("application/json") DatabaseInner parameters,
- @HeaderParam("Accept") String accept, Context context);
+ @PathParam("databaseName") String databaseName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") DatabaseInner parameters,
+ Context context);
- @Headers({ "Content-Type: application/json" })
@Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> update(@HostParam("$host") String endpoint,
+ Mono>> update(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
- @PathParam("databaseName") String databaseName, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @BodyParam("application/json") DatabaseUpdate parameters, @HeaderParam("Accept") String accept,
+ @PathParam("databaseName") String databaseName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") DatabaseUpdate parameters,
Context context);
- @Headers({ "Content-Type: application/json" })
@Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response updateSync(@HostParam("$host") String endpoint,
+ Response updateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
- @PathParam("databaseName") String databaseName, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @BodyParam("application/json") DatabaseUpdate parameters, @HeaderParam("Accept") String accept,
+ @PathParam("databaseName") String databaseName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") DatabaseUpdate parameters,
Context context);
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}")
- @ExpectedResponses({ 200 })
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}")
+ @ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(@HostParam("$host") String endpoint,
+ Mono>> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@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);
+ @PathParam("databaseName") String databaseName, Context context);
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}")
- @ExpectedResponses({ 200 })
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}")
+ @ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response getSync(@HostParam("$host") String endpoint,
+ Response deleteSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@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);
+ @PathParam("databaseName") String databaseName, Context context);
@Headers({ "Content-Type: application/json" })
- @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}")
- @ExpectedResponses({ 200, 202, 204 })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("$host") String endpoint,
+ Mono> listByCluster(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@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);
+ @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
- @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}")
- @ExpectedResponses({ 200, 202, 204 })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response deleteSync(@HostParam("$host") String endpoint,
+ Response listByClusterSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@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);
+ @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/listKeys")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listKeys(@HostParam("$host") String endpoint,
+ Mono> listKeys(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@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);
+ @PathParam("databaseName") String databaseName, @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/listKeys")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response listKeysSync(@HostParam("$host") String endpoint,
+ Response listKeysSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@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);
+ @PathParam("databaseName") String databaseName, @HeaderParam("Accept") String accept, Context context);
- @Headers({ "Content-Type: application/json" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/regenerateKey")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> regenerateKey(@HostParam("$host") String endpoint,
+ Mono>> regenerateKey(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
- @PathParam("databaseName") String databaseName, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @BodyParam("application/json") RegenerateKeyParameters parameters, @HeaderParam("Accept") String accept,
+ @PathParam("databaseName") String databaseName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") RegenerateKeyParameters parameters,
Context context);
- @Headers({ "Content-Type: application/json" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/regenerateKey")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response regenerateKeySync(@HostParam("$host") String endpoint,
+ Response regenerateKeySync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
- @PathParam("databaseName") String databaseName, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @BodyParam("application/json") RegenerateKeyParameters parameters, @HeaderParam("Accept") String accept,
+ @PathParam("databaseName") String databaseName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") RegenerateKeyParameters parameters,
Context context);
- @Headers({ "Content-Type: application/json" })
+ @Headers({ "Accept: application/json;q=0.9" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/import")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> importMethod(@HostParam("$host") String endpoint,
+ Mono>> importMethod(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
- @PathParam("databaseName") String databaseName, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @BodyParam("application/json") ImportClusterParameters parameters, @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam("databaseName") String databaseName, @HeaderParam("Content-Type") String contentType,
+ @BodyParam("application/json") ImportClusterParameters parameters, Context context);
- @Headers({ "Content-Type: application/json" })
+ @Headers({ "Accept: application/json;q=0.9" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/import")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response importMethodSync(@HostParam("$host") String endpoint,
+ Response importMethodSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
- @PathParam("databaseName") String databaseName, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @BodyParam("application/json") ImportClusterParameters parameters, @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam("databaseName") String databaseName, @HeaderParam("Content-Type") String contentType,
+ @BodyParam("application/json") ImportClusterParameters parameters, Context context);
- @Headers({ "Content-Type: application/json" })
+ @Headers({ "Accept: application/json;q=0.9" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/export")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> export(@HostParam("$host") String endpoint,
+ Mono>> export(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
- @PathParam("databaseName") String databaseName, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @BodyParam("application/json") ExportClusterParameters parameters, @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam("databaseName") String databaseName, @HeaderParam("Content-Type") String contentType,
+ @BodyParam("application/json") ExportClusterParameters parameters, Context context);
- @Headers({ "Content-Type: application/json" })
+ @Headers({ "Accept: application/json;q=0.9" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/export")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response exportSync(@HostParam("$host") String endpoint,
+ Response exportSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
- @PathParam("databaseName") String databaseName, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @BodyParam("application/json") ExportClusterParameters parameters, @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam("databaseName") String databaseName, @HeaderParam("Content-Type") String contentType,
+ @BodyParam("application/json") ExportClusterParameters parameters, Context context);
- @Headers({ "Content-Type: application/json" })
+ @Headers({ "Accept: application/json;q=0.9" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/forceUnlink")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> forceUnlink(@HostParam("$host") String endpoint,
+ Mono>> forceUnlink(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
- @PathParam("databaseName") String databaseName, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @BodyParam("application/json") ForceUnlinkParameters parameters, @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam("databaseName") String databaseName, @HeaderParam("Content-Type") String contentType,
+ @BodyParam("application/json") ForceUnlinkParameters parameters, Context context);
- @Headers({ "Content-Type: application/json" })
+ @Headers({ "Accept: application/json;q=0.9" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/forceUnlink")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response forceUnlinkSync(@HostParam("$host") String endpoint,
+ Response forceUnlinkSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
- @PathParam("databaseName") String databaseName, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @BodyParam("application/json") ForceUnlinkParameters parameters, @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam("databaseName") String databaseName, @HeaderParam("Content-Type") String contentType,
+ @BodyParam("application/json") ForceUnlinkParameters parameters, Context context);
- @Headers({ "Content-Type: application/json" })
+ @Headers({ "Accept: application/json;q=0.9" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/forceLinkToReplicationGroup")
@ExpectedResponses({ 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> forceLinkToReplicationGroup(@HostParam("$host") String endpoint,
+ Mono>> forceLinkToReplicationGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
- @PathParam("databaseName") String databaseName, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @BodyParam("application/json") ForceLinkParameters parameters, @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam("databaseName") String databaseName, @HeaderParam("Content-Type") String contentType,
+ @BodyParam("application/json") ForceLinkParameters parameters, Context context);
- @Headers({ "Content-Type: application/json" })
+ @Headers({ "Accept: application/json;q=0.9" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/forceLinkToReplicationGroup")
@ExpectedResponses({ 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response forceLinkToReplicationGroupSync(@HostParam("$host") String endpoint,
+ Response forceLinkToReplicationGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
- @PathParam("databaseName") String databaseName, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @BodyParam("application/json") ForceLinkParameters parameters, @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam("databaseName") String databaseName, @HeaderParam("Content-Type") String contentType,
+ @BodyParam("application/json") ForceLinkParameters parameters, Context context);
- @Headers({ "Content-Type: application/json" })
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/flush")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> flush(@HostParam("$host") String endpoint,
+ Mono>> flush(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
- @PathParam("databaseName") String databaseName, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @BodyParam("application/json") FlushParameters parameters, @HeaderParam("Accept") String accept,
+ @PathParam("databaseName") String databaseName, @BodyParam("application/json") FlushParameters parameters,
Context context);
- @Headers({ "Content-Type: application/json" })
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/flush")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response flushSync(@HostParam("$host") String endpoint,
+ Response flushSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
- @PathParam("databaseName") String databaseName, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @BodyParam("application/json") FlushParameters parameters, @HeaderParam("Accept") String accept,
+ @PathParam("databaseName") String databaseName, @BodyParam("application/json") FlushParameters parameters,
Context context);
- @Headers({ "Content-Type: application/json" })
+ @Headers({ "Accept: application/json;q=0.9", "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,
+ Mono>> upgradeDBRedisVersion(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@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);
+ @PathParam("databaseName") String databaseName, Context context);
- @Headers({ "Content-Type: application/json" })
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/upgradeDBRedisVersion")
@ExpectedResponses({ 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response upgradeDBRedisVersionSync(@HostParam("$host") String endpoint,
+ Response upgradeDBRedisVersionSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@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);
+ @PathParam("databaseName") String databaseName, Context context);
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByClusterNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context);
+ @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Response listByClusterNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context);
+ @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context);
}
/**
- * Gets all databases in the specified Redis Enterprise cluster.
+ * Gets information about a database in a Redis Enterprise cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed
* characters(A-Z, a-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 all databases in the specified Redis Enterprise cluster along with {@link PagedResponse} on successful
+ * @return information about a database in a Redis Enterprise cluster along with {@link Response} on successful
* completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByClusterSinglePageAsync(String resourceGroupName,
- String clusterName) {
- 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."));
- }
+ private Mono> getWithResponseAsync(String resourceGroupName, String clusterName,
+ String databaseName) {
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.listByCluster(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
- res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, clusterName, databaseName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Gets all databases in the specified Redis Enterprise cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the Redis Enterprise cluster. Name must be 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}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByClusterAsync(String resourceGroupName, String clusterName) {
- return new PagedFlux<>(() -> listByClusterSinglePageAsync(resourceGroupName, clusterName),
- nextLink -> listByClusterNextSinglePageAsync(nextLink));
- }
-
- /**
- * Gets all databases in the specified Redis Enterprise cluster.
+ * Gets information about a database in a Redis Enterprise cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed
* characters(A-Z, a-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 all databases in the specified Redis Enterprise cluster along with {@link PagedResponse}.
+ * @return information about a database in a Redis Enterprise cluster on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse listByClusterSinglePage(String resourceGroupName, String clusterName) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (clusterName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
- }
- final String accept = "application/json";
- Response res = service.listByClusterSync(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, Context.NONE);
- return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
- res.getValue().nextLink(), null);
+ private Mono getAsync(String resourceGroupName, String clusterName, String databaseName) {
+ return getWithResponseAsync(resourceGroupName, clusterName, databaseName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
- * Gets all databases in the specified Redis Enterprise cluster.
+ * Gets information about a database in a Redis Enterprise cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed
* characters(A-Z, a-z, 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 all databases in the specified Redis Enterprise cluster along with {@link PagedResponse}.
+ * @return information about a database in a Redis Enterprise cluster along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse listByClusterSinglePage(String resourceGroupName, String clusterName,
+ public Response getWithResponse(String resourceGroupName, String clusterName, String databaseName,
Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (clusterName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
- }
final String accept = "application/json";
- Response res = service.listByClusterSync(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context);
- return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
- res.getValue().nextLink(), null);
- }
-
- /**
- * Gets all databases in the specified Redis Enterprise cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the Redis Enterprise cluster. Name must be 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}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByCluster(String resourceGroupName, String clusterName) {
- return new PagedIterable<>(() -> listByClusterSinglePage(resourceGroupName, clusterName),
- nextLink -> listByClusterNextSinglePage(nextLink));
+ return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, clusterName, databaseName, accept, context);
}
/**
- * Gets all databases in the specified Redis Enterprise cluster.
+ * Gets information about a database in a Redis Enterprise cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-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.
+ * @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 databases in the specified Redis Enterprise cluster as paginated response with {@link PagedIterable}.
+ * @return information about a database in a Redis Enterprise cluster.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByCluster(String resourceGroupName, String clusterName, Context context) {
- return new PagedIterable<>(() -> listByClusterSinglePage(resourceGroupName, clusterName, context),
- nextLink -> listByClusterNextSinglePage(nextLink, context));
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DatabaseInner get(String resourceGroupName, String clusterName, String databaseName) {
+ return getWithResponse(resourceGroupName, clusterName, databaseName, Context.NONE).getValue();
}
/**
@@ -547,34 +442,12 @@ public PagedIterable listByCluster(String resourceGroupName, Stri
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createWithResponseAsync(String resourceGroupName, String clusterName,
String databaseName, DatabaseInner parameters) {
- 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."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
+ final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
- .withContext(
- context -> service.create(this.client.getEndpoint(), resourceGroupName, clusterName, databaseName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), parameters, accept, context))
+ .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, clusterName, databaseName, contentType, accept,
+ parameters, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -594,37 +467,11 @@ private Mono>> createWithResponseAsync(String resource
@ServiceMethod(returns = ReturnType.SINGLE)
private Response createWithResponse(String resourceGroupName, String clusterName, String databaseName,
DatabaseInner parameters) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (clusterName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
- }
- if (databaseName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter databaseName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (parameters == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
+ final String contentType = "application/json";
final String accept = "application/json";
- return service.createSync(this.client.getEndpoint(), resourceGroupName, clusterName, databaseName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), parameters, accept, Context.NONE);
+ return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, clusterName, databaseName, contentType, accept,
+ parameters, Context.NONE);
}
/**
@@ -644,37 +491,11 @@ private Response createWithResponse(String resourceGroupName, String
@ServiceMethod(returns = ReturnType.SINGLE)
private Response createWithResponse(String resourceGroupName, String clusterName, String databaseName,
DatabaseInner parameters, Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (clusterName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
- }
- if (databaseName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter databaseName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (parameters == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
+ final String contentType = "application/json";
final String accept = "application/json";
- return service.createSync(this.client.getEndpoint(), resourceGroupName, clusterName, databaseName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), parameters, accept, context);
+ return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, clusterName, databaseName, contentType, accept,
+ parameters, context);
}
/**
@@ -819,34 +640,12 @@ public DatabaseInner create(String resourceGroupName, String clusterName, String
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName,
String databaseName, DatabaseUpdate parameters) {
- 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."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
+ final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
- .withContext(
- context -> service.update(this.client.getEndpoint(), resourceGroupName, clusterName, databaseName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), parameters, accept, context))
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, clusterName, databaseName, contentType, accept,
+ parameters, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -866,37 +665,11 @@ private Mono>> updateWithResponseAsync(String resource
@ServiceMethod(returns = ReturnType.SINGLE)
private Response updateWithResponse(String resourceGroupName, String clusterName, String databaseName,
DatabaseUpdate parameters) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (clusterName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
- }
- if (databaseName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter databaseName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (parameters == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
+ final String contentType = "application/json";
final String accept = "application/json";
- return service.updateSync(this.client.getEndpoint(), resourceGroupName, clusterName, databaseName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), parameters, accept, Context.NONE);
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, clusterName, databaseName, contentType, accept,
+ parameters, Context.NONE);
}
/**
@@ -916,37 +689,11 @@ private Response updateWithResponse(String resourceGroupName, String
@ServiceMethod(returns = ReturnType.SINGLE)
private Response updateWithResponse(String resourceGroupName, String clusterName, String databaseName,
DatabaseUpdate parameters, Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (clusterName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
- }
- if (databaseName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter databaseName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (parameters == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
+ final String contentType = "application/json";
final String accept = "application/json";
- return service.updateSync(this.client.getEndpoint(), resourceGroupName, clusterName, databaseName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), parameters, accept, context);
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, clusterName, databaseName, contentType, accept,
+ parameters, context);
}
/**
@@ -1075,7 +822,7 @@ public DatabaseInner update(String resourceGroupName, String clusterName, String
}
/**
- * Gets information about a database in a Redis Enterprise 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. Name must be 1-60 characters long. Allowed
@@ -1084,39 +831,19 @@ public DatabaseInner update(String resourceGroupName, String clusterName, String
* @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
- * completion of {@link Mono}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String resourceGroupName, String clusterName,
+ private Mono>> deleteWithResponseAsync(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.get(this.client.getEndpoint(), resourceGroupName, clusterName, databaseName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context))
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, clusterName, databaseName, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Gets information about a database in a Redis Enterprise 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. Name must be 1-60 characters long. Allowed
@@ -1125,16 +852,16 @@ private Mono> getWithResponseAsync(String resourceGroupN
* @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 the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getAsync(String resourceGroupName, String clusterName, String databaseName) {
- return getWithResponseAsync(resourceGroupName, clusterName, databaseName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ private Response deleteWithResponse(String resourceGroupName, String clusterName, String databaseName) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, clusterName, databaseName, Context.NONE);
}
/**
- * Gets information about a database in a Redis Enterprise 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. Name must be 1-60 characters long. Allowed
@@ -1144,40 +871,17 @@ private Mono getAsync(String resourceGroupName, String clusterNam
* @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 the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(String resourceGroupName, String clusterName, String databaseName,
+ private Response deleteWithResponse(String resourceGroupName, String clusterName, String databaseName,
Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (clusterName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
- }
- if (databaseName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter databaseName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- final String accept = "application/json";
- return service.getSync(this.client.getEndpoint(), resourceGroupName, clusterName, databaseName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context);
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, clusterName, databaseName, context);
}
/**
- * Gets information about a database in a Redis Enterprise 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. Name must be 1-60 characters long. Allowed
@@ -1186,11 +890,14 @@ public Response getWithResponse(String resourceGroupName, String
* @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 the {@link PollerFlux} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- public DatabaseInner get(String resourceGroupName, String clusterName, String databaseName) {
- return getWithResponse(resourceGroupName, clusterName, databaseName, Context.NONE).getValue();
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName,
+ String databaseName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, clusterName, databaseName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
}
/**
@@ -1203,34 +910,13 @@ public DatabaseInner get(String resourceGroupName, String clusterName, String da
* @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}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName,
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(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.delete(this.client.getEndpoint(), resourceGroupName, clusterName,
- databaseName, this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ Response response = deleteWithResponse(resourceGroupName, clusterName, databaseName);
+ return this.client.getLroResult(response, Void.class, Void.class, Context.NONE);
}
/**
@@ -1240,38 +926,17 @@ private Mono>> deleteWithResponseAsync(String resource
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed
* characters(A-Z, a-z, 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 the response body along with {@link Response}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Response deleteWithResponse(String resourceGroupName, String clusterName, String databaseName) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (clusterName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
- }
- if (databaseName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter databaseName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- final String accept = "application/json";
- return service.deleteSync(this.client.getEndpoint(), resourceGroupName, clusterName, databaseName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), accept, Context.NONE);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName,
+ String databaseName, Context context) {
+ Response response = deleteWithResponse(resourceGroupName, clusterName, databaseName, context);
+ return this.client.getLroResult(response, Void.class, Void.class, context);
}
/**
@@ -1281,40 +946,15 @@ private Response deleteWithResponse(String resourceGroupName, String
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed
* characters(A-Z, a-z, 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 the response body along with {@link Response}.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Response deleteWithResponse(String resourceGroupName, String clusterName, String databaseName,
- Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (clusterName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
- }
- if (databaseName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter databaseName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- final String accept = "application/json";
- return service.deleteSync(this.client.getEndpoint(), resourceGroupName, clusterName, databaseName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context);
+ private Mono deleteAsync(String resourceGroupName, String clusterName, String databaseName) {
+ return beginDeleteAsync(resourceGroupName, clusterName, databaseName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
}
/**
@@ -1327,14 +967,10 @@ private Response deleteWithResponse(String resourceGroupName, String
* @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) {
- Mono>> mono = deleteWithResponseAsync(resourceGroupName, clusterName, databaseName);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- this.client.getContext());
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String clusterName, String databaseName) {
+ beginDelete(resourceGroupName, clusterName, databaseName).getFinalResult();
}
/**
@@ -1344,87 +980,132 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed
* characters(A-Z, a-z, 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 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) {
- Response response = deleteWithResponse(resourceGroupName, clusterName, databaseName);
- return this.client.getLroResult(response, Void.class, Void.class, Context.NONE);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String clusterName, String databaseName, Context context) {
+ beginDelete(resourceGroupName, clusterName, databaseName, context).getFinalResult();
}
/**
- * Deletes a single database.
+ * Gets all databases in the specified Redis Enterprise cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed
* characters(A-Z, a-z, 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 the {@link SyncPoller} for polling of long-running operation.
+ * @return all databases in the specified Redis Enterprise cluster along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName,
- String databaseName, Context context) {
- Response response = deleteWithResponse(resourceGroupName, clusterName, databaseName, context);
- return this.client.getLroResult(response, Void.class, Void.class, context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByClusterSinglePageAsync(String resourceGroupName,
+ String clusterName) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByCluster(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, clusterName, 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()));
}
/**
- * Deletes a single database.
+ * Gets all databases in the specified Redis Enterprise cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed
* characters(A-Z, a-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 A {@link Mono} that completes when a successful response is received.
+ * @return all databases in the specified Redis Enterprise cluster as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String clusterName, String databaseName) {
- return beginDeleteAsync(resourceGroupName, clusterName, databaseName).last()
- .flatMap(this.client::getLroFinalResultOrError);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux