Skip to content

Commit

Permalink
CodeGen from PR 23401 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge c256d4fe04a7a94057d08ea5cce30cde5b9dd8c2 into f790e624d0d080b89d962a3bd19c65bc6a6b2f5e
  • Loading branch information
SDKAuto committed Apr 3, 2023
1 parent 2758f12 commit e25d11d
Show file tree
Hide file tree
Showing 66 changed files with 142 additions and 3,029 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-04-03)

- 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).

### 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.3</version>
<version>1.1.0-beta.4</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
<revapi.skip>true</revapi.skip>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,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
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.PrivateEndpointConnectionInner;
import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointConnectionsDeleteResponse;

/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */
public interface PrivateEndpointConnectionsClient {
Expand Down Expand Up @@ -173,10 +174,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 response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> deleteWithResponse(
PrivateEndpointConnectionsDeleteResponse deleteWithResponse(
String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import com.azure.resourcemanager.redisenterprise.fluent.PrivateEndpointConnectionsClient;
import com.azure.resourcemanager.redisenterprise.fluent.models.PrivateEndpointConnectionInner;
import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointConnectionListResult;
import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointConnectionsDeleteResponse;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
Expand Down Expand Up @@ -114,9 +115,9 @@ Mono<Response<Flux<ByteBuffer>>> put(
@Headers({"Content-Type: application/json"})
@Delete(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}")
@ExpectedResponses({200, 204})
@ExpectedResponses({200, 202, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono<Response<Void>> delete(
Mono<PrivateEndpointConnectionsDeleteResponse> delete(
@HostParam("$host") String endpoint,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("clusterName") String clusterName,
Expand Down Expand Up @@ -827,10 +828,10 @@ public PrivateEndpointConnectionInner put(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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} on successful completion of {@link Mono}.
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<Response<Void>> deleteWithResponseAsync(
private Mono<PrivateEndpointConnectionsDeleteResponse> deleteWithResponseAsync(
String resourceGroupName, String clusterName, String privateEndpointConnectionName) {
if (this.client.getEndpoint() == null) {
return Mono
Expand Down Expand Up @@ -885,10 +886,10 @@ private Mono<Response<Void>> deleteWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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} on successful completion of {@link Mono}.
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<Response<Void>> deleteWithResponseAsync(
private Mono<PrivateEndpointConnectionsDeleteResponse> deleteWithResponseAsync(
String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
Expand Down Expand Up @@ -958,10 +959,10 @@ private Mono<Void> deleteAsync(String resourceGroupName, String clusterName, Str
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response<Void> deleteWithResponse(
public PrivateEndpointConnectionsDeleteResponse deleteWithResponse(
String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context) {
return deleteWithResponseAsync(resourceGroupName, clusterName, privateEndpointConnectionName, context).block();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import com.azure.resourcemanager.redisenterprise.fluent.models.PrivateEndpointConnectionInner;
import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointConnection;
import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointConnections;
import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointConnectionsDeleteResponse;

public final class PrivateEndpointConnectionsImpl implements PrivateEndpointConnections {
private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionsImpl.class);
Expand Down Expand Up @@ -68,7 +69,7 @@ public PrivateEndpointConnection get(
}
}

public Response<Void> deleteWithResponse(
public PrivateEndpointConnectionsDeleteResponse deleteWithResponse(
String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context) {
return this
.serviceClient()
Expand Down Expand Up @@ -171,7 +172,7 @@ public void deleteById(String id) {
this.deleteWithResponse(resourceGroupName, clusterName, privateEndpointConnectionName, Context.NONE);
}

public Response<Void> deleteByIdWithResponse(String id, Context context) {
public PrivateEndpointConnectionsDeleteResponse deleteByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ Response<PrivateEndpointConnection> getWithResponse(
* @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 response.
*/
Response<Void> deleteWithResponse(
PrivateEndpointConnectionsDeleteResponse deleteWithResponse(
String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context);

/**
Expand Down Expand Up @@ -140,9 +140,9 @@ Response<Void> deleteWithResponse(
* @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 response.
*/
Response<Void> deleteByIdWithResponse(String id, Context context);
PrivateEndpointConnectionsDeleteResponse deleteByIdWithResponse(String id, Context context);

/**
* Begins definition for a new PrivateEndpointConnection resource.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.redisenterprise.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.http.HttpHeaderName;
import com.azure.core.http.HttpHeaders;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The PrivateEndpointConnectionsDeleteHeaders model. */
@Fluent
public final class PrivateEndpointConnectionsDeleteHeaders {
/*
* The Azure-AsyncOperation property.
*/
@JsonProperty(value = "Azure-AsyncOperation")
private String azureAsyncOperation;

/*
* The Location property.
*/
@JsonProperty(value = "Location")
private String location;

private static final HttpHeaderName AZURE_ASYNC_OPERATION = HttpHeaderName.fromString("Azure-AsyncOperation");

// HttpHeaders containing the raw property values.
/**
* Creates an instance of PrivateEndpointConnectionsDeleteHeaders class.
*
* @param rawHeaders The raw HttpHeaders that will be used to create the property values.
*/
public PrivateEndpointConnectionsDeleteHeaders(HttpHeaders rawHeaders) {
this.azureAsyncOperation = rawHeaders.getValue(AZURE_ASYNC_OPERATION);
this.location = rawHeaders.getValue(HttpHeaderName.LOCATION);
}

/**
* Get the azureAsyncOperation property: The Azure-AsyncOperation property.
*
* @return the azureAsyncOperation value.
*/
public String azureAsyncOperation() {
return this.azureAsyncOperation;
}

/**
* Set the azureAsyncOperation property: The Azure-AsyncOperation property.
*
* @param azureAsyncOperation the azureAsyncOperation value to set.
* @return the PrivateEndpointConnectionsDeleteHeaders object itself.
*/
public PrivateEndpointConnectionsDeleteHeaders withAzureAsyncOperation(String azureAsyncOperation) {
this.azureAsyncOperation = azureAsyncOperation;
return this;
}

/**
* Get the location property: The Location property.
*
* @return the location value.
*/
public String location() {
return this.location;
}

/**
* Set the location property: The Location property.
*
* @param location the location value to set.
* @return the PrivateEndpointConnectionsDeleteHeaders object itself.
*/
public PrivateEndpointConnectionsDeleteHeaders withLocation(String location) {
this.location = location;
return this;
}

/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.redisenterprise.models;

import com.azure.core.http.HttpHeaders;
import com.azure.core.http.HttpRequest;
import com.azure.core.http.rest.ResponseBase;

/** Contains all response data for the delete operation. */
public final class PrivateEndpointConnectionsDeleteResponse
extends ResponseBase<PrivateEndpointConnectionsDeleteHeaders, Void> {
/**
* Creates an instance of PrivateEndpointConnectionsDeleteResponse.
*
* @param request the request which resulted in this PrivateEndpointConnectionsDeleteResponse.
* @param statusCode the status code of the HTTP response.
* @param rawHeaders the raw headers of the HTTP response.
* @param value the deserialized value of the HTTP response.
* @param headers the deserialized headers of the HTTP response.
*/
public PrivateEndpointConnectionsDeleteResponse(
HttpRequest request,
int statusCode,
HttpHeaders rawHeaders,
Void value,
PrivateEndpointConnectionsDeleteHeaders headers) {
super(request, statusCode, rawHeaders, value, headers);
}
}

This file was deleted.

This file was deleted.

Loading

0 comments on commit e25d11d

Please sign in to comment.