Skip to content

Commit

Permalink
CodeGen from PR 26376 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge e3528b42adc01d104a1e3785980360c78525dca1 into 58e92dd03733bc175e6a9540f4bc53703b57fcc9
  • Loading branch information
SDKAuto committed Oct 30, 2023
1 parent d0c3612 commit 68eb08b
Show file tree
Hide file tree
Showing 121 changed files with 946 additions and 4,026 deletions.
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-10-30)

- 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-10. 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-preview-2023-10. 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 All @@ -45,7 +45,7 @@ Azure Management Libraries require a `TokenCredential` implementation for authen

### Authentication

By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables.
By default, Microsoft Entra ID 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.
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 All @@ -94,7 +104,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
<!-- LINKS -->
[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
[docs]: https://azure.github.io/azure-sdk-for-java/
[jdk]: https://docs.microsoft.com/java/azure/jdk/
[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
[azure_subscription]: https://azure.microsoft.com/free/
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
Expand All @@ -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)
105 changes: 54 additions & 51 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-preview-2023-10.</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();
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.redisenterprise.fluent.models.ClusterInner;
import com.azure.resourcemanager.redisenterprise.models.CheckNameAvailabilityParameters;
import com.azure.resourcemanager.redisenterprise.models.ClusterUpdate;

/** An instance of this class provides access to all the operations defined in RedisEnterprisesClient. */
Expand Down Expand Up @@ -264,4 +265,30 @@ Response<ClusterInner> getByResourceGroupWithResponse(
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ClusterInner> list(Context context);

/**
* Checks that the Redis Enterprise cache name is valid and is not already in use.
*
* @param parameters Parameters supplied to the CheckNameAvailability Redis operation. The only supported resource
* type is 'Microsoft.Cache/redisenterprise'.
* @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> checkNameAvailabilityWithResponse(CheckNameAvailabilityParameters parameters, Context context);

/**
* Checks that the Redis Enterprise cache name is valid and is not already in use.
*
* @param parameters Parameters supplied to the CheckNameAvailability Redis operation. The only supported resource
* type is 'Microsoft.Cache/redisenterprise'.
* @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 checkNameAvailability(CheckNameAvailabilityParameters parameters);
}

This file was deleted.

Loading

0 comments on commit 68eb08b

Please sign in to comment.