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,7 +1,8 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0-beta.1 (2021-03-01)

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

## 1.0.0-beta.1 (2021-02-23)

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-2021-02. 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-2021-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

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.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for RedisEnterprise Management</name>
<description>This package contains Microsoft Azure SDK for RedisEnterprise Management SDK. REST API for managing Redis Enterprise resources in Azure. Package tag package-preview-2021-02. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt</description>
<description>This package contains Microsoft Azure SDK for RedisEnterprise Management SDK. REST API for managing Redis Enterprise resources in Azure. Package tag package-2021-03. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt</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 @@ -15,7 +15,6 @@
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.ForceUnlinkParameters;
import com.azure.resourcemanager.redisenterprise.models.ImportClusterParameters;
import com.azure.resourcemanager.redisenterprise.models.RegenerateKeyParameters;

Expand Down Expand Up @@ -511,76 +510,4 @@ void export(
String databaseName,
ExportClusterParameters parameters,
Context context);

/**
* Forcibly removes the link to the specified database resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the RedisEnterprise cluster.
* @param databaseName The name of the database.
* @param parameters Information identifying the database to be unlinked.
* @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 completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller<PollResult<Void>, Void> beginForceUnlink(
String resourceGroupName, String clusterName, String databaseName, ForceUnlinkParameters parameters);

/**
* Forcibly removes the link to the specified database resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the RedisEnterprise cluster.
* @param databaseName The name of the database.
* @param parameters Information identifying the database to be unlinked.
* @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 completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller<PollResult<Void>, Void> beginForceUnlink(
String resourceGroupName,
String clusterName,
String databaseName,
ForceUnlinkParameters parameters,
Context context);

/**
* Forcibly removes the link to the specified database resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the RedisEnterprise cluster.
* @param databaseName The name of the database.
* @param parameters Information identifying the database to be unlinked.
* @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 forceUnlink(
String resourceGroupName, String clusterName, String databaseName, ForceUnlinkParameters parameters);

/**
* Forcibly removes the link to the specified database resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the RedisEnterprise cluster.
* @param databaseName The name of the database.
* @param parameters Information identifying the database to be unlinked.
* @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 forceUnlink(
String resourceGroupName,
String clusterName,
String databaseName,
ForceUnlinkParameters parameters,
Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy;
import com.azure.resourcemanager.redisenterprise.models.DatabasePropertiesGeoReplication;
import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy;
import com.azure.resourcemanager.redisenterprise.models.Module;
import com.azure.resourcemanager.redisenterprise.models.Persistence;
Expand Down Expand Up @@ -77,13 +76,6 @@ public class DatabaseInner extends ProxyResource {
@JsonProperty(value = "properties.modules")
private List<Module> modules;

/*
* Optional set of properties to configure geo replication for this
* database.
*/
@JsonProperty(value = "properties.geoReplication")
private DatabasePropertiesGeoReplication geoReplication;

/**
* Get the clientProtocol property: Specifies whether redis clients can connect using TLS-encrypted or plaintext
* redis protocols. Default is TLS-encrypted.
Expand Down Expand Up @@ -228,26 +220,6 @@ public DatabaseInner withModules(List<Module> modules) {
return this;
}

/**
* Get the geoReplication property: Optional set of properties to configure geo replication for this database.
*
* @return the geoReplication value.
*/
public DatabasePropertiesGeoReplication geoReplication() {
return this.geoReplication;
}

/**
* Set the geoReplication property: Optional set of properties to configure geo replication for this database.
*
* @param geoReplication the geoReplication value to set.
* @return the DatabaseInner object itself.
*/
public DatabaseInner withGeoReplication(DatabasePropertiesGeoReplication geoReplication) {
this.geoReplication = geoReplication;
return this;
}

/**
* Validates the instance.
*
Expand All @@ -260,8 +232,5 @@ public void validate() {
if (modules() != null) {
modules().forEach(e -> e.validate());
}
if (geoReplication() != null) {
geoReplication().validate();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@
import com.azure.resourcemanager.redisenterprise.models.AccessKeys;
import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy;
import com.azure.resourcemanager.redisenterprise.models.Database;
import com.azure.resourcemanager.redisenterprise.models.DatabasePropertiesGeoReplication;
import com.azure.resourcemanager.redisenterprise.models.DatabaseUpdate;
import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy;
import com.azure.resourcemanager.redisenterprise.models.ExportClusterParameters;
import com.azure.resourcemanager.redisenterprise.models.ForceUnlinkParameters;
import com.azure.resourcemanager.redisenterprise.models.ImportClusterParameters;
import com.azure.resourcemanager.redisenterprise.models.Module;
import com.azure.resourcemanager.redisenterprise.models.Persistence;
Expand Down Expand Up @@ -80,10 +78,6 @@ public List<Module> modules() {
}
}

public DatabasePropertiesGeoReplication geoReplication() {
return this.innerModel().geoReplication();
}

public DatabaseInner innerModel() {
return this.innerObject;
}
Expand Down Expand Up @@ -215,14 +209,6 @@ public void export(ExportClusterParameters parameters, Context context) {
serviceManager.databases().export(resourceGroupName, clusterName, databaseName, parameters, context);
}

public void forceUnlink(ForceUnlinkParameters parameters) {
serviceManager.databases().forceUnlink(resourceGroupName, clusterName, databaseName, parameters);
}

public void forceUnlink(ForceUnlinkParameters parameters, Context context) {
serviceManager.databases().forceUnlink(resourceGroupName, clusterName, databaseName, parameters, context);
}

public DatabaseImpl withClientProtocol(Protocol clientProtocol) {
if (isInCreateMode()) {
this.innerModel().withClientProtocol(clientProtocol);
Expand Down Expand Up @@ -278,16 +264,6 @@ public DatabaseImpl withModules(List<Module> modules) {
}
}

public DatabaseImpl withGeoReplication(DatabasePropertiesGeoReplication geoReplication) {
if (isInCreateMode()) {
this.innerModel().withGeoReplication(geoReplication);
return this;
} else {
this.updateParameters.withGeoReplication(geoReplication);
return this;
}
}

private boolean isInCreateMode() {
return this.innerModel().id() == null;
}
Expand Down
Loading