Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.1.0-beta.4 (Unreleased)
## 1.0.0-beta.1 (2023-09-05)

- 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-2023-07. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager RedisEnterprise client library for Java.

This package contains Microsoft Azure SDK for RedisEnterprise Management SDK. REST API for managing Redis Enterprise resources in Azure. Package tag package-preview-2023-03. 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-2023-07. 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

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-redisenterprise</artifactId>
<version>1.1.0-beta.3</version>
<version>1.1.0-beta.4</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down Expand Up @@ -74,6 +74,16 @@ See [API design][design] for general introduction on design and key concepts on

## Examples

```java
cluster = redisEnterpriseManager.redisEnterprises()
.define(clusterName)
.withRegion(REGION)
.withExistingResourceGroup(resourceGroupName)
.withSku(new Sku().withName(SkuName.ENTERPRISE_E10).withCapacity(2))
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE))
.withMinimumTlsVersion(TlsVersion.ONE_TWO)
.create();
```
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/redisenterprise/azure-resourcemanager-redisenterprise/SAMPLE.md)


Expand Down Expand Up @@ -103,3 +113,5 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[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/

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%2Fredisenterprise%2Fazure-resourcemanager-redisenterprise%2FREADME.png)
103 changes: 28 additions & 75 deletions sdk/redisenterprise/azure-resourcemanager-redisenterprise/SAMPLE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for RedisEnterprise Management</name>
<description>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.</description>
<description>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-2023-07.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,12 @@
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;
Expand All @@ -60,8 +58,6 @@ public final class RedisEnterpriseManager {

private PrivateLinkResources privateLinkResources;

private Skus skus;

private final RedisEnterpriseManagementClient clientObject;

private RedisEnterpriseManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -227,7 +223,7 @@ public RedisEnterpriseManager authenticate(TokenCredential credential, AzureProf
.append("-")
.append("com.azure.resourcemanager.redisenterprise")
.append("/")
.append("1.1.0-beta.3");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -358,20 +354,10 @@ public PrivateLinkResources privateLinkResources() {
}

/**
* Gets the resource collection API of Skus.
* Gets wrapped service client RedisEnterpriseManagementClient providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
*
* @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.
* @return Wrapped service client RedisEnterpriseManagementClient.
*/
public RedisEnterpriseManagementClient serviceClient() {
return this.clientObject;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,22 @@ PrivateEndpointConnectionInner put(
PrivateEndpointConnectionInner properties,
Context context);

/**
* Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the RedisEnterprise cluster.
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String clusterName, String privateEndpointConnectionName);

/**
* Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
*
Expand All @@ -173,10 +189,10 @@ PrivateEndpointConnectionInner put(
* @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}.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> deleteWithResponse(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context);

/**
Expand All @@ -192,4 +208,19 @@ Response<Void> deleteWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName);

/**
* Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the 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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,4 @@ public interface RedisEnterpriseManagementClient {
* @return the PrivateLinkResourcesClient object.
*/
PrivateLinkResourcesClient getPrivateLinkResources();

/**
* Gets the SkusClient object to access its operations.
*
* @return the SkusClient object.
*/
SkusClient getSkus();
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@

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;
Expand All @@ -33,12 +30,6 @@ public final class ClusterInner extends Resource {
@JsonProperty(value = "zones")
private List<String> zones;

/*
* The identity of the resource.
*/
@JsonProperty(value = "identity")
private ManagedServiceIdentity identity;

/*
* RedisEnterprise cluster properties
*
Expand All @@ -47,12 +38,6 @@ public final class ClusterInner extends Resource {
@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() {
}
Expand Down Expand Up @@ -97,26 +82,6 @@ public ClusterInner withZones(List<String> zones) {
return this;
}

/**
* 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
*
Expand All @@ -128,15 +93,6 @@ 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) {
Expand Down Expand Up @@ -174,29 +130,6 @@ 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.
*
Expand Down Expand Up @@ -256,9 +189,6 @@ public void validate() {
} else {
sku().validate();
}
if (identity() != null) {
identity().validate();
}
if (innerProperties() != null) {
innerProperties().validate();
}
Expand Down
Loading