From 91765da506fdcfa2422eac8d8a198fa85195fd01 Mon Sep 17 00:00:00 2001
From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com>
Date: Mon, 13 Mar 2023 03:46:56 -0700
Subject: [PATCH] [Automation] Generate Fluent Lite from
redisenterprise#package-preview-2023-03 (#33979)
* [Automation] Generate Fluent Lite from redisenterprise#package-preview-2023-03
* Update pom.xml
basically same as 1.1.0-beta.1
---------
Co-authored-by: Xiaofei Cao <92354331+XiaofeiCao@users.noreply.github.com>
---
.../CHANGELOG.md | 83 +++-
.../README.md | 27 +-
.../SAMPLE.md | 215 ++++++----
.../pom.xml | 46 +-
.../RedisEnterpriseManager.java | 54 ++-
.../fluent/DatabasesClient.java | 88 +++-
.../fluent/OperationsStatusClient.java | 18 +-
.../PrivateEndpointConnectionsClient.java | 26 +-
.../RedisEnterpriseManagementClient.java | 7 +
.../fluent/RedisEnterprisesClient.java | 12 +-
.../redisenterprise/fluent/SkusClient.java | 41 ++
.../fluent/models/AccessKeysInner.java | 10 +-
.../fluent/models/ClusterInner.java | 82 +++-
.../fluent/models/ClusterProperties.java | 42 +-
.../fluent/models/DatabaseInner.java | 28 +-
.../fluent/models/DatabaseProperties.java | 22 +-
.../fluent/models/OperationInner.java | 26 +-
.../fluent/models/OperationStatusInner.java | 16 +-
.../PrivateEndpointConnectionInner.java | 20 +
.../PrivateEndpointConnectionProperties.java | 7 +-
.../models/PrivateLinkResourceInner.java | 20 +
.../models/PrivateLinkResourceProperties.java | 4 +
.../fluent/models/RegionSkuDetailInner.java | 120 ++++++
.../implementation/ClusterImpl.java | 39 ++
.../implementation/DatabaseImpl.java | 26 +-
.../implementation/DatabasesClientImpl.java | 405 +++++++++++++++---
.../implementation/DatabasesImpl.java | 50 ++-
.../implementation/OperationsClientImpl.java | 8 +-
.../OperationsStatusClientImpl.java | 46 +-
.../implementation/OperationsStatusImpl.java | 18 +-
.../PrivateEndpointConnectionImpl.java | 9 +
.../PrivateEndpointConnectionsClientImpl.java | 54 ++-
.../PrivateEndpointConnectionsImpl.java | 26 +-
.../PrivateLinkResourceImpl.java | 5 +
.../PrivateLinkResourcesClientImpl.java | 2 +-
...edisEnterpriseManagementClientBuilder.java | 37 +-
.../RedisEnterpriseManagementClientImpl.java | 23 +-
.../RedisEnterprisesClientImpl.java | 51 ++-
.../implementation/RedisEnterprisesImpl.java | 18 +-
.../implementation/RegionSkuDetailImpl.java | 43 ++
.../implementation/SkusClientImpl.java | 222 ++++++++++
.../implementation/SkusImpl.java | 45 ++
.../redisenterprise/models/AccessKeyType.java | 6 +-
.../redisenterprise/models/ActionType.java | 17 +-
.../redisenterprise/models/AofFrequency.java | 17 +-
.../redisenterprise/models/Capability.java | 80 ++++
.../redisenterprise/models/Cluster.java | 82 +++-
.../redisenterprise/models/ClusterList.java | 4 +
.../models/ClusterPropertiesEncryption.java | 57 +++
...ncryptionCustomerManagedKeyEncryption.java | 89 ++++
...stomerManagedKeyEncryptionKeyIdentity.java | 88 ++++
.../redisenterprise/models/ClusterUpdate.java | 64 ++-
.../models/ClusteringPolicy.java | 17 +-
.../models/CmkIdentityType.java | 47 ++
.../redisenterprise/models/Database.java | 48 ++-
.../redisenterprise/models/DatabaseList.java | 4 +
.../DatabasePropertiesGeoReplication.java | 4 +
.../models/DatabaseUpdate.java | 12 +-
.../redisenterprise/models/Databases.java | 52 ++-
.../models/EvictionPolicy.java | 17 +-
.../models/ExportClusterParameters.java | 10 +-
.../models/FlushParameters.java | 57 +++
.../models/ForceUnlinkParameters.java | 9 +-
.../models/ImportClusterParameters.java | 10 +-
.../redisenterprise/models/LinkState.java | 17 +-
.../models/LinkedDatabase.java | 10 +-
.../redisenterprise/models/LocationInfo.java | 80 ++++
.../models/ManagedServiceIdentity.java | 143 +++++++
.../models/ManagedServiceIdentityType.java | 54 +++
.../redisenterprise/models/Module.java | 16 +-
.../redisenterprise/models/Name.java | 62 +++
.../models/OperationDisplay.java | 20 +-
.../models/OperationListResult.java | 4 +
.../models/OperationStatus.java | 4 +-
.../models/OperationsStatus.java | 18 +-
.../redisenterprise/models/Origin.java | 20 +-
.../redisenterprise/models/Persistence.java | 10 +-
.../models/PrivateEndpoint.java | 4 +
.../models/PrivateEndpointConnection.java | 15 +
.../PrivateEndpointConnectionListResult.java | 4 +
...teEndpointConnectionProvisioningState.java | 17 +-
.../models/PrivateEndpointConnections.java | 24 +-
...rivateEndpointServiceConnectionStatus.java | 17 +-
.../models/PrivateLinkResource.java | 8 +
.../models/PrivateLinkResourceListResult.java | 4 +
.../PrivateLinkServiceConnectionState.java | 10 +-
.../redisenterprise/models/Protocol.java | 20 +-
.../models/ProvisioningState.java | 17 +-
.../redisenterprise/models/RdbFrequency.java | 17 +-
.../models/RedisEnterprises.java | 10 +-
.../models/RegenerateKeyParameters.java | 10 +-
.../models/RegionSkuDetail.java | 40 ++
.../models/RegionSkuDetails.java | 59 +++
.../redisenterprise/models/ResourceState.java | 17 +-
.../redisenterprise/models/Sku.java | 12 +-
.../redisenterprise/models/SkuDetail.java | 56 +++
.../redisenterprise/models/SkuName.java | 17 +-
.../redisenterprise/models/Skus.java | 36 ++
.../redisenterprise/models/TlsVersion.java | 17 +-
.../models/UserAssignedIdentity.java | 55 +++
.../generated/DatabasesCreateSamples.java | 4 +-
.../generated/DatabasesDeleteSamples.java | 6 +-
.../generated/DatabasesExportSamples.java | 5 +-
.../generated/DatabasesFlushSamples.java | 35 ++
.../DatabasesForceUnlinkSamples.java | 5 +-
.../generated/DatabasesGetSamples.java | 6 +-
.../DatabasesImportMethodSamples.java | 5 +-
.../DatabasesListByClusterSamples.java | 6 +-
.../generated/DatabasesListKeysSamples.java | 6 +-
.../DatabasesRegenerateKeySamples.java | 5 +-
.../generated/DatabasesUpdateSamples.java | 9 +-
.../generated/OperationsListSamples.java | 6 +-
.../generated/OperationsStatusGetSamples.java | 6 +-
...ivateEndpointConnectionsDeleteSamples.java | 8 +-
.../PrivateEndpointConnectionsGetSamples.java | 8 +-
...PrivateEndpointConnectionsListSamples.java | 6 +-
.../PrivateEndpointConnectionsPutSamples.java | 2 +-
...vateLinkResourcesListByClusterSamples.java | 6 +-
.../RedisEnterpriseCreateSamples.java | 26 +-
.../RedisEnterpriseDeleteSamples.java | 6 +-
...isEnterpriseGetByResourceGroupSamples.java | 6 +-
...sEnterpriseListByResourceGroupSamples.java | 6 +-
.../generated/RedisEnterpriseListSamples.java | 6 +-
.../RedisEnterpriseUpdateSamples.java | 8 +-
.../generated/SkusListSamples.java | 20 +
.../generated/CapabilityTests.java | 27 ++
.../generated/ClusterInnerTests.java | 73 ++++
.../generated/ClusterListTests.java | 114 +++++
...rManagedKeyEncryptionKeyIdentityTests.java | 37 ++
.../generated/ClusterUpdateTests.java | 72 ++++
.../generated/DatabaseInnerTests.java | 79 ++++
.../generated/DatabaseListTests.java | 55 +++
...DatabasePropertiesGeoReplicationTests.java | 41 ++
.../generated/DatabasePropertiesTests.java | 76 ++++
.../generated/DatabaseUpdateTests.java | 77 ++++
.../generated/DatabasesCreateMockTests.java | 102 +++++
.../generated/DatabasesDeleteMockTests.java | 61 +++
.../generated/DatabasesExportMockTests.java | 69 +++
.../generated/DatabasesFlushMockTests.java | 70 +++
.../DatabasesForceUnlinkMockTests.java | 70 +++
.../DatabasesGetWithResponseMockTests.java | 83 ++++
.../DatabasesImportMethodMockTests.java | 70 +++
.../DatabasesListByClusterMockTests.java | 81 ++++
.../ExportClusterParametersTests.java | 25 ++
.../generated/FlushParametersTests.java | 26 ++
.../generated/ForceUnlinkParametersTests.java | 29 ++
.../ImportClusterParametersTests.java | 26 ++
.../generated/LinkedDatabaseTests.java | 25 ++
.../generated/LocationInfoTests.java | 43 ++
.../ManagedServiceIdentityTests.java | 48 +++
.../generated/ModuleTests.java | 27 ++
.../generated/OperationDisplayTests.java | 25 ++
.../generated/OperationInnerTests.java | 26 ++
.../generated/OperationListResultTests.java | 25 ++
.../generated/OperationStatusInnerTests.java | 42 ++
.../generated/OperationsListMockTests.java | 64 +++
...rationsStatusGetWithResponseMockTests.java | 74 ++++
.../generated/PersistenceTests.java | 41 ++
.../PrivateEndpointConnectionInnerTests.java | 46 ++
...vateEndpointConnectionListResultTests.java | 35 ++
...vateEndpointConnectionPropertiesTests.java | 46 ++
...onnectionsDeleteWithResponseMockTests.java | 63 +++
...ntConnectionsGetWithResponseMockTests.java | 75 ++++
...ivateEndpointConnectionsListMockTests.java | 76 ++++
.../generated/PrivateEndpointTests.java | 21 +
.../PrivateLinkResourceInnerTests.java | 29 ++
.../PrivateLinkResourceListResultTests.java | 33 ++
.../PrivateLinkResourcePropertiesTests.java | 31 ++
...teLinkResourcesListByClusterMockTests.java | 68 +++
...rivateLinkServiceConnectionStateTests.java | 37 ++
.../RedisEnterprisesCreateMockTests.java | 107 +++++
.../RedisEnterprisesDeleteMockTests.java | 61 +++
...tByResourceGroupWithResponseMockTests.java | 79 ++++
...terprisesListByResourceGroupMockTests.java | 78 ++++
.../RedisEnterprisesListMockTests.java | 76 ++++
.../generated/RegionSkuDetailInnerTests.java | 52 +++
.../generated/RegionSkuDetailsTests.java | 46 ++
.../generated/SkuDetailTests.java | 25 ++
.../redisenterprise/generated/SkuTests.java | 27 ++
.../generated/SkusListMockTests.java | 70 +++
.../generated/UserAssignedIdentityTests.java | 25 ++
.../org.mockito.plugins.MockMaker | 1 +
182 files changed, 6519 insertions(+), 579 deletions(-)
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/SkusClient.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/RegionSkuDetailInner.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RegionSkuDetailImpl.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/SkusClientImpl.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/SkusImpl.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Capability.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ClusterPropertiesEncryption.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ClusterPropertiesEncryptionCustomerManagedKeyEncryption.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/CmkIdentityType.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/FlushParameters.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/LocationInfo.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ManagedServiceIdentity.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/ManagedServiceIdentityType.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Name.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/RegionSkuDetail.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/RegionSkuDetails.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/SkuDetail.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/Skus.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/models/UserAssignedIdentity.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesFlushSamples.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/samples/java/com/azure/resourcemanager/redisenterprise/generated/SkusListSamples.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/CapabilityTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterInnerTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterListTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentityTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ClusterUpdateTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabaseInnerTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabaseListTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasePropertiesGeoReplicationTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasePropertiesTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabaseUpdateTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesCreateMockTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesDeleteMockTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesExportMockTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesFlushMockTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesForceUnlinkMockTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesGetWithResponseMockTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesImportMethodMockTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/DatabasesListByClusterMockTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ExportClusterParametersTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/FlushParametersTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ForceUnlinkParametersTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ImportClusterParametersTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/LinkedDatabaseTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/LocationInfoTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ManagedServiceIdentityTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/ModuleTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationDisplayTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationInnerTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationListResultTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationStatusInnerTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationsListMockTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/OperationsStatusGetWithResponseMockTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PersistenceTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionInnerTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionListResultTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionPropertiesTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsDeleteWithResponseMockTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointConnectionsListMockTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateEndpointTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourceInnerTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourceListResultTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcePropertiesTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkResourcesListByClusterMockTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/PrivateLinkServiceConnectionStateTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesCreateMockTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesDeleteMockTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesGetByResourceGroupWithResponseMockTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesListByResourceGroupMockTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RedisEnterprisesListMockTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RegionSkuDetailInnerTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/RegionSkuDetailsTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/SkuDetailTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/SkuTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/SkusListMockTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/java/com/azure/resourcemanager/redisenterprise/generated/UserAssignedIdentityTests.java
create mode 100644 sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/CHANGELOG.md b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/CHANGELOG.md
index 78cf51775afa..815944374ebc 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/CHANGELOG.md
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/CHANGELOG.md
@@ -1,14 +1,89 @@
# Release History
-## 1.1.0-beta.2 (Unreleased)
+## 1.1.0-beta.2 (2023-03-13)
+
+- Azure Resource Manager RedisEnterprise client library for Java. This package contains Microsoft Azure SDK for RedisEnterprise Management SDK. REST API for managing Redis Enterprise resources in Azure. Package tag package-preview-2023-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
-### Breaking Changes
+* `models.ManagedServiceIdentity` was added
+
+* `models.Name` was added
+
+* `models.UserAssignedIdentity` was added
+
+* `models.SkuDetail` was added
+
+* `models.LocationInfo` was added
+
+* `models.RegionSkuDetail` was added
+
+* `models.Capability` was added
+
+* `models.ClusterPropertiesEncryption` was added
+
+* `models.ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity` was added
+
+* `models.RegionSkuDetails` was added
+
+* `models.ManagedServiceIdentityType` was added
+
+* `models.FlushParameters` was added
+
+* `models.CmkIdentityType` was added
+
+* `models.ClusterPropertiesEncryptionCustomerManagedKeyEncryption` was added
+
+* `models.Skus` was added
+
+#### `models.ClusterUpdate` was modified
+
+* `withIdentity(models.ManagedServiceIdentity)` was added
+* `withEncryption(models.ClusterPropertiesEncryption)` was added
+* `encryption()` was added
+* `identity()` was added
-### Bugs Fixed
+#### `models.PrivateLinkResource` was modified
+
+* `systemData()` was added
+
+#### `models.Cluster$Update` was modified
+
+* `withEncryption(models.ClusterPropertiesEncryption)` was added
+* `withIdentity(models.ManagedServiceIdentity)` was added
+
+#### `RedisEnterpriseManager` was modified
+
+* `skus()` was added
+
+#### `models.Cluster$Definition` was modified
+
+* `withIdentity(models.ManagedServiceIdentity)` was added
+* `withEncryption(models.ClusterPropertiesEncryption)` was added
+
+#### `models.Database` was modified
+
+* `flush(models.FlushParameters,com.azure.core.util.Context)` was added
+* `flush(models.FlushParameters)` was added
+* `resourceGroupName()` was added
+* `systemData()` was added
+
+#### `models.PrivateEndpointConnection` was modified
+
+* `resourceGroupName()` was added
+* `systemData()` was added
+
+#### `models.Cluster` was modified
+
+* `identity()` was added
+* `resourceGroupName()` was added
+* `systemData()` was added
+* `encryption()` was added
+
+#### `models.Databases` was modified
-### Other Changes
+* `flush(java.lang.String,java.lang.String,java.lang.String,models.FlushParameters,com.azure.core.util.Context)` was added
+* `flush(java.lang.String,java.lang.String,java.lang.String,models.FlushParameters)` was added
## 1.1.0-beta.1 (2022-04-19)
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md
index da72586167c0..18fd122d1af4 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager RedisEnterprise client library for Java.
-This package contains Microsoft Azure SDK for RedisEnterprise Management SDK. REST API for managing Redis Enterprise resources in Azure. Package tag package-2022-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 RedisEnterprise Management SDK. REST API for managing Redis Enterprise resources in Azure. Package tag package-preview-2023-03. 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.resourcemanagerazure-resourcemanager-redisenterprise
- 1.1.0-beta.1
+ 1.1.0-beta.2
```
[//]: # ({x-version-update-end})
@@ -41,19 +41,19 @@ Various documentation is available to help you get started
Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.
-[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation.
+[Azure Identity][azure_identity] and [Azure Core Netty HTTP][azure_core_http_netty] packages provide the default implementation.
### Authentication
-By default, Azure Active Directory token authentication depends on correct configure of following environment variables.
+By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables.
- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
-In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
+In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
-With above configuration, `azure` client can be authenticated by following code:
+With above configuration, `azure` client can be authenticated using the following code:
```java
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
@@ -83,13 +83,13 @@ See [API design][design] for general introduction on design and key concepts on
## Contributing
-For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md).
+For details on contributing to this repository, see the [contributing guide][cg].
-1. Fork it
-1. Create your feature branch (`git checkout -b my-new-feature`)
-1. Commit your changes (`git commit -am 'Add some feature'`)
-1. Push to the branch (`git push origin my-new-feature`)
-1. Create new Pull Request
+This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit .
+
+When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.
+
+This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][coc_faq] or contact with any additional questions or comments.
[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
@@ -100,3 +100,6 @@ For details on contributing to this repository, see the [contributing guide](htt
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
+[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
+[coc]: https://opensource.microsoft.com/codeofconduct/
+[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/SAMPLE.md b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/SAMPLE.md
index b105a7c11110..c1913a573123 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/SAMPLE.md
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/SAMPLE.md
@@ -6,6 +6,7 @@
- [Create](#databases_create)
- [Delete](#databases_delete)
- [Export](#databases_export)
+- [Flush](#databases_flush)
- [ForceUnlink](#databases_forceunlink)
- [Get](#databases_get)
- [ImportMethod](#databases_importmethod)
@@ -41,6 +42,10 @@
- [List](#redisenterprise_list)
- [ListByResourceGroup](#redisenterprise_listbyresourcegroup)
- [Update](#redisenterprise_update)
+
+## Skus
+
+- [List](#skus_list)
### Databases_Create
```java
@@ -57,7 +62,7 @@ import java.util.Arrays;
/** Samples for Databases Create. */
public final class DatabasesCreateSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDatabasesCreate.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDatabasesCreate.json
*/
/**
* Sample code: RedisEnterpriseDatabasesCreate.
@@ -85,7 +90,7 @@ public final class DatabasesCreateSamples {
}
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDatabasesCreateWithGeoReplication.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDatabasesCreateWithGeoReplication.json
*/
/**
* Sample code: RedisEnterpriseDatabasesCreate With Active Geo Replication.
@@ -122,12 +127,10 @@ public final class DatabasesCreateSamples {
### Databases_Delete
```java
-import com.azure.core.util.Context;
-
/** Samples for Databases Delete. */
public final class DatabasesDeleteSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDatabasesDelete.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDatabasesDelete.json
*/
/**
* Sample code: RedisEnterpriseDatabasesDelete.
@@ -136,7 +139,7 @@ public final class DatabasesDeleteSamples {
*/
public static void redisEnterpriseDatabasesDelete(
com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
- manager.databases().delete("rg1", "cache1", "db1", Context.NONE);
+ manager.databases().delete("rg1", "cache1", "db1", com.azure.core.util.Context.NONE);
}
}
```
@@ -144,13 +147,12 @@ public final class DatabasesDeleteSamples {
### Databases_Export
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.redisenterprise.models.ExportClusterParameters;
/** Samples for Databases Export. */
public final class DatabasesExportSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDatabasesExport.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDatabasesExport.json
*/
/**
* Sample code: RedisEnterpriseDatabasesExport.
@@ -167,7 +169,41 @@ public final class DatabasesExportSamples {
"default",
new ExportClusterParameters()
.withSasUri("https://contosostorage.blob.core.window.net/urlToBlobContainer?sasKeyParameters"),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Databases_Flush
+
+```java
+import com.azure.resourcemanager.redisenterprise.models.FlushParameters;
+import java.util.Arrays;
+
+/** Samples for Databases Flush. */
+public final class DatabasesFlushSamples {
+ /*
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDatabasesFlush.json
+ */
+ /**
+ * Sample code: How to flush all the keys in the database.
+ *
+ * @param manager Entry point to RedisEnterpriseManager.
+ */
+ public static void howToFlushAllTheKeysInTheDatabase(
+ com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
+ manager
+ .databases()
+ .flush(
+ "rg1",
+ "cache1",
+ "default",
+ new FlushParameters()
+ .withIds(
+ Arrays
+ .asList(
+ "/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default")),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -175,14 +211,13 @@ public final class DatabasesExportSamples {
### Databases_ForceUnlink
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.redisenterprise.models.ForceUnlinkParameters;
import java.util.Arrays;
/** Samples for Databases ForceUnlink. */
public final class DatabasesForceUnlinkSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDatabasesForceUnlink.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDatabasesForceUnlink.json
*/
/**
* Sample code: How to unlink a database during a regional outage.
@@ -202,7 +237,7 @@ public final class DatabasesForceUnlinkSamples {
Arrays
.asList(
"/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default")),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -210,12 +245,10 @@ public final class DatabasesForceUnlinkSamples {
### Databases_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for Databases Get. */
public final class DatabasesGetSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDatabasesGet.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDatabasesGet.json
*/
/**
* Sample code: RedisEnterpriseDatabasesGet.
@@ -224,7 +257,7 @@ public final class DatabasesGetSamples {
*/
public static void redisEnterpriseDatabasesGet(
com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
- manager.databases().getWithResponse("rg1", "cache1", "default", Context.NONE);
+ manager.databases().getWithResponse("rg1", "cache1", "default", com.azure.core.util.Context.NONE);
}
}
```
@@ -232,14 +265,13 @@ public final class DatabasesGetSamples {
### Databases_ImportMethod
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.redisenterprise.models.ImportClusterParameters;
import java.util.Arrays;
/** Samples for Databases ImportMethod. */
public final class DatabasesImportMethodSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDatabasesImport.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDatabasesImport.json
*/
/**
* Sample code: RedisEnterpriseDatabasesImport.
@@ -260,7 +292,7 @@ public final class DatabasesImportMethodSamples {
.asList(
"https://contosostorage.blob.core.window.net/urltoBlobFile1?sasKeyParameters",
"https://contosostorage.blob.core.window.net/urltoBlobFile2?sasKeyParameters")),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -268,12 +300,10 @@ public final class DatabasesImportMethodSamples {
### Databases_ListByCluster
```java
-import com.azure.core.util.Context;
-
/** Samples for Databases ListByCluster. */
public final class DatabasesListByClusterSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDatabasesListByCluster.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDatabasesListByCluster.json
*/
/**
* Sample code: RedisEnterpriseDatabasesListByCluster.
@@ -282,7 +312,7 @@ public final class DatabasesListByClusterSamples {
*/
public static void redisEnterpriseDatabasesListByCluster(
com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
- manager.databases().listByCluster("rg1", "cache1", Context.NONE);
+ manager.databases().listByCluster("rg1", "cache1", com.azure.core.util.Context.NONE);
}
}
```
@@ -290,12 +320,10 @@ public final class DatabasesListByClusterSamples {
### Databases_ListKeys
```java
-import com.azure.core.util.Context;
-
/** Samples for Databases ListKeys. */
public final class DatabasesListKeysSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDatabasesListKeys.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDatabasesListKeys.json
*/
/**
* Sample code: RedisEnterpriseDatabasesListKeys.
@@ -304,7 +332,7 @@ public final class DatabasesListKeysSamples {
*/
public static void redisEnterpriseDatabasesListKeys(
com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
- manager.databases().listKeysWithResponse("rg1", "cache1", "default", Context.NONE);
+ manager.databases().listKeysWithResponse("rg1", "cache1", "default", com.azure.core.util.Context.NONE);
}
}
```
@@ -312,14 +340,13 @@ public final class DatabasesListKeysSamples {
### Databases_RegenerateKey
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.redisenterprise.models.AccessKeyType;
import com.azure.resourcemanager.redisenterprise.models.RegenerateKeyParameters;
/** Samples for Databases RegenerateKey. */
public final class DatabasesRegenerateKeySamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDatabasesRegenerateKey.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDatabasesRegenerateKey.json
*/
/**
* Sample code: RedisEnterpriseDatabasesRegenerateKey.
@@ -335,7 +362,7 @@ public final class DatabasesRegenerateKeySamples {
"cache1",
"default",
new RegenerateKeyParameters().withKeyType(AccessKeyType.PRIMARY),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -343,7 +370,6 @@ public final class DatabasesRegenerateKeySamples {
### Databases_Update
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.redisenterprise.models.Database;
import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy;
import com.azure.resourcemanager.redisenterprise.models.Persistence;
@@ -353,7 +379,7 @@ import com.azure.resourcemanager.redisenterprise.models.RdbFrequency;
/** Samples for Databases Update. */
public final class DatabasesUpdateSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDatabasesUpdate.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDatabasesUpdate.json
*/
/**
* Sample code: RedisEnterpriseDatabasesUpdate.
@@ -362,7 +388,11 @@ public final class DatabasesUpdateSamples {
*/
public static void redisEnterpriseDatabasesUpdate(
com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
- Database resource = manager.databases().getWithResponse("rg1", "cache1", "default", Context.NONE).getValue();
+ Database resource =
+ manager
+ .databases()
+ .getWithResponse("rg1", "cache1", "default", com.azure.core.util.Context.NONE)
+ .getValue();
resource
.update()
.withClientProtocol(Protocol.ENCRYPTED)
@@ -376,12 +406,10 @@ public final class DatabasesUpdateSamples {
### Operations_List
```java
-import com.azure.core.util.Context;
-
/** Samples for Operations List. */
public final class OperationsListSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/OperationsList.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/OperationsList.json
*/
/**
* Sample code: OperationsList.
@@ -389,7 +417,7 @@ public final class OperationsListSamples {
* @param manager Entry point to RedisEnterpriseManager.
*/
public static void operationsList(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
- manager.operations().list(Context.NONE);
+ manager.operations().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -397,12 +425,10 @@ public final class OperationsListSamples {
### OperationsStatus_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for OperationsStatus Get. */
public final class OperationsStatusGetSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/OperationsStatusGet.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/OperationsStatusGet.json
*/
/**
* Sample code: OperationsStatusGet.
@@ -410,7 +436,7 @@ public final class OperationsStatusGetSamples {
* @param manager Entry point to RedisEnterpriseManager.
*/
public static void operationsStatusGet(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
- manager.operationsStatus().getWithResponse("West US", "testoperationid", Context.NONE);
+ manager.operationsStatus().getWithResponse("West US", "testoperationid", com.azure.core.util.Context.NONE);
}
}
```
@@ -418,12 +444,10 @@ public final class OperationsStatusGetSamples {
### PrivateEndpointConnections_Delete
```java
-import com.azure.core.util.Context;
-
/** Samples for PrivateEndpointConnections Delete. */
public final class PrivateEndpointConnectionsDeleteSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDeletePrivateEndpointConnection.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDeletePrivateEndpointConnection.json
*/
/**
* Sample code: RedisEnterpriseDeletePrivateEndpointConnection.
@@ -432,7 +456,9 @@ public final class PrivateEndpointConnectionsDeleteSamples {
*/
public static void redisEnterpriseDeletePrivateEndpointConnection(
com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
- manager.privateEndpointConnections().deleteWithResponse("rg1", "cache1", "pectest01", Context.NONE);
+ manager
+ .privateEndpointConnections()
+ .deleteWithResponse("rg1", "cache1", "pectest01", com.azure.core.util.Context.NONE);
}
}
```
@@ -440,12 +466,10 @@ public final class PrivateEndpointConnectionsDeleteSamples {
### PrivateEndpointConnections_Get
```java
-import com.azure.core.util.Context;
-
/** Samples for PrivateEndpointConnections Get. */
public final class PrivateEndpointConnectionsGetSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseGetPrivateEndpointConnection.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseGetPrivateEndpointConnection.json
*/
/**
* Sample code: RedisEnterpriseGetPrivateEndpointConnection.
@@ -454,7 +478,9 @@ public final class PrivateEndpointConnectionsGetSamples {
*/
public static void redisEnterpriseGetPrivateEndpointConnection(
com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
- manager.privateEndpointConnections().getWithResponse("rg1", "cache1", "pectest01", Context.NONE);
+ manager
+ .privateEndpointConnections()
+ .getWithResponse("rg1", "cache1", "pectest01", com.azure.core.util.Context.NONE);
}
}
```
@@ -462,12 +488,10 @@ public final class PrivateEndpointConnectionsGetSamples {
### PrivateEndpointConnections_List
```java
-import com.azure.core.util.Context;
-
/** Samples for PrivateEndpointConnections List. */
public final class PrivateEndpointConnectionsListSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseListPrivateEndpointConnections.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseListPrivateEndpointConnections.json
*/
/**
* Sample code: RedisEnterpriseListPrivateEndpointConnections.
@@ -476,7 +500,7 @@ public final class PrivateEndpointConnectionsListSamples {
*/
public static void redisEnterpriseListPrivateEndpointConnections(
com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
- manager.privateEndpointConnections().list("rg1", "cache1", Context.NONE);
+ manager.privateEndpointConnections().list("rg1", "cache1", com.azure.core.util.Context.NONE);
}
}
```
@@ -490,7 +514,7 @@ import com.azure.resourcemanager.redisenterprise.models.PrivateLinkServiceConnec
/** Samples for PrivateEndpointConnections Put. */
public final class PrivateEndpointConnectionsPutSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterprisePutPrivateEndpointConnection.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterprisePutPrivateEndpointConnection.json
*/
/**
* Sample code: RedisEnterprisePutPrivateEndpointConnection.
@@ -515,12 +539,10 @@ public final class PrivateEndpointConnectionsPutSamples {
### PrivateLinkResources_ListByCluster
```java
-import com.azure.core.util.Context;
-
/** Samples for PrivateLinkResources ListByCluster. */
public final class PrivateLinkResourcesListByClusterSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseListPrivateLinkResources.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseListPrivateLinkResources.json
*/
/**
* Sample code: RedisEnterpriseListPrivateLinkResources.
@@ -529,7 +551,7 @@ public final class PrivateLinkResourcesListByClusterSamples {
*/
public static void redisEnterpriseListPrivateLinkResources(
com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
- manager.privateLinkResources().listByCluster("rg1", "cache1", Context.NONE);
+ manager.privateLinkResources().listByCluster("rg1", "cache1", com.azure.core.util.Context.NONE);
}
}
```
@@ -537,9 +559,16 @@ public final class PrivateLinkResourcesListByClusterSamples {
### RedisEnterprise_Create
```java
+import com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryption;
+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.ManagedServiceIdentity;
+import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentityType;
import com.azure.resourcemanager.redisenterprise.models.Sku;
import com.azure.resourcemanager.redisenterprise.models.SkuName;
import com.azure.resourcemanager.redisenterprise.models.TlsVersion;
+import com.azure.resourcemanager.redisenterprise.models.UserAssignedIdentity;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
@@ -547,7 +576,7 @@ import java.util.Map;
/** Samples for RedisEnterprise Create. */
public final class RedisEnterpriseCreateSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseCreate.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseCreate.json
*/
/**
* Sample code: RedisEnterpriseCreate.
@@ -563,7 +592,24 @@ public final class RedisEnterpriseCreateSamples {
.withSku(new Sku().withName(SkuName.ENTERPRISE_FLASH_F300).withCapacity(3))
.withTags(mapOf("tag1", "value1"))
.withZones(Arrays.asList("1", "2", "3"))
+ .withIdentity(
+ new ManagedServiceIdentity()
+ .withType(ManagedServiceIdentityType.USER_ASSIGNED)
+ .withUserAssignedIdentities(
+ mapOf(
+ "/subscriptions/your-subscription/resourceGroups/your-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/your-identity",
+ new UserAssignedIdentity())))
.withMinimumTlsVersion(TlsVersion.ONE_TWO)
+ .withEncryption(
+ new ClusterPropertiesEncryption()
+ .withCustomerManagedKeyEncryption(
+ new ClusterPropertiesEncryptionCustomerManagedKeyEncryption()
+ .withKeyEncryptionKeyIdentity(
+ new ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity()
+ .withUserAssignedIdentityResourceId(
+ "/subscriptions/your-subscription/resourceGroups/your-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/your-identity")
+ .withIdentityType(CmkIdentityType.USER_ASSIGNED_IDENTITY))
+ .withKeyEncryptionKeyUrl("fakeTokenPlaceholder")))
.create();
}
@@ -583,12 +629,10 @@ public final class RedisEnterpriseCreateSamples {
### RedisEnterprise_Delete
```java
-import com.azure.core.util.Context;
-
/** Samples for RedisEnterprise Delete. */
public final class RedisEnterpriseDeleteSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDelete.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDelete.json
*/
/**
* Sample code: RedisEnterpriseDelete.
@@ -596,7 +640,7 @@ public final class RedisEnterpriseDeleteSamples {
* @param manager Entry point to RedisEnterpriseManager.
*/
public static void redisEnterpriseDelete(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
- manager.redisEnterprises().delete("rg1", "cache1", Context.NONE);
+ manager.redisEnterprises().delete("rg1", "cache1", com.azure.core.util.Context.NONE);
}
}
```
@@ -604,12 +648,10 @@ public final class RedisEnterpriseDeleteSamples {
### RedisEnterprise_GetByResourceGroup
```java
-import com.azure.core.util.Context;
-
/** Samples for RedisEnterprise GetByResourceGroup. */
public final class RedisEnterpriseGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseGet.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseGet.json
*/
/**
* Sample code: RedisEnterpriseGet.
@@ -617,7 +659,7 @@ public final class RedisEnterpriseGetByResourceGroupSamples {
* @param manager Entry point to RedisEnterpriseManager.
*/
public static void redisEnterpriseGet(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
- manager.redisEnterprises().getByResourceGroupWithResponse("rg1", "cache1", Context.NONE);
+ manager.redisEnterprises().getByResourceGroupWithResponse("rg1", "cache1", com.azure.core.util.Context.NONE);
}
}
```
@@ -625,12 +667,10 @@ public final class RedisEnterpriseGetByResourceGroupSamples {
### RedisEnterprise_List
```java
-import com.azure.core.util.Context;
-
/** Samples for RedisEnterprise List. */
public final class RedisEnterpriseListSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseList.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseList.json
*/
/**
* Sample code: RedisEnterpriseList.
@@ -638,7 +678,7 @@ public final class RedisEnterpriseListSamples {
* @param manager Entry point to RedisEnterpriseManager.
*/
public static void redisEnterpriseList(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
- manager.redisEnterprises().list(Context.NONE);
+ manager.redisEnterprises().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -646,12 +686,10 @@ public final class RedisEnterpriseListSamples {
### RedisEnterprise_ListByResourceGroup
```java
-import com.azure.core.util.Context;
-
/** Samples for RedisEnterprise ListByResourceGroup. */
public final class RedisEnterpriseListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseListByResourceGroup.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseListByResourceGroup.json
*/
/**
* Sample code: RedisEnterpriseListByResourceGroup.
@@ -660,7 +698,7 @@ public final class RedisEnterpriseListByResourceGroupSamples {
*/
public static void redisEnterpriseListByResourceGroup(
com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
- manager.redisEnterprises().listByResourceGroup("rg1", Context.NONE);
+ manager.redisEnterprises().listByResourceGroup("rg1", com.azure.core.util.Context.NONE);
}
}
```
@@ -668,7 +706,6 @@ public final class RedisEnterpriseListByResourceGroupSamples {
### RedisEnterprise_Update
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.redisenterprise.models.Cluster;
import com.azure.resourcemanager.redisenterprise.models.Sku;
import com.azure.resourcemanager.redisenterprise.models.SkuName;
@@ -679,7 +716,7 @@ import java.util.Map;
/** Samples for RedisEnterprise Update. */
public final class RedisEnterpriseUpdateSamples {
/*
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseUpdate.json
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseUpdate.json
*/
/**
* Sample code: RedisEnterpriseUpdate.
@@ -688,7 +725,10 @@ public final class RedisEnterpriseUpdateSamples {
*/
public static void redisEnterpriseUpdate(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
Cluster resource =
- manager.redisEnterprises().getByResourceGroupWithResponse("rg1", "cache1", Context.NONE).getValue();
+ manager
+ .redisEnterprises()
+ .getByResourceGroupWithResponse("rg1", "cache1", com.azure.core.util.Context.NONE)
+ .getValue();
resource
.update()
.withTags(mapOf("tag1", "value1"))
@@ -710,3 +750,22 @@ public final class RedisEnterpriseUpdateSamples {
}
```
+### Skus_List
+
+```java
+/** Samples for Skus List. */
+public final class SkusListSamples {
+ /*
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseSkusList.json
+ */
+ /**
+ * Sample code: SkusList.
+ *
+ * @param manager Entry point to RedisEnterpriseManager.
+ */
+ public static void skusList(com.azure.resourcemanager.redisenterprise.RedisEnterpriseManager manager) {
+ manager.skus().list("westus2", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/pom.xml b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/pom.xml
index b73d474dd100..7d76d1be3d95 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/pom.xml
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/pom.xml
@@ -1,3 +1,8 @@
+
4.0.0
@@ -13,7 +18,7 @@
jarMicrosoft 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-2022-01.
+ This package contains Microsoft Azure SDK for RedisEnterprise Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. REST API for managing Redis Enterprise resources in Azure. Package tag package-preview-2023-03.https://github.com/Azure/azure-sdk-for-java
@@ -38,7 +43,8 @@
UTF-8
- true
+ 0
+ 0true
@@ -52,5 +58,41 @@
azure-core-management1.10.2
+
+ com.azure
+ azure-core-test
+ 1.15.0
+ test
+
+
+ com.azure
+ azure-identity
+ 1.8.1
+ test
+
+
+ org.junit.jupiter
+ junit-jupiter-api
+ 5.9.1
+ test
+
+
+ org.junit.jupiter
+ junit-jupiter-engine
+ 5.9.1
+ test
+
+
+ org.mockito
+ mockito-core
+ 4.5.1
+ test
+
+
+ org.slf4j
+ slf4j-simple
+ 1.7.36
+ test
+
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 5281eedfd232..1d019b609924 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
@@ -31,12 +31,14 @@
import com.azure.resourcemanager.redisenterprise.implementation.PrivateLinkResourcesImpl;
import com.azure.resourcemanager.redisenterprise.implementation.RedisEnterpriseManagementClientBuilder;
import com.azure.resourcemanager.redisenterprise.implementation.RedisEnterprisesImpl;
+import com.azure.resourcemanager.redisenterprise.implementation.SkusImpl;
import com.azure.resourcemanager.redisenterprise.models.Databases;
import com.azure.resourcemanager.redisenterprise.models.Operations;
import com.azure.resourcemanager.redisenterprise.models.OperationsStatus;
import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointConnections;
import com.azure.resourcemanager.redisenterprise.models.PrivateLinkResources;
import com.azure.resourcemanager.redisenterprise.models.RedisEnterprises;
+import com.azure.resourcemanager.redisenterprise.models.Skus;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
@@ -58,6 +60,8 @@ public final class RedisEnterpriseManager {
private PrivateLinkResources privateLinkResources;
+ private Skus skus;
+
private final RedisEnterpriseManagementClient clientObject;
private RedisEnterpriseManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -223,7 +227,7 @@ public RedisEnterpriseManager authenticate(TokenCredential credential, AzureProf
.append("-")
.append("com.azure.resourcemanager.redisenterprise")
.append("/")
- .append("1.1.0-beta.1");
+ .append("1.1.0-beta.2");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -280,7 +284,11 @@ public RedisEnterpriseManager authenticate(TokenCredential credential, AzureProf
}
}
- /** @return Resource collection API of Operations. */
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
@@ -288,7 +296,11 @@ public Operations operations() {
return operations;
}
- /** @return Resource collection API of OperationsStatus. */
+ /**
+ * Gets the resource collection API of OperationsStatus.
+ *
+ * @return Resource collection API of OperationsStatus.
+ */
public OperationsStatus operationsStatus() {
if (this.operationsStatus == null) {
this.operationsStatus = new OperationsStatusImpl(clientObject.getOperationsStatus(), this);
@@ -296,7 +308,11 @@ public OperationsStatus operationsStatus() {
return operationsStatus;
}
- /** @return Resource collection API of RedisEnterprises. */
+ /**
+ * Gets the resource collection API of RedisEnterprises. It manages Cluster.
+ *
+ * @return Resource collection API of RedisEnterprises.
+ */
public RedisEnterprises redisEnterprises() {
if (this.redisEnterprises == null) {
this.redisEnterprises = new RedisEnterprisesImpl(clientObject.getRedisEnterprises(), this);
@@ -304,7 +320,11 @@ public RedisEnterprises redisEnterprises() {
return redisEnterprises;
}
- /** @return Resource collection API of Databases. */
+ /**
+ * Gets the resource collection API of Databases. It manages Database.
+ *
+ * @return Resource collection API of Databases.
+ */
public Databases databases() {
if (this.databases == null) {
this.databases = new DatabasesImpl(clientObject.getDatabases(), this);
@@ -312,7 +332,11 @@ public Databases databases() {
return databases;
}
- /** @return Resource collection API of PrivateEndpointConnections. */
+ /**
+ * 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 =
@@ -321,7 +345,11 @@ public PrivateEndpointConnections privateEndpointConnections() {
return privateEndpointConnections;
}
- /** @return Resource collection API of PrivateLinkResources. */
+ /**
+ * Gets the resource collection API of PrivateLinkResources.
+ *
+ * @return Resource collection API of PrivateLinkResources.
+ */
public PrivateLinkResources privateLinkResources() {
if (this.privateLinkResources == null) {
this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
@@ -329,6 +357,18 @@ public PrivateLinkResources privateLinkResources() {
return privateLinkResources;
}
+ /**
+ * Gets the resource collection API of Skus.
+ *
+ * @return Resource collection API of Skus.
+ */
+ public Skus skus() {
+ if (this.skus == null) {
+ this.skus = new SkusImpl(clientObject.getSkus(), this);
+ }
+ return skus;
+ }
+
/**
* @return Wrapped service client RedisEnterpriseManagementClient providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
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 b891bda86a57..d1aae1395eaa 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
@@ -15,6 +15,7 @@
import com.azure.resourcemanager.redisenterprise.fluent.models.DatabaseInner;
import com.azure.resourcemanager.redisenterprise.models.DatabaseUpdate;
import com.azure.resourcemanager.redisenterprise.models.ExportClusterParameters;
+import com.azure.resourcemanager.redisenterprise.models.FlushParameters;
import com.azure.resourcemanager.redisenterprise.models.ForceUnlinkParameters;
import com.azure.resourcemanager.redisenterprise.models.ImportClusterParameters;
import com.azure.resourcemanager.redisenterprise.models.RegenerateKeyParameters;
@@ -184,13 +185,15 @@ DatabaseInner update(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the RedisEnterprise cluster.
* @param databaseName The name of the 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 RedisEnterprise cluster.
+ * @return information about a database in a RedisEnterprise cluster along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DatabaseInner get(String resourceGroupName, String clusterName, String databaseName);
+ Response getWithResponse(
+ String resourceGroupName, String clusterName, String databaseName, Context context);
/**
* Gets information about a database in a RedisEnterprise cluster.
@@ -198,15 +201,13 @@ DatabaseInner update(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the RedisEnterprise cluster.
* @param databaseName The name of the 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 RedisEnterprise cluster along with {@link Response}.
+ * @return information about a database in a RedisEnterprise cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String clusterName, String databaseName, Context context);
+ DatabaseInner get(String resourceGroupName, String clusterName, String databaseName);
/**
* Deletes a single database.
@@ -271,13 +272,15 @@ SyncPoller, Void> beginDelete(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the RedisEnterprise cluster.
* @param databaseName The name of the 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 access keys.
+ * @return access keys along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AccessKeysInner listKeys(String resourceGroupName, String clusterName, String databaseName);
+ Response listKeysWithResponse(
+ String resourceGroupName, String clusterName, String databaseName, Context context);
/**
* Retrieves the access keys for the RedisEnterprise database.
@@ -285,15 +288,13 @@ SyncPoller, Void> beginDelete(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the RedisEnterprise cluster.
* @param databaseName The name of the 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 access keys along with {@link Response}.
+ * @return access keys.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response listKeysWithResponse(
- String resourceGroupName, String clusterName, String databaseName, Context context);
+ AccessKeysInner listKeys(String resourceGroupName, String clusterName, String databaseName);
/**
* Regenerates the RedisEnterprise database's access keys.
@@ -583,4 +584,67 @@ void forceUnlink(
String databaseName,
ForceUnlinkParameters parameters,
Context context);
+
+ /**
+ * Flushes all the keys in this database and also from its linked databases.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the RedisEnterprise cluster.
+ * @param databaseName The name of the database.
+ * @param parameters Information identifying the databases to be flushed.
+ * @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> beginFlush(
+ String resourceGroupName, String clusterName, String databaseName, FlushParameters parameters);
+
+ /**
+ * Flushes all the keys in this database and also from its linked databases.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the RedisEnterprise cluster.
+ * @param databaseName The name of the database.
+ * @param parameters Information identifying the databases to be flushed.
+ * @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> beginFlush(
+ String resourceGroupName, String clusterName, String databaseName, FlushParameters parameters, Context context);
+
+ /**
+ * Flushes all the keys in this database and also from its linked databases.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the RedisEnterprise cluster.
+ * @param databaseName The name of the database.
+ * @param parameters Information identifying the databases to be flushed.
+ * @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 flush(String resourceGroupName, String clusterName, String databaseName, FlushParameters parameters);
+
+ /**
+ * Flushes all the keys in this database and also from its linked databases.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the RedisEnterprise cluster.
+ * @param databaseName The name of the database.
+ * @param parameters Information identifying the databases to be flushed.
+ * @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 flush(
+ String resourceGroupName, String clusterName, String databaseName, FlushParameters parameters, Context context);
}
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 6030d77066ad..e45462b06ebb 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
@@ -15,27 +15,27 @@ public interface OperationsStatusClient {
/**
* Gets the status of operation.
*
- * @param location The region the operation is in.
- * @param operationId The operation's unique identifier.
+ * @param location The name of 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.
* @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 status of operation.
+ * @return the status of operation along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusInner get(String location, String operationId);
+ Response getWithResponse(String location, String operationId, Context context);
/**
* Gets the status of operation.
*
- * @param location The region the operation is in.
- * @param operationId The operation's unique identifier.
- * @param context The context to associate with this operation.
+ * @param location The name of 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.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the status of operation along with {@link Response}.
+ * @return the status of operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String location, String operationId, Context context);
+ OperationStatusInner get(String location, String operationId);
}
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 490e4244a1ba..b54a00a48fc6 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
@@ -51,14 +51,16 @@ public interface PrivateEndpointConnectionsClient {
* @param clusterName The name of the RedisEnterprise cluster.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified private endpoint connection associated with the RedisEnterprise cluster.
+ * @return the specified private endpoint connection associated with the RedisEnterprise cluster along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner get(
- String resourceGroupName, String clusterName, String privateEndpointConnectionName);
+ Response getWithResponse(
+ String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context);
/**
* Gets the specified private endpoint connection associated with the RedisEnterprise cluster.
@@ -67,16 +69,14 @@ PrivateEndpointConnectionInner get(
* @param clusterName The name of the RedisEnterprise cluster.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified private endpoint connection associated with the RedisEnterprise cluster along with {@link
- * Response}.
+ * @return the specified private endpoint connection associated with the RedisEnterprise cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context);
+ PrivateEndpointConnectionInner get(
+ String resourceGroupName, String clusterName, String privateEndpointConnectionName);
/**
* Updates the state of the specified private endpoint connection associated with the RedisEnterprise cluster.
@@ -169,12 +169,15 @@ PrivateEndpointConnectionInner put(
* @param clusterName The name of the RedisEnterprise cluster.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName);
+ Response deleteWithResponse(
+ String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context);
/**
* Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
@@ -183,13 +186,10 @@ PrivateEndpointConnectionInner put(
* @param clusterName The name of the RedisEnterprise cluster.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(
- String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context);
+ void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName);
}
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 b78ea349ab58..e1e773db6a07 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
@@ -85,4 +85,11 @@ public interface RedisEnterpriseManagementClient {
* @return the PrivateLinkResourcesClient object.
*/
PrivateLinkResourcesClient getPrivateLinkResources();
+
+ /**
+ * Gets the SkusClient object to access its operations.
+ *
+ * @return the SkusClient object.
+ */
+ SkusClient getSkus();
}
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 0e7491928737..3f8e4c243f48 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
@@ -193,28 +193,28 @@ SyncPoller, ClusterInner> beginUpdate(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the RedisEnterprise cluster.
+ * @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 RedisEnterprise cluster.
+ * @return information about a RedisEnterprise cluster along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ClusterInner getByResourceGroup(String resourceGroupName, String clusterName);
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String clusterName, Context context);
/**
* Gets information about a RedisEnterprise cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the RedisEnterprise cluster.
- * @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 RedisEnterprise cluster along with {@link Response}.
+ * @return information about a RedisEnterprise cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String clusterName, Context context);
+ ClusterInner getByResourceGroup(String resourceGroupName, String clusterName);
/**
* Lists all RedisEnterprise clusters in a resource group.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/SkusClient.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/SkusClient.java
new file mode 100644
index 000000000000..98d77370a874
--- /dev/null
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/SkusClient.java
@@ -0,0 +1,41 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redisenterprise.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.redisenterprise.fluent.models.RegionSkuDetailInner;
+
+/** An instance of this class provides access to all the operations defined in SkusClient. */
+public interface SkusClient {
+ /**
+ * Gets information about skus in specified location for the given subscription id.
+ *
+ * @param location The name of Azure region.
+ * @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 skus in specified location for the given subscription id as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String location);
+
+ /**
+ * Gets information about skus in specified location for the given subscription id.
+ *
+ * @param location The name of Azure region.
+ * @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 skus in specified location for the given subscription id as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String location, Context context);
+}
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 b2b7e74f41c9..35d134e1b124 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
@@ -7,7 +7,11 @@
import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Access keys The secret access keys used for authenticating connections to redis. */
+/**
+ * Access keys
+ *
+ *
The secret access keys used for authenticating connections to redis.
+ */
@Immutable
public final class AccessKeysInner {
/*
@@ -22,6 +26,10 @@ public final class AccessKeysInner {
@JsonProperty(value = "secondaryKey", access = JsonProperty.Access.WRITE_ONLY)
private String secondaryKey;
+ /** Creates an instance of AccessKeysInner class. */
+ public AccessKeysInner() {
+ }
+
/**
* Get the primaryKey property: The current primary key that clients can use to authenticate.
*
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 968b0cca7812..5124741e5fae 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
@@ -6,7 +6,10 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryption;
+import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentity;
import com.azure.resourcemanager.redisenterprise.models.ProvisioningState;
import com.azure.resourcemanager.redisenterprise.models.ResourceState;
import com.azure.resourcemanager.redisenterprise.models.Sku;
@@ -31,11 +34,29 @@ public final class ClusterInner extends Resource {
private List zones;
/*
- * RedisEnterprise cluster properties Other properties of the cluster.
+ * The identity of the resource.
+ */
+ @JsonProperty(value = "identity")
+ private ManagedServiceIdentity identity;
+
+ /*
+ * RedisEnterprise cluster properties
+ *
+ * Other properties of the cluster.
*/
@JsonProperty(value = "properties")
private ClusterProperties innerProperties;
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** Creates an instance of ClusterInner class. */
+ public ClusterInner() {
+ }
+
/**
* Get the sku property: The SKU to create, which affects price, performance, and features.
*
@@ -77,7 +98,29 @@ public ClusterInner withZones(List zones) {
}
/**
- * Get the innerProperties property: RedisEnterprise cluster properties Other properties of the cluster.
+ * Get the identity property: The identity of the resource.
+ *
+ * @return the identity value.
+ */
+ public ManagedServiceIdentity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The identity of the resource.
+ *
+ * @param identity the identity value to set.
+ * @return the ClusterInner object itself.
+ */
+ public ClusterInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the innerProperties property: RedisEnterprise cluster properties
+ *
+ *
Other properties of the cluster.
*
* @return the innerProperties value.
*/
@@ -85,6 +128,15 @@ private ClusterProperties 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;
+ }
+
/** {@inheritDoc} */
@Override
public ClusterInner withLocation(String location) {
@@ -122,6 +174,29 @@ public ClusterInner withMinimumTlsVersion(TlsVersion minimumTlsVersion) {
return this;
}
+ /**
+ * Get the encryption property: Encryption-at-rest configuration for the cluster.
+ *
+ * @return the encryption value.
+ */
+ public ClusterPropertiesEncryption encryption() {
+ return this.innerProperties() == null ? null : this.innerProperties().encryption();
+ }
+
+ /**
+ * Set the encryption property: Encryption-at-rest configuration for the cluster.
+ *
+ * @param encryption the encryption value to set.
+ * @return the ClusterInner object itself.
+ */
+ public ClusterInner withEncryption(ClusterPropertiesEncryption encryption) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ClusterProperties();
+ }
+ this.innerProperties().withEncryption(encryption);
+ return this;
+ }
+
/**
* Get the hostname property: DNS name of the cluster endpoint.
*
@@ -181,6 +256,9 @@ public void validate() {
} else {
sku().validate();
}
+ if (identity() != null) {
+ identity().validate();
+ }
if (innerProperties() != null) {
innerProperties().validate();
}
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 431fa987f712..4a5059d7521b 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
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.redisenterprise.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryption;
import com.azure.resourcemanager.redisenterprise.models.ProvisioningState;
import com.azure.resourcemanager.redisenterprise.models.ResourceState;
import com.azure.resourcemanager.redisenterprise.models.TlsVersion;
@@ -12,8 +13,9 @@
import java.util.List;
/**
- * RedisEnterprise cluster properties Properties of RedisEnterprise clusters, as opposed to general resource properties
- * like location, tags.
+ * RedisEnterprise cluster properties
+ *
+ *
Properties of RedisEnterprise clusters, as opposed to general resource properties like location, tags.
*/
@Fluent
public final class ClusterProperties {
@@ -23,6 +25,12 @@ public final class ClusterProperties {
@JsonProperty(value = "minimumTlsVersion")
private TlsVersion minimumTlsVersion;
+ /*
+ * Encryption-at-rest configuration for the cluster.
+ */
+ @JsonProperty(value = "encryption")
+ private ClusterPropertiesEncryption encryption;
+
/*
* DNS name of the cluster endpoint
*/
@@ -48,12 +56,15 @@ public final class ClusterProperties {
private String redisVersion;
/*
- * List of private endpoint connections associated with the specified
- * RedisEnterprise cluster
+ * List of private endpoint connections associated with the specified RedisEnterprise cluster
*/
@JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
private List privateEndpointConnections;
+ /** Creates an instance of ClusterProperties class. */
+ public ClusterProperties() {
+ }
+
/**
* Get the minimumTlsVersion property: The minimum TLS version for the cluster to support, e.g. '1.2'.
*
@@ -74,6 +85,26 @@ public ClusterProperties withMinimumTlsVersion(TlsVersion minimumTlsVersion) {
return this;
}
+ /**
+ * Get the encryption property: Encryption-at-rest configuration for the cluster.
+ *
+ * @return the encryption value.
+ */
+ public ClusterPropertiesEncryption encryption() {
+ return this.encryption;
+ }
+
+ /**
+ * Set the encryption property: Encryption-at-rest configuration for the cluster.
+ *
+ * @param encryption the encryption value to set.
+ * @return the ClusterProperties object itself.
+ */
+ public ClusterProperties withEncryption(ClusterPropertiesEncryption encryption) {
+ this.encryption = encryption;
+ return this;
+ }
+
/**
* Get the hostname property: DNS name of the cluster endpoint.
*
@@ -126,6 +157,9 @@ public List privateEndpointConnections() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (encryption() != null) {
+ encryption().validate();
+ }
if (privateEndpointConnections() != null) {
privateEndpointConnections().forEach(e -> e.validate());
}
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 e9b8a3d0ae49..e3682443bb98 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/DatabaseInner.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/DatabaseInner.java
@@ -6,6 +6,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy;
import com.azure.resourcemanager.redisenterprise.models.DatabasePropertiesGeoReplication;
import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy;
@@ -21,13 +22,27 @@
@Fluent
public final class DatabaseInner extends ProxyResource {
/*
- * RedisEnterprise database properties Other properties of the database.
+ * RedisEnterprise database properties
+ *
+ * Other properties of the database.
*/
@JsonProperty(value = "properties")
private DatabaseProperties innerProperties;
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** Creates an instance of DatabaseInner class. */
+ public DatabaseInner() {
+ }
+
/**
- * Get the innerProperties property: RedisEnterprise database properties Other properties of the database.
+ * Get the innerProperties property: RedisEnterprise database properties
+ *
+ *
Other properties of the database.
*
* @return the innerProperties value.
*/
@@ -35,6 +50,15 @@ private DatabaseProperties innerProperties() {
return this.innerProperties;
}
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the clientProtocol property: Specifies whether redis clients can connect using TLS-encrypted or plaintext
* redis protocols. Default is TLS-encrypted.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/DatabaseProperties.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/DatabaseProperties.java
index 346b8be291f8..41e9bed19b12 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/DatabaseProperties.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/DatabaseProperties.java
@@ -17,21 +17,21 @@
import java.util.List;
/**
- * RedisEnterprise database properties Properties of RedisEnterprise databases, as opposed to general resource
- * properties like location, tags.
+ * RedisEnterprise database properties
+ *
+ *
Properties of RedisEnterprise databases, as opposed to general resource properties like location, tags.
*/
@Fluent
public final class DatabaseProperties {
/*
- * Specifies whether redis clients can connect using TLS-encrypted or
- * plaintext redis protocols. Default is TLS-encrypted.
+ * Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is
+ * TLS-encrypted.
*/
@JsonProperty(value = "clientProtocol")
private Protocol clientProtocol;
/*
- * TCP port of the database endpoint. Specified at create time. Defaults to
- * an available port.
+ * TCP port of the database endpoint. Specified at create time. Defaults to an available port.
*/
@JsonProperty(value = "port")
private Integer port;
@@ -67,19 +67,21 @@ public final class DatabaseProperties {
private Persistence persistence;
/*
- * Optional set of redis modules to enable in this database - modules can
- * only be added at creation time.
+ * Optional set of redis modules to enable in this database - modules can only be added at creation time.
*/
@JsonProperty(value = "modules")
private List modules;
/*
- * Optional set of properties to configure geo replication for this
- * database.
+ * Optional set of properties to configure geo replication for this database.
*/
@JsonProperty(value = "geoReplication")
private DatabasePropertiesGeoReplication geoReplication;
+ /** Creates an instance of DatabaseProperties class. */
+ public DatabaseProperties() {
+ }
+
/**
* Get the clientProtocol property: Specifies whether redis clients can connect using TLS-encrypted or plaintext
* redis protocols. Default is TLS-encrypted.
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 b94d16ebc1d1..679f57b6c954 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
@@ -10,20 +10,23 @@
import com.azure.resourcemanager.redisenterprise.models.Origin;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** REST API Operation Details of a REST API operation, returned from the Resource Provider Operations API. */
+/**
+ * REST API Operation
+ *
+ *
Details of a REST API operation, returned from the Resource Provider Operations API.
+ */
@Fluent
public final class OperationInner {
/*
- * The name of the operation, as per Resource-Based Access Control (RBAC).
- * Examples: "Microsoft.Compute/virtualMachines/write",
- * "Microsoft.Compute/virtualMachines/capture/action"
+ * The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
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
+ * ARM/control-plane operations.
*/
@JsonProperty(value = "isDataAction", access = JsonProperty.Access.WRITE_ONLY)
private Boolean isDataAction;
@@ -35,19 +38,22 @@ public final class OperationInner {
private OperationDisplay display;
/*
- * The intended executor of the operation; as in Resource Based Access
- * Control (RBAC) and audit logs UX. Default value is "user,system"
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
+ * value is "user,system"
*/
@JsonProperty(value = "origin", access = JsonProperty.Access.WRITE_ONLY)
private Origin origin;
/*
- * Enum. Indicates the action type. "Internal" refers to actions that are
- * for internal only APIs.
+ * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
*/
@JsonProperty(value = "actionType", access = JsonProperty.Access.WRITE_ONLY)
private ActionType actionType;
+ /** Creates an instance of OperationInner class. */
+ public OperationInner() {
+ }
+
/**
* Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
* "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
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 242057dbaee6..0f2c8fa71b65 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
@@ -42,11 +42,17 @@ public final class OperationStatusInner {
private String status;
/*
- * Error response Error response describing why the operation failed.
+ * Error response
+ *
+ * Error response describing why the operation failed.
*/
@JsonProperty(value = "error")
private ManagementError error;
+ /** Creates an instance of OperationStatusInner class. */
+ public OperationStatusInner() {
+ }
+
/**
* Get the id property: The operation's unique id.
*
@@ -148,7 +154,9 @@ public OperationStatusInner withStatus(String status) {
}
/**
- * Get the error property: Error response Error response describing why the operation failed.
+ * Get the error property: Error response
+ *
+ *
Error response describing why the operation failed.
*
* @return the error value.
*/
@@ -157,7 +165,9 @@ public ManagementError error() {
}
/**
- * Set the error property: Error response Error response describing why the operation failed.
+ * Set the error property: Error response
+ *
+ *
Error response describing why the operation failed.
*
* @param error the error value to set.
* @return the OperationStatusInner object itself.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/PrivateEndpointConnectionInner.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/PrivateEndpointConnectionInner.java
index 08defe8fc702..af62758cf6ae 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/PrivateEndpointConnectionInner.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/PrivateEndpointConnectionInner.java
@@ -6,6 +6,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
import com.azure.resourcemanager.redisenterprise.models.PrivateEndpoint;
import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointConnectionProvisioningState;
import com.azure.resourcemanager.redisenterprise.models.PrivateLinkServiceConnectionState;
@@ -20,6 +21,16 @@ public final class PrivateEndpointConnectionInner extends ProxyResource {
@JsonProperty(value = "properties")
private PrivateEndpointConnectionProperties innerProperties;
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** Creates an instance of PrivateEndpointConnectionInner class. */
+ public PrivateEndpointConnectionInner() {
+ }
+
/**
* Get the innerProperties property: Resource properties.
*
@@ -29,6 +40,15 @@ private PrivateEndpointConnectionProperties 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 privateEndpoint property: The resource of private end point.
*
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 932d6da61c07..4a0b49721c26 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
@@ -21,8 +21,7 @@ public final class PrivateEndpointConnectionProperties {
private PrivateEndpoint privateEndpoint;
/*
- * A collection of information about the state of the connection between
- * service consumer and provider.
+ * A collection of information about the state of the connection between service consumer and provider.
*/
@JsonProperty(value = "privateLinkServiceConnectionState", required = true)
private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
@@ -33,6 +32,10 @@ public final class PrivateEndpointConnectionProperties {
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private PrivateEndpointConnectionProvisioningState provisioningState;
+ /** Creates an instance of PrivateEndpointConnectionProperties class. */
+ public PrivateEndpointConnectionProperties() {
+ }
+
/**
* Get the privateEndpoint property: The resource of private end point.
*
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 6f78217b3091..e4db579f0bb8 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
@@ -6,6 +6,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
@@ -18,6 +19,16 @@ public final class PrivateLinkResourceInner extends ProxyResource {
@JsonProperty(value = "properties")
private PrivateLinkResourceProperties innerProperties;
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** Creates an instance of PrivateLinkResourceInner class. */
+ public PrivateLinkResourceInner() {
+ }
+
/**
* Get the innerProperties property: Resource properties.
*
@@ -27,6 +38,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 groupId property: The private link resource group id.
*
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 802b87d2d897..5b134967b42d 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
@@ -29,6 +29,10 @@ public final class PrivateLinkResourceProperties {
@JsonProperty(value = "requiredZoneNames")
private List requiredZoneNames;
+ /** Creates an instance of PrivateLinkResourceProperties class. */
+ public PrivateLinkResourceProperties() {
+ }
+
/**
* Get the groupId property: The private link resource group id.
*
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/RegionSkuDetailInner.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/RegionSkuDetailInner.java
new file mode 100644
index 000000000000..4b42bfc2cf4f
--- /dev/null
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/RegionSkuDetailInner.java
@@ -0,0 +1,120 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.redisenterprise.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.redisenterprise.models.LocationInfo;
+import com.azure.resourcemanager.redisenterprise.models.SkuDetail;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Region Sku Detail
+ *
+ *
Details about the location requested and the available skus in the location.
+ */
+@Fluent
+public final class RegionSkuDetailInner {
+ /*
+ * Resource type which has the SKU, such as Microsoft.Cache/redisEnterprise
+ */
+ @JsonProperty(value = "resourceType")
+ private String resourceType;
+
+ /*
+ * Details about location and its capabilities
+ */
+ @JsonProperty(value = "locationInfo")
+ private LocationInfo locationInfo;
+
+ /*
+ * Sku Detail
+ *
+ * Details about available skus
+ */
+ @JsonProperty(value = "skuDetails")
+ private SkuDetail skuDetails;
+
+ /** Creates an instance of RegionSkuDetailInner class. */
+ public RegionSkuDetailInner() {
+ }
+
+ /**
+ * Get the resourceType property: Resource type which has the SKU, such as Microsoft.Cache/redisEnterprise.
+ *
+ * @return the resourceType value.
+ */
+ public String resourceType() {
+ return this.resourceType;
+ }
+
+ /**
+ * Set the resourceType property: Resource type which has the SKU, such as Microsoft.Cache/redisEnterprise.
+ *
+ * @param resourceType the resourceType value to set.
+ * @return the RegionSkuDetailInner object itself.
+ */
+ public RegionSkuDetailInner withResourceType(String resourceType) {
+ this.resourceType = resourceType;
+ return this;
+ }
+
+ /**
+ * Get the locationInfo property: Details about location and its capabilities.
+ *
+ * @return the locationInfo value.
+ */
+ public LocationInfo locationInfo() {
+ return this.locationInfo;
+ }
+
+ /**
+ * Set the locationInfo property: Details about location and its capabilities.
+ *
+ * @param locationInfo the locationInfo value to set.
+ * @return the RegionSkuDetailInner object itself.
+ */
+ public RegionSkuDetailInner withLocationInfo(LocationInfo locationInfo) {
+ this.locationInfo = locationInfo;
+ return this;
+ }
+
+ /**
+ * Get the skuDetails property: Sku Detail
+ *
+ *
Details about available skus.
+ *
+ * @return the skuDetails value.
+ */
+ public SkuDetail skuDetails() {
+ return this.skuDetails;
+ }
+
+ /**
+ * Set the skuDetails property: Sku Detail
+ *
+ *
Details about available skus.
+ *
+ * @param skuDetails the skuDetails value to set.
+ * @return the RegionSkuDetailInner object itself.
+ */
+ public RegionSkuDetailInner withSkuDetails(SkuDetail skuDetails) {
+ this.skuDetails = skuDetails;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (locationInfo() != null) {
+ locationInfo().validate();
+ }
+ if (skuDetails() != null) {
+ skuDetails().validate();
+ }
+ }
+}
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 f862768b8cd4..39e8896e1b34 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
@@ -5,11 +5,14 @@
package com.azure.resourcemanager.redisenterprise.implementation;
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;
import com.azure.resourcemanager.redisenterprise.models.Cluster;
+import com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryption;
import com.azure.resourcemanager.redisenterprise.models.ClusterUpdate;
+import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentity;
import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointConnection;
import com.azure.resourcemanager.redisenterprise.models.ProvisioningState;
import com.azure.resourcemanager.redisenterprise.models.ResourceState;
@@ -63,10 +66,22 @@ public List zones() {
}
}
+ public ManagedServiceIdentity identity() {
+ return this.innerModel().identity();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public TlsVersion minimumTlsVersion() {
return this.innerModel().minimumTlsVersion();
}
+ public ClusterPropertiesEncryption encryption() {
+ return this.innerModel().encryption();
+ }
+
public String hostname() {
return this.innerModel().hostname();
}
@@ -105,6 +120,10 @@ public String regionName() {
return this.location();
}
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
public ClusterInner innerModel() {
return this.innerObject;
}
@@ -234,6 +253,16 @@ public ClusterImpl withZones(List zones) {
return this;
}
+ public ClusterImpl withIdentity(ManagedServiceIdentity identity) {
+ if (isInCreateMode()) {
+ this.innerModel().withIdentity(identity);
+ return this;
+ } else {
+ this.updateParameters.withIdentity(identity);
+ return this;
+ }
+ }
+
public ClusterImpl withMinimumTlsVersion(TlsVersion minimumTlsVersion) {
if (isInCreateMode()) {
this.innerModel().withMinimumTlsVersion(minimumTlsVersion);
@@ -244,6 +273,16 @@ public ClusterImpl withMinimumTlsVersion(TlsVersion minimumTlsVersion) {
}
}
+ public ClusterImpl withEncryption(ClusterPropertiesEncryption encryption) {
+ if (isInCreateMode()) {
+ this.innerModel().withEncryption(encryption);
+ return this;
+ } else {
+ this.updateParameters.withEncryption(encryption);
+ return this;
+ }
+ }
+
private boolean isInCreateMode() {
return this.innerModel().id() == null;
}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/DatabaseImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/DatabaseImpl.java
index b76e39308002..851a39d700df 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/DatabaseImpl.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/DatabaseImpl.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.redisenterprise.implementation;
import com.azure.core.http.rest.Response;
+import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.redisenterprise.fluent.models.DatabaseInner;
import com.azure.resourcemanager.redisenterprise.models.AccessKeys;
@@ -14,6 +15,7 @@
import com.azure.resourcemanager.redisenterprise.models.DatabaseUpdate;
import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy;
import com.azure.resourcemanager.redisenterprise.models.ExportClusterParameters;
+import com.azure.resourcemanager.redisenterprise.models.FlushParameters;
import com.azure.resourcemanager.redisenterprise.models.ForceUnlinkParameters;
import com.azure.resourcemanager.redisenterprise.models.ImportClusterParameters;
import com.azure.resourcemanager.redisenterprise.models.Module;
@@ -42,6 +44,10 @@ public String type() {
return this.innerModel().type();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public Protocol clientProtocol() {
return this.innerModel().clientProtocol();
}
@@ -83,6 +89,10 @@ public DatabasePropertiesGeoReplication geoReplication() {
return this.innerModel().geoReplication();
}
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
public DatabaseInner innerModel() {
return this.innerObject;
}
@@ -181,14 +191,14 @@ public Database refresh(Context context) {
return this;
}
- public AccessKeys listKeys() {
- return serviceManager.databases().listKeys(resourceGroupName, clusterName, databaseName);
- }
-
public Response listKeysWithResponse(Context context) {
return serviceManager.databases().listKeysWithResponse(resourceGroupName, clusterName, databaseName, context);
}
+ public AccessKeys listKeys() {
+ return serviceManager.databases().listKeys(resourceGroupName, clusterName, databaseName);
+ }
+
public AccessKeys regenerateKey(RegenerateKeyParameters parameters) {
return serviceManager.databases().regenerateKey(resourceGroupName, clusterName, databaseName, parameters);
}
@@ -223,6 +233,14 @@ public void forceUnlink(ForceUnlinkParameters parameters, Context context) {
serviceManager.databases().forceUnlink(resourceGroupName, clusterName, databaseName, parameters, context);
}
+ public void flush(FlushParameters parameters) {
+ serviceManager.databases().flush(resourceGroupName, clusterName, databaseName, parameters);
+ }
+
+ public void flush(FlushParameters parameters, Context context) {
+ serviceManager.databases().flush(resourceGroupName, clusterName, databaseName, parameters, context);
+ }
+
public DatabaseImpl withClientProtocol(Protocol clientProtocol) {
if (isInCreateMode()) {
this.innerModel().withClientProtocol(clientProtocol);
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 8388c3b650ca..da6c50b78da2 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
@@ -39,6 +39,7 @@
import com.azure.resourcemanager.redisenterprise.models.DatabaseList;
import com.azure.resourcemanager.redisenterprise.models.DatabaseUpdate;
import com.azure.resourcemanager.redisenterprise.models.ExportClusterParameters;
+import com.azure.resourcemanager.redisenterprise.models.FlushParameters;
import com.azure.resourcemanager.redisenterprise.models.ForceUnlinkParameters;
import com.azure.resourcemanager.redisenterprise.models.ImportClusterParameters;
import com.azure.resourcemanager.redisenterprise.models.RegenerateKeyParameters;
@@ -71,7 +72,7 @@ public final class DatabasesClientImpl implements DatabasesClient {
*/
@Host("{$host}")
@ServiceInterface(name = "RedisEnterpriseManag")
- private interface DatabasesService {
+ public interface DatabasesService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache"
@@ -237,6 +238,23 @@ Mono>> forceUnlink(
@HeaderParam("Accept") String accept,
Context context);
+ @Headers({"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,
+ @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,
+ Context context);
+
@Headers({"Content-Type: application/json"})
@Get("{nextLink}")
@ExpectedResponses({200})
@@ -615,7 +633,7 @@ private PollerFlux, DatabaseInner> beginCreateAsync(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, DatabaseInner> beginCreate(
String resourceGroupName, String clusterName, String databaseName, DatabaseInner parameters) {
- return beginCreateAsync(resourceGroupName, clusterName, databaseName, parameters).getSyncPoller();
+ return this.beginCreateAsync(resourceGroupName, clusterName, databaseName, parameters).getSyncPoller();
}
/**
@@ -634,7 +652,7 @@ public SyncPoller, DatabaseInner> beginCreate(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, DatabaseInner> beginCreate(
String resourceGroupName, String clusterName, String databaseName, DatabaseInner parameters, Context context) {
- return beginCreateAsync(resourceGroupName, clusterName, databaseName, parameters, context).getSyncPoller();
+ return this.beginCreateAsync(resourceGroupName, clusterName, databaseName, parameters, context).getSyncPoller();
}
/**
@@ -902,7 +920,7 @@ private PollerFlux, DatabaseInner> beginUpdateAsync(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, DatabaseInner> beginUpdate(
String resourceGroupName, String clusterName, String databaseName, DatabaseUpdate parameters) {
- return beginUpdateAsync(resourceGroupName, clusterName, databaseName, parameters).getSyncPoller();
+ return this.beginUpdateAsync(resourceGroupName, clusterName, databaseName, parameters).getSyncPoller();
}
/**
@@ -921,7 +939,7 @@ public SyncPoller, DatabaseInner> beginUpdate(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, DatabaseInner> beginUpdate(
String resourceGroupName, String clusterName, String databaseName, DatabaseUpdate parameters, Context context) {
- return beginUpdateAsync(resourceGroupName, clusterName, databaseName, parameters, context).getSyncPoller();
+ return this.beginUpdateAsync(resourceGroupName, clusterName, databaseName, parameters, context).getSyncPoller();
}
/**
@@ -1122,14 +1140,7 @@ private Mono> getWithResponseAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(String resourceGroupName, String clusterName, String databaseName) {
return getWithResponseAsync(resourceGroupName, clusterName, databaseName)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
@@ -1138,14 +1149,16 @@ private Mono getAsync(String resourceGroupName, String clusterNam
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the RedisEnterprise cluster.
* @param databaseName The name of the database.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about a database in a RedisEnterprise cluster.
+ * @return information about a database in a RedisEnterprise cluster along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public DatabaseInner get(String resourceGroupName, String clusterName, String databaseName) {
- return getAsync(resourceGroupName, clusterName, databaseName).block();
+ public Response getWithResponse(
+ String resourceGroupName, String clusterName, String databaseName, Context context) {
+ return getWithResponseAsync(resourceGroupName, clusterName, databaseName, context).block();
}
/**
@@ -1154,16 +1167,14 @@ public DatabaseInner get(String resourceGroupName, String clusterName, String da
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the RedisEnterprise cluster.
* @param databaseName The name of the database.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about a database in a RedisEnterprise cluster along with {@link Response}.
+ * @return information about a database in a RedisEnterprise cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(
- String resourceGroupName, String clusterName, String databaseName, Context context) {
- return getWithResponseAsync(resourceGroupName, clusterName, databaseName, context).block();
+ public DatabaseInner get(String resourceGroupName, String clusterName, String databaseName) {
+ return getWithResponse(resourceGroupName, clusterName, databaseName, Context.NONE).getValue();
}
/**
@@ -1328,7 +1339,7 @@ private PollerFlux, Void> beginDeleteAsync(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String clusterName, String databaseName) {
- return beginDeleteAsync(resourceGroupName, clusterName, databaseName).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, clusterName, databaseName).getSyncPoller();
}
/**
@@ -1346,7 +1357,7 @@ public SyncPoller, Void> beginDelete(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String clusterName, String databaseName, Context context) {
- return beginDeleteAsync(resourceGroupName, clusterName, databaseName, context).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, clusterName, databaseName, context).getSyncPoller();
}
/**
@@ -1535,14 +1546,7 @@ private Mono> listKeysWithResponseAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono listKeysAsync(String resourceGroupName, String clusterName, String databaseName) {
return listKeysWithResponseAsync(resourceGroupName, clusterName, databaseName)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
@@ -1551,14 +1555,16 @@ private Mono listKeysAsync(String resourceGroupName, String clu
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the RedisEnterprise cluster.
* @param databaseName The name of the 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 access keys.
+ * @return access keys along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public AccessKeysInner listKeys(String resourceGroupName, String clusterName, String databaseName) {
- return listKeysAsync(resourceGroupName, clusterName, databaseName).block();
+ public Response listKeysWithResponse(
+ String resourceGroupName, String clusterName, String databaseName, Context context) {
+ return listKeysWithResponseAsync(resourceGroupName, clusterName, databaseName, context).block();
}
/**
@@ -1567,16 +1573,14 @@ public AccessKeysInner listKeys(String resourceGroupName, String clusterName, St
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the RedisEnterprise cluster.
* @param databaseName The name of the 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 access keys along with {@link Response}.
+ * @return access keys.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response listKeysWithResponse(
- String resourceGroupName, String clusterName, String databaseName, Context context) {
- return listKeysWithResponseAsync(resourceGroupName, clusterName, databaseName, context).block();
+ public AccessKeysInner listKeys(String resourceGroupName, String clusterName, String databaseName) {
+ return listKeysWithResponse(resourceGroupName, clusterName, databaseName, Context.NONE).getValue();
}
/**
@@ -1772,7 +1776,7 @@ private PollerFlux, AccessKeysInner> beginRegenerate
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, AccessKeysInner> beginRegenerateKey(
String resourceGroupName, String clusterName, String databaseName, RegenerateKeyParameters parameters) {
- return beginRegenerateKeyAsync(resourceGroupName, clusterName, databaseName, parameters).getSyncPoller();
+ return this.beginRegenerateKeyAsync(resourceGroupName, clusterName, databaseName, parameters).getSyncPoller();
}
/**
@@ -1795,7 +1799,8 @@ public SyncPoller, AccessKeysInner> beginRegenerateK
String databaseName,
RegenerateKeyParameters parameters,
Context context) {
- return beginRegenerateKeyAsync(resourceGroupName, clusterName, databaseName, parameters, context)
+ return this
+ .beginRegenerateKeyAsync(resourceGroupName, clusterName, databaseName, parameters, context)
.getSyncPoller();
}
@@ -2073,7 +2078,7 @@ private PollerFlux, Void> beginImportMethodAsync(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginImportMethod(
String resourceGroupName, String clusterName, String databaseName, ImportClusterParameters parameters) {
- return beginImportMethodAsync(resourceGroupName, clusterName, databaseName, parameters).getSyncPoller();
+ return this.beginImportMethodAsync(resourceGroupName, clusterName, databaseName, parameters).getSyncPoller();
}
/**
@@ -2096,7 +2101,8 @@ public SyncPoller, Void> beginImportMethod(
String databaseName,
ImportClusterParameters parameters,
Context context) {
- return beginImportMethodAsync(resourceGroupName, clusterName, databaseName, parameters, context)
+ return this
+ .beginImportMethodAsync(resourceGroupName, clusterName, databaseName, parameters, context)
.getSyncPoller();
}
@@ -2372,7 +2378,7 @@ private PollerFlux, Void> beginExportAsync(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginExport(
String resourceGroupName, String clusterName, String databaseName, ExportClusterParameters parameters) {
- return beginExportAsync(resourceGroupName, clusterName, databaseName, parameters).getSyncPoller();
+ return this.beginExportAsync(resourceGroupName, clusterName, databaseName, parameters).getSyncPoller();
}
/**
@@ -2395,7 +2401,7 @@ public SyncPoller, Void> beginExport(
String databaseName,
ExportClusterParameters parameters,
Context context) {
- return beginExportAsync(resourceGroupName, clusterName, databaseName, parameters, context).getSyncPoller();
+ return this.beginExportAsync(resourceGroupName, clusterName, databaseName, parameters, context).getSyncPoller();
}
/**
@@ -2670,7 +2676,7 @@ private PollerFlux, Void> beginForceUnlinkAsync(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginForceUnlink(
String resourceGroupName, String clusterName, String databaseName, ForceUnlinkParameters parameters) {
- return beginForceUnlinkAsync(resourceGroupName, clusterName, databaseName, parameters).getSyncPoller();
+ return this.beginForceUnlinkAsync(resourceGroupName, clusterName, databaseName, parameters).getSyncPoller();
}
/**
@@ -2693,7 +2699,9 @@ public SyncPoller, Void> beginForceUnlink(
String databaseName,
ForceUnlinkParameters parameters,
Context context) {
- return beginForceUnlinkAsync(resourceGroupName, clusterName, databaseName, parameters, context).getSyncPoller();
+ return this
+ .beginForceUnlinkAsync(resourceGroupName, clusterName, databaseName, parameters, context)
+ .getSyncPoller();
}
/**
@@ -2780,10 +2788,308 @@ public void forceUnlink(
forceUnlinkAsync(resourceGroupName, clusterName, databaseName, parameters, context).block();
}
+ /**
+ * Flushes all the keys in this database and also from its linked databases.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the RedisEnterprise cluster.
+ * @param databaseName The name of the database.
+ * @param parameters Information identifying the databases to be flushed.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> flushWithResponseAsync(
+ String resourceGroupName, String clusterName, String databaseName, FlushParameters 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 accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .flush(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ clusterName,
+ databaseName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Flushes all the keys in this database and also from its linked databases.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the RedisEnterprise cluster.
+ * @param databaseName The name of the database.
+ * @param parameters Information identifying the databases to be flushed.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> flushWithResponseAsync(
+ String resourceGroupName,
+ String clusterName,
+ String databaseName,
+ FlushParameters parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (clusterName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
+ }
+ if (databaseName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .flush(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ clusterName,
+ databaseName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Flushes all the keys in this database and also from its linked databases.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the RedisEnterprise cluster.
+ * @param databaseName The name of the database.
+ * @param parameters Information identifying the databases to be flushed.
+ * @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> beginFlushAsync(
+ String resourceGroupName, String clusterName, String databaseName, FlushParameters parameters) {
+ Mono>> mono =
+ flushWithResponseAsync(resourceGroupName, clusterName, databaseName, parameters);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ }
+
+ /**
+ * Flushes all the keys in this database and also from its linked databases.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the RedisEnterprise cluster.
+ * @param databaseName The name of the database.
+ * @param parameters Information identifying the databases to be flushed.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginFlushAsync(
+ String resourceGroupName,
+ String clusterName,
+ String databaseName,
+ FlushParameters parameters,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ flushWithResponseAsync(resourceGroupName, clusterName, databaseName, parameters, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Flushes all the keys in this database and also from its linked databases.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the RedisEnterprise cluster.
+ * @param databaseName The name of the database.
+ * @param parameters Information identifying the databases to be flushed.
+ * @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> beginFlush(
+ String resourceGroupName, String clusterName, String databaseName, FlushParameters parameters) {
+ return this.beginFlushAsync(resourceGroupName, clusterName, databaseName, parameters).getSyncPoller();
+ }
+
+ /**
+ * Flushes all the keys in this database and also from its linked databases.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the RedisEnterprise cluster.
+ * @param databaseName The name of the database.
+ * @param parameters Information identifying the databases to be flushed.
+ * @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> beginFlush(
+ String resourceGroupName,
+ String clusterName,
+ String databaseName,
+ FlushParameters parameters,
+ Context context) {
+ return this.beginFlushAsync(resourceGroupName, clusterName, databaseName, parameters, context).getSyncPoller();
+ }
+
+ /**
+ * Flushes all the keys in this database and also from its linked databases.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the RedisEnterprise cluster.
+ * @param databaseName The name of the database.
+ * @param parameters Information identifying the databases to be flushed.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono flushAsync(
+ String resourceGroupName, String clusterName, String databaseName, FlushParameters parameters) {
+ return beginFlushAsync(resourceGroupName, clusterName, databaseName, parameters)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Flushes all the keys in this database and also from its linked databases.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the RedisEnterprise cluster.
+ * @param databaseName The name of the database.
+ * @param parameters Information identifying the databases to be flushed.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono flushAsync(
+ String resourceGroupName,
+ String clusterName,
+ String databaseName,
+ FlushParameters parameters,
+ Context context) {
+ return beginFlushAsync(resourceGroupName, clusterName, databaseName, parameters, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Flushes all the keys in this database and also from its linked databases.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the RedisEnterprise cluster.
+ * @param databaseName The name of the database.
+ * @param parameters Information identifying the databases to be flushed.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void flush(String resourceGroupName, String clusterName, String databaseName, FlushParameters parameters) {
+ flushAsync(resourceGroupName, clusterName, databaseName, parameters).block();
+ }
+
+ /**
+ * Flushes all the keys in this database and also from its linked databases.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the RedisEnterprise cluster.
+ * @param databaseName The name of the database.
+ * @param parameters Information identifying the databases to be flushed.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void flush(
+ String resourceGroupName,
+ String clusterName,
+ String databaseName,
+ FlushParameters parameters,
+ Context context) {
+ flushAsync(resourceGroupName, clusterName, databaseName, parameters, context).block();
+ }
+
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ *
The nextLink parameter.
* @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.
@@ -2819,7 +3125,8 @@ private Mono> listByClusterNextSinglePageAsync(Stri
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ *
The nextLink parameter.
* @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.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/DatabasesImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/DatabasesImpl.java
index 998b30c4b50f..a582b7f13129 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/DatabasesImpl.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/DatabasesImpl.java
@@ -16,6 +16,7 @@
import com.azure.resourcemanager.redisenterprise.models.Database;
import com.azure.resourcemanager.redisenterprise.models.Databases;
import com.azure.resourcemanager.redisenterprise.models.ExportClusterParameters;
+import com.azure.resourcemanager.redisenterprise.models.FlushParameters;
import com.azure.resourcemanager.redisenterprise.models.ForceUnlinkParameters;
import com.azure.resourcemanager.redisenterprise.models.ImportClusterParameters;
import com.azure.resourcemanager.redisenterprise.models.RegenerateKeyParameters;
@@ -44,15 +45,6 @@ public PagedIterable listByCluster(String resourceGroupName, String cl
return Utils.mapPage(inner, inner1 -> new DatabaseImpl(inner1, this.manager()));
}
- public Database get(String resourceGroupName, String clusterName, String databaseName) {
- DatabaseInner inner = this.serviceClient().get(resourceGroupName, clusterName, databaseName);
- if (inner != null) {
- return new DatabaseImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response getWithResponse(
String resourceGroupName, String clusterName, String databaseName, Context context) {
Response inner =
@@ -68,6 +60,15 @@ public Response getWithResponse(
}
}
+ public Database get(String resourceGroupName, String clusterName, String databaseName) {
+ DatabaseInner inner = this.serviceClient().get(resourceGroupName, clusterName, databaseName);
+ if (inner != null) {
+ return new DatabaseImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public void delete(String resourceGroupName, String clusterName, String databaseName) {
this.serviceClient().delete(resourceGroupName, clusterName, databaseName);
}
@@ -76,15 +77,6 @@ public void delete(String resourceGroupName, String clusterName, String database
this.serviceClient().delete(resourceGroupName, clusterName, databaseName, context);
}
- public AccessKeys listKeys(String resourceGroupName, String clusterName, String databaseName) {
- AccessKeysInner inner = this.serviceClient().listKeys(resourceGroupName, clusterName, databaseName);
- if (inner != null) {
- return new AccessKeysImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response listKeysWithResponse(
String resourceGroupName, String clusterName, String databaseName, Context context) {
Response inner =
@@ -100,6 +92,15 @@ public Response listKeysWithResponse(
}
}
+ public AccessKeys listKeys(String resourceGroupName, String clusterName, String databaseName) {
+ AccessKeysInner inner = this.serviceClient().listKeys(resourceGroupName, clusterName, databaseName);
+ if (inner != null) {
+ return new AccessKeysImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public AccessKeys regenerateKey(
String resourceGroupName, String clusterName, String databaseName, RegenerateKeyParameters parameters) {
AccessKeysInner inner =
@@ -168,6 +169,19 @@ public void forceUnlink(
this.serviceClient().forceUnlink(resourceGroupName, clusterName, databaseName, parameters, context);
}
+ public void flush(String resourceGroupName, String clusterName, String databaseName, FlushParameters parameters) {
+ this.serviceClient().flush(resourceGroupName, clusterName, databaseName, parameters);
+ }
+
+ public void flush(
+ String resourceGroupName,
+ String clusterName,
+ String databaseName,
+ FlushParameters parameters,
+ Context context) {
+ this.serviceClient().flush(resourceGroupName, clusterName, databaseName, parameters, context);
+ }
+
public Database getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/OperationsClientImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/OperationsClientImpl.java
index 0392645e823d..6db72f33a7c1 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/OperationsClientImpl.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/OperationsClientImpl.java
@@ -55,7 +55,7 @@ public final class OperationsClientImpl implements OperationsClient {
*/
@Host("{$host}")
@ServiceInterface(name = "RedisEnterpriseManag")
- private interface OperationsService {
+ public interface OperationsService {
@Headers({"Content-Type: application/json"})
@Get("/providers/Microsoft.Cache/operations")
@ExpectedResponses({200})
@@ -202,7 +202,8 @@ public PagedIterable list(Context context) {
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ *
The nextLink parameter.
* @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.
@@ -238,7 +239,8 @@ private Mono> listNextSinglePageAsync(String nextL
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ *
The nextLink parameter.
* @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.
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/OperationsStatusClientImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/OperationsStatusClientImpl.java
index 81f66679c00c..6a59b7a75f38 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/OperationsStatusClientImpl.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/OperationsStatusClientImpl.java
@@ -50,7 +50,7 @@ public final class OperationsStatusClientImpl implements OperationsStatusClient
*/
@Host("{$host}")
@ServiceInterface(name = "RedisEnterpriseManag")
- private interface OperationsStatusService {
+ public interface OperationsStatusService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/operationsStatus"
@@ -70,8 +70,8 @@ Mono> get(
/**
* Gets the status of operation.
*
- * @param location The region the operation is in.
- * @param operationId The operation's unique identifier.
+ * @param location The name of Azure region.
+ * @param operationId The ID of an ongoing async 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.
@@ -116,8 +116,8 @@ private Mono> getWithResponseAsync(String locatio
/**
* Gets the status of operation.
*
- * @param location The region the operation is in.
- * @param operationId The operation's unique identifier.
+ * @param location The name of 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.
* @throws ManagementException thrown if the request is rejected by server.
@@ -161,8 +161,8 @@ private Mono> getWithResponseAsync(
/**
* Gets the status of operation.
*
- * @param location The region the operation is in.
- * @param operationId The operation's unique identifier.
+ * @param location The name of Azure region.
+ * @param operationId The ID of an ongoing async 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.
@@ -170,45 +170,37 @@ private Mono> getWithResponseAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(String location, String operationId) {
- return getWithResponseAsync(location, operationId)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ return getWithResponseAsync(location, operationId).flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
* Gets the status of operation.
*
- * @param location The region the operation is in.
- * @param operationId The operation's unique identifier.
+ * @param location The name of 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.
* @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 status of operation.
+ * @return the status of operation along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public OperationStatusInner get(String location, String operationId) {
- return getAsync(location, operationId).block();
+ public Response getWithResponse(String location, String operationId, Context context) {
+ return getWithResponseAsync(location, operationId, context).block();
}
/**
* Gets the status of operation.
*
- * @param location The region the operation is in.
- * @param operationId The operation's unique identifier.
- * @param context The context to associate with this operation.
+ * @param location The name of Azure region.
+ * @param operationId The ID of an ongoing async 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 status of operation along with {@link Response}.
+ * @return the status of operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(String location, String operationId, Context context) {
- return getWithResponseAsync(location, operationId, context).block();
+ public OperationStatusInner get(String location, String operationId) {
+ return getWithResponse(location, operationId, Context.NONE).getValue();
}
}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/OperationsStatusImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/OperationsStatusImpl.java
index 429725127207..6d44d30954f3 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/OperationsStatusImpl.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/OperationsStatusImpl.java
@@ -27,15 +27,6 @@ public OperationsStatusImpl(
this.serviceManager = serviceManager;
}
- public OperationStatus get(String location, String operationId) {
- OperationStatusInner inner = this.serviceClient().get(location, operationId);
- if (inner != null) {
- return new OperationStatusImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response getWithResponse(String location, String operationId, Context context) {
Response inner = this.serviceClient().getWithResponse(location, operationId, context);
if (inner != null) {
@@ -49,6 +40,15 @@ public Response getWithResponse(String location, String operati
}
}
+ public OperationStatus get(String location, String operationId) {
+ OperationStatusInner inner = this.serviceClient().get(location, operationId);
+ if (inner != null) {
+ return new OperationStatusImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
private OperationsStatusClient serviceClient() {
return this.innerClient;
}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateEndpointConnectionImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateEndpointConnectionImpl.java
index 6eeba93d56c2..120bf562f2ba 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateEndpointConnectionImpl.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateEndpointConnectionImpl.java
@@ -4,6 +4,7 @@
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.PrivateEndpointConnectionInner;
import com.azure.resourcemanager.redisenterprise.models.PrivateEndpoint;
@@ -29,6 +30,10 @@ public String type() {
return this.innerModel().type();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public PrivateEndpoint privateEndpoint() {
return this.innerModel().privateEndpoint();
}
@@ -41,6 +46,10 @@ public PrivateEndpointConnectionProvisioningState provisioningState() {
return this.innerModel().provisioningState();
}
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
public PrivateEndpointConnectionInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateEndpointConnectionsClientImpl.java
index 352c3d86e140..28e7fe041e42 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateEndpointConnectionsClientImpl.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateEndpointConnectionsClientImpl.java
@@ -65,7 +65,7 @@ public final class PrivateEndpointConnectionsClientImpl implements PrivateEndpoi
*/
@Host("{$host}")
@ServiceInterface(name = "RedisEnterpriseManag")
- private interface PrivateEndpointConnectionsService {
+ public interface PrivateEndpointConnectionsService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache"
@@ -434,14 +434,7 @@ private Mono> getWithResponseAsync(
private Mono getAsync(
String resourceGroupName, String clusterName, String privateEndpointConnectionName) {
return getWithResponseAsync(resourceGroupName, clusterName, privateEndpointConnectionName)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
@@ -451,15 +444,17 @@ private Mono getAsync(
* @param clusterName The name of the RedisEnterprise cluster.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified private endpoint connection associated with the RedisEnterprise cluster.
+ * @return the specified private endpoint connection associated with the RedisEnterprise cluster along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public PrivateEndpointConnectionInner get(
- String resourceGroupName, String clusterName, String privateEndpointConnectionName) {
- return getAsync(resourceGroupName, clusterName, privateEndpointConnectionName).block();
+ public Response getWithResponse(
+ String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context) {
+ return getWithResponseAsync(resourceGroupName, clusterName, privateEndpointConnectionName, context).block();
}
/**
@@ -469,17 +464,15 @@ public PrivateEndpointConnectionInner get(
* @param clusterName The name of the RedisEnterprise cluster.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified private endpoint connection associated with the RedisEnterprise cluster along with {@link
- * Response}.
+ * @return the specified private endpoint connection associated with the RedisEnterprise cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(
- String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context) {
- return getWithResponseAsync(resourceGroupName, clusterName, privateEndpointConnectionName, context).block();
+ public PrivateEndpointConnectionInner get(
+ String resourceGroupName, String clusterName, String privateEndpointConnectionName) {
+ return getWithResponse(resourceGroupName, clusterName, privateEndpointConnectionName, Context.NONE).getValue();
}
/**
@@ -701,7 +694,9 @@ public SyncPoller, PrivateEndpointCon
String clusterName,
String privateEndpointConnectionName,
PrivateEndpointConnectionInner properties) {
- return beginPutAsync(resourceGroupName, clusterName, privateEndpointConnectionName, properties).getSyncPoller();
+ return this
+ .beginPutAsync(resourceGroupName, clusterName, privateEndpointConnectionName, properties)
+ .getSyncPoller();
}
/**
@@ -725,7 +720,8 @@ public SyncPoller, PrivateEndpointCon
String privateEndpointConnectionName,
PrivateEndpointConnectionInner properties,
Context context) {
- return beginPutAsync(resourceGroupName, clusterName, privateEndpointConnectionName, properties, context)
+ return this
+ .beginPutAsync(resourceGroupName, clusterName, privateEndpointConnectionName, properties, context)
.getSyncPoller();
}
@@ -952,7 +948,7 @@ private Mono> deleteWithResponseAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(String resourceGroupName, String clusterName, String privateEndpointConnectionName) {
return deleteWithResponseAsync(resourceGroupName, clusterName, privateEndpointConnectionName)
- .flatMap((Response res) -> Mono.empty());
+ .flatMap(ignored -> Mono.empty());
}
/**
@@ -962,13 +958,16 @@ private Mono deleteAsync(String resourceGroupName, String clusterName, Str
* @param clusterName The name of the RedisEnterprise cluster.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName) {
- deleteAsync(resourceGroupName, clusterName, privateEndpointConnectionName).block();
+ public Response deleteWithResponse(
+ String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, clusterName, privateEndpointConnectionName, context).block();
}
/**
@@ -978,15 +977,12 @@ public void delete(String resourceGroupName, String clusterName, String privateE
* @param clusterName The name of the RedisEnterprise cluster.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response deleteWithResponse(
- String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context) {
- return deleteWithResponseAsync(resourceGroupName, clusterName, privateEndpointConnectionName, context).block();
+ public void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName) {
+ deleteWithResponse(resourceGroupName, clusterName, privateEndpointConnectionName, Context.NONE);
}
}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateEndpointConnectionsImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateEndpointConnectionsImpl.java
index af538f19e8e0..a34e9a42241d 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateEndpointConnectionsImpl.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateEndpointConnectionsImpl.java
@@ -40,17 +40,6 @@ public PagedIterable list(
return Utils.mapPage(inner, inner1 -> new PrivateEndpointConnectionImpl(inner1, this.manager()));
}
- public PrivateEndpointConnection get(
- String resourceGroupName, String clusterName, String privateEndpointConnectionName) {
- PrivateEndpointConnectionInner inner =
- this.serviceClient().get(resourceGroupName, clusterName, privateEndpointConnectionName);
- if (inner != null) {
- return new PrivateEndpointConnectionImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response getWithResponse(
String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context) {
Response inner =
@@ -68,8 +57,15 @@ public Response getWithResponse(
}
}
- public void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName) {
- this.serviceClient().delete(resourceGroupName, clusterName, privateEndpointConnectionName);
+ public PrivateEndpointConnection get(
+ String resourceGroupName, String clusterName, String privateEndpointConnectionName) {
+ PrivateEndpointConnectionInner inner =
+ this.serviceClient().get(resourceGroupName, clusterName, privateEndpointConnectionName);
+ if (inner != null) {
+ return new PrivateEndpointConnectionImpl(inner, this.manager());
+ } else {
+ return null;
+ }
}
public Response deleteWithResponse(
@@ -79,6 +75,10 @@ public Response deleteWithResponse(
.deleteWithResponse(resourceGroupName, clusterName, privateEndpointConnectionName, context);
}
+ public void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName) {
+ this.serviceClient().delete(resourceGroupName, clusterName, privateEndpointConnectionName);
+ }
+
public PrivateEndpointConnection getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateLinkResourceImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateLinkResourceImpl.java
index 20f4e9d62591..9b943035858f 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateLinkResourceImpl.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateLinkResourceImpl.java
@@ -4,6 +4,7 @@
package com.azure.resourcemanager.redisenterprise.implementation;
+import com.azure.core.management.SystemData;
import com.azure.resourcemanager.redisenterprise.fluent.models.PrivateLinkResourceInner;
import com.azure.resourcemanager.redisenterprise.models.PrivateLinkResource;
import java.util.Collections;
@@ -33,6 +34,10 @@ public String type() {
return this.innerModel().type();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public String groupId() {
return this.innerModel().groupId();
}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateLinkResourcesClientImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateLinkResourcesClientImpl.java
index c156b9273702..2a5f17974952 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateLinkResourcesClientImpl.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/PrivateLinkResourcesClientImpl.java
@@ -56,7 +56,7 @@ public final class PrivateLinkResourcesClientImpl implements PrivateLinkResource
*/
@Host("{$host}")
@ServiceInterface(name = "RedisEnterpriseManag")
- private interface PrivateLinkResourcesService {
+ public interface PrivateLinkResourcesService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache"
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterpriseManagementClientBuilder.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterpriseManagementClientBuilder.java
index 7fe27e7033bb..998d6c966e8c 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterpriseManagementClientBuilder.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterpriseManagementClientBuilder.java
@@ -119,27 +119,26 @@ public RedisEnterpriseManagementClientBuilder serializerAdapter(SerializerAdapte
* @return an instance of RedisEnterpriseManagementClientImpl.
*/
public RedisEnterpriseManagementClientImpl buildClient() {
- if (pipeline == null) {
- this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
- }
- if (endpoint == null) {
- this.endpoint = "https://management.azure.com";
- }
- if (environment == null) {
- this.environment = AzureEnvironment.AZURE;
- }
- if (pipeline == null) {
- this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
- }
- if (defaultPollInterval == null) {
- this.defaultPollInterval = Duration.ofSeconds(30);
- }
- if (serializerAdapter == null) {
- this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
- }
+ String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
+ AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
+ HttpPipeline localPipeline =
+ (pipeline != null)
+ ? pipeline
+ : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ Duration localDefaultPollInterval =
+ (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
+ SerializerAdapter localSerializerAdapter =
+ (serializerAdapter != null)
+ ? serializerAdapter
+ : SerializerFactory.createDefaultManagementSerializerAdapter();
RedisEnterpriseManagementClientImpl client =
new RedisEnterpriseManagementClientImpl(
- pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint);
+ localPipeline,
+ localSerializerAdapter,
+ localDefaultPollInterval,
+ localEnvironment,
+ subscriptionId,
+ localEndpoint);
return client;
}
}
diff --git a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterpriseManagementClientImpl.java b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterpriseManagementClientImpl.java
index 82d012c2c708..bd4aadb26a2e 100644
--- a/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterpriseManagementClientImpl.java
+++ b/sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/RedisEnterpriseManagementClientImpl.java
@@ -15,6 +15,7 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.management.polling.PollerFactory;
import com.azure.core.util.Context;
+import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.AsyncPollResponse;
import com.azure.core.util.polling.LongRunningOperationStatus;
@@ -28,13 +29,13 @@
import com.azure.resourcemanager.redisenterprise.fluent.PrivateLinkResourcesClient;
import com.azure.resourcemanager.redisenterprise.fluent.RedisEnterpriseManagementClient;
import com.azure.resourcemanager.redisenterprise.fluent.RedisEnterprisesClient;
+import com.azure.resourcemanager.redisenterprise.fluent.SkusClient;
import java.io.IOException;
import java.lang.reflect.Type;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.time.Duration;
-import java.util.Map;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -185,6 +186,18 @@ public PrivateLinkResourcesClient getPrivateLinkResources() {
return this.privateLinkResources;
}
+ /** The SkusClient object to access its operations. */
+ private final SkusClient skus;
+
+ /**
+ * Gets the SkusClient object to access its operations.
+ *
+ * @return the SkusClient object.
+ */
+ public SkusClient getSkus() {
+ return this.skus;
+ }
+
/**
* Initializes an instance of RedisEnterpriseManagementClient client.
*
@@ -207,13 +220,14 @@ public PrivateLinkResourcesClient getPrivateLinkResources() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2022-01-01";
+ this.apiVersion = "2023-03-01-preview";
this.operations = new OperationsClientImpl(this);
this.operationsStatus = new OperationsStatusClientImpl(this);
this.redisEnterprises = new RedisEnterprisesClientImpl(this);
this.databases = new DatabasesClientImpl(this);
this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this);
this.privateLinkResources = new PrivateLinkResourcesClientImpl(this);
+ this.skus = new SkusClientImpl(this);
}
/**
@@ -232,10 +246,7 @@ public Context getContext() {
* @return the merged context.
*/
public Context mergeContext(Context context) {
- for (Map.Entry