Skip to content

Commit

Permalink
CodeGen from PR 21327 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 6d35687b5fc6028e862b926beb8a1ee5758c033b into 498ccf7ddf78ced8ef515f88b755b2eb3775de9e
  • Loading branch information
SDKAuto committed Oct 31, 2022
1 parent de18cdf commit 34072b5
Show file tree
Hide file tree
Showing 81 changed files with 1,188 additions and 673 deletions.
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-10-31)

- 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 @@ -184,29 +184,29 @@ 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<DatabaseInner> getWithResponse(
String resourceGroupName, String clusterName, String databaseName, Context context);

/**
* Gets information about a database in 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 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<DatabaseInner> getWithResponse(
String resourceGroupName, String clusterName, String databaseName, Context context);
DatabaseInner get(String resourceGroupName, String clusterName, String databaseName);

/**
* Deletes a single database.
Expand Down Expand Up @@ -271,29 +271,29 @@ SyncPoller<PollResult<Void>, 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<AccessKeysInner> listKeysWithResponse(
String resourceGroupName, String clusterName, String databaseName, Context context);

/**
* Retrieves the access keys for the RedisEnterprise database.
*
* @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<AccessKeysInner> listKeysWithResponse(
String resourceGroupName, String clusterName, String databaseName, Context context);
AccessKeysInner listKeys(String resourceGroupName, String clusterName, String databaseName);

/**
* Regenerates the RedisEnterprise database's access keys.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,34 @@
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.redisenterprise.fluent.models.OperationStatusInner;
import com.azure.resourcemanager.redisenterprise.fluent.models.OperationStatusResultInner;

/** An instance of this class provides access to all the operations defined in OperationsStatusClient. */
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<OperationStatusResultInner> 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<OperationStatusInner> getWithResponse(String location, String operationId, Context context);
OperationStatusResultInner get(String location, String operationId);
}
Original file line number Diff line number Diff line change
Expand Up @@ -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<PrivateEndpointConnectionInner> getWithResponse(
String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context);

/**
* Gets the specified private endpoint connection associated with the RedisEnterprise cluster.
Expand All @@ -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<PrivateEndpointConnectionInner> 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.
Expand Down Expand Up @@ -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<Void> deleteWithResponse(
String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context);

/**
* Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
Expand All @@ -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<Void> deleteWithResponse(
String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context);
void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName);
}
Original file line number Diff line number Diff line change
Expand Up @@ -193,28 +193,28 @@ SyncPoller<PollResult<ClusterInner>, 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<ClusterInner> 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<ClusterInner> getByResourceGroupWithResponse(
String resourceGroupName, String clusterName, Context context);
ClusterInner getByResourceGroup(String resourceGroupName, String clusterName);

/**
* Lists all RedisEnterprise clusters in a resource group.
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 All @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ 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;

/** Creates an instance of ClusterInner class. */
public ClusterInner() {
}

/**
* Get the sku property: The SKU to create, which affects price, performance, and features.
*
Expand Down Expand Up @@ -77,7 +83,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
Loading

0 comments on commit 34072b5

Please sign in to comment.