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.2 (Unreleased)
## 1.0.0-beta.1 (2022-08-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-2022-01. 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 @@ -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.1</version>
<version>1.1.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.skip>true</jacoco.skip>
<revapi.skip>true</revapi.skip>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public RedisEnterpriseManager authenticate(TokenCredential credential, AzureProf
.append("-")
.append("com.azure.resourcemanager.redisenterprise")
.append("/")
.append("1.1.0-beta.1");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -280,39 +280,59 @@ 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);
}
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);
}
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);
}
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);
}
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 =
Expand All @@ -321,7 +341,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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
* <p>The secret access keys used for authenticating connections to redis.
*/
@Immutable
public final class AccessKeysInner {
/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ public final class ClusterInner extends Resource {
private List<String> zones;

/*
* RedisEnterprise cluster properties Other properties of the cluster.
* RedisEnterprise cluster properties
*
* Other properties of the cluster.
*/
@JsonProperty(value = "properties")
private ClusterProperties innerProperties;
Expand Down Expand Up @@ -77,7 +79,9 @@ public ClusterInner withZones(List<String> zones) {
}

/**
* Get the innerProperties property: RedisEnterprise cluster properties Other properties of the cluster.
* Get the innerProperties property: RedisEnterprise cluster properties
*
* <p>Other properties of the cluster.
*
* @return the innerProperties value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
import java.util.List;

/**
* RedisEnterprise cluster properties Properties of RedisEnterprise clusters, as opposed to general resource properties
* like location, tags.
* RedisEnterprise cluster properties
*
* <p>Properties of RedisEnterprise clusters, as opposed to general resource properties like location, tags.
*/
@Fluent
public final class ClusterProperties {
Expand Down Expand Up @@ -48,8 +49,7 @@ 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<PrivateEndpointConnectionInner> privateEndpointConnections;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@
@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;

/**
* Get the innerProperties property: RedisEnterprise database properties Other properties of the database.
* Get the innerProperties property: RedisEnterprise database properties
*
* <p>Other properties of the database.
*
* @return the innerProperties value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
* <p>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;
Expand Down Expand Up @@ -67,15 +67,13 @@ 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<Module> 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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
* <p>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;
Expand All @@ -35,15 +38,14 @@ 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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ 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;
Expand Down Expand Up @@ -148,7 +150,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
*
* <p>Error response describing why the operation failed.
*
* @return the error value.
*/
Expand All @@ -157,7 +161,9 @@ public ManagementError error() {
}

/**
* Set the error property: Error response Error response describing why the operation failed.
* Set the error property: Error response
*
* <p>Error response describing why the operation failed.
*
* @param error the error value to set.
* @return the OperationStatusInner object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ public String regionName() {
return this.location();
}

public String resourceGroupName() {
return resourceGroupName;
}

public ClusterInner innerModel() {
return this.innerObject;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ public DatabasePropertiesGeoReplication geoReplication() {
return this.innerModel().geoReplication();
}

public String resourceGroupName() {
return resourceGroupName;
}

public DatabaseInner innerModel() {
return this.innerObject;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1122,14 +1122,7 @@ private Mono<Response<DatabaseInner>> getWithResponseAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<DatabaseInner> getAsync(String resourceGroupName, String clusterName, String databaseName) {
return getWithResponseAsync(resourceGroupName, clusterName, databaseName)
.flatMap(
(Response<DatabaseInner> res) -> {
if (res.getValue() != null) {
return Mono.just(res.getValue());
} else {
return Mono.empty();
}
});
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}

/**
Expand Down Expand Up @@ -1535,14 +1528,7 @@ private Mono<Response<AccessKeysInner>> listKeysWithResponseAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<AccessKeysInner> listKeysAsync(String resourceGroupName, String clusterName, String databaseName) {
return listKeysWithResponseAsync(resourceGroupName, clusterName, databaseName)
.flatMap(
(Response<AccessKeysInner> res) -> {
if (res.getValue() != null) {
return Mono.just(res.getValue());
} else {
return Mono.empty();
}
});
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,7 @@ private Mono<Response<OperationStatusInner>> getWithResponseAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<OperationStatusInner> getAsync(String location, String operationId) {
return getWithResponseAsync(location, operationId)
.flatMap(
(Response<OperationStatusInner> res) -> {
if (res.getValue() != null) {
return Mono.just(res.getValue());
} else {
return Mono.empty();
}
});
return getWithResponseAsync(location, operationId).flatMap(res -> Mono.justOrEmpty(res.getValue()));
}

/**
Expand Down
Loading