Skip to content

Commit

Permalink
mgmt, upgrade redis (Azure#27470)
Browse files Browse the repository at this point in the history
* upgrade redis

* manual code for ConfigurationUtils

* test and record
  • Loading branch information
weidongxu-microsoft authored Mar 7, 2022
1 parent fa28aae commit bd70cab
Show file tree
Hide file tree
Showing 118 changed files with 10,985 additions and 6,209 deletions.
3 changes: 2 additions & 1 deletion sdk/resourcemanager/api-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,8 @@
"dir": "azure-resourcemanager-redis",
"source": "specification/redis/resource-manager/readme.md",
"package": "com.azure.resourcemanager.redis",
"args": "--tag=package-2020-12"
"args": "--tag=package-2021-06 --rename-model=ErrorDetailAutoGenerated:ErrorDetail",
"note": "run RedisConfigurationTests.generateConfigurationUtils"
},
"relay": {
"dir": "azure-resourcemanager-relay",
Expand Down
8 changes: 3 additions & 5 deletions sdk/resourcemanager/azure-resourcemanager-redis/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

## 2.13.0-beta.1 (Unreleased)

### Features Added

### Breaking Changes
### Other Changes

### Bugs Fixed
#### Dependency Updates

### Other Changes
- Updated `api-version` to `2021-06-01`.

## 2.12.0 (2022-02-14)

Expand Down
1 change: 1 addition & 0 deletions sdk/resourcemanager/azure-resourcemanager-redis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
<codesnippet.skip>false</codesnippet.skip>
<javadocDoclet></javadocDoclet>
<javadocDocletOptions></javadocDocletOptions>
<revapi.skip>true</revapi.skip>
</properties>

<developers>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.redis.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.redis.fluent.models.OperationStatusInner;
import reactor.core.publisher.Mono;

/** An instance of this class provides access to all the operations defined in AsyncOperationStatusClient. */
public interface AsyncOperationStatusClient {
/**
* For checking the ongoing status of an operation.
*
* @param location The location at which operation was triggered.
* @param operationId The ID of asynchronous 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 asynchronous operation status along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<OperationStatusInner>> getWithResponseAsync(String location, String operationId);

/**
* For checking the ongoing status of an operation.
*
* @param location The location at which operation was triggered.
* @param operationId The ID of asynchronous 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 asynchronous operation status on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<OperationStatusInner> getAsync(String location, String operationId);

/**
* For checking the ongoing status of an operation.
*
* @param location The location at which operation was triggered.
* @param operationId The ID of asynchronous 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 asynchronous operation status.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
OperationStatusInner get(String location, String operationId);

/**
* For checking the ongoing status of an operation.
*
* @param location The location at which operation was triggered.
* @param operationId The ID of asynchronous 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 asynchronous operation status along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<OperationStatusInner> getWithResponse(String location, String operationId, Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public interface FirewallRulesClient {
* @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 all firewall rules in the specified redis cache.
* @return all firewall rules in the specified redis cache as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux<RedisFirewallRuleInner> listAsync(String resourceGroupName, String cacheName);
Expand All @@ -36,7 +36,7 @@ public interface FirewallRulesClient {
* @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 all firewall rules in the specified redis cache.
* @return all firewall rules in the specified redis cache as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<RedisFirewallRuleInner> list(String resourceGroupName, String cacheName);
Expand All @@ -50,7 +50,7 @@ public interface FirewallRulesClient {
* @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 all firewall rules in the specified redis cache.
* @return all firewall rules in the specified redis cache as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<RedisFirewallRuleInner> list(String resourceGroupName, String cacheName, Context context);
Expand All @@ -66,7 +66,7 @@ public interface FirewallRulesClient {
* @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 a firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted
* to connect.
* to connect along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<RedisFirewallRuleInner>> createOrUpdateWithResponseAsync(
Expand All @@ -83,7 +83,7 @@ Mono<Response<RedisFirewallRuleInner>> createOrUpdateWithResponseAsync(
* @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 a firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted
* to connect.
* to connect on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<RedisFirewallRuleInner> createOrUpdateAsync(
Expand Down Expand Up @@ -118,7 +118,7 @@ RedisFirewallRuleInner createOrUpdate(
* @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 a firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted
* to connect.
* to connect along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<RedisFirewallRuleInner> createOrUpdateWithResponse(
Expand All @@ -137,7 +137,8 @@ Response<RedisFirewallRuleInner> createOrUpdateWithResponse(
* @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 a single firewall rule in a specified redis cache.
* @return a single firewall rule in a specified redis cache along with {@link Response} on successful completion of
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<RedisFirewallRuleInner>> getWithResponseAsync(
Expand All @@ -152,7 +153,7 @@ Mono<Response<RedisFirewallRuleInner>> getWithResponseAsync(
* @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 a single firewall rule in a specified redis cache.
* @return a single firewall rule in a specified redis cache on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<RedisFirewallRuleInner> getAsync(String resourceGroupName, String cacheName, String ruleName);
Expand Down Expand Up @@ -181,7 +182,7 @@ Mono<Response<RedisFirewallRuleInner>> getWithResponseAsync(
* @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 a single firewall rule in a specified redis cache.
* @return a single firewall rule in a specified redis cache along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<RedisFirewallRuleInner> getWithResponse(
Expand All @@ -196,7 +197,7 @@ Response<RedisFirewallRuleInner> 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 completion.
* @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String cacheName, String ruleName);
Expand All @@ -210,7 +211,7 @@ Response<RedisFirewallRuleInner> 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 completion.
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Void> deleteAsync(String resourceGroupName, String cacheName, String ruleName);
Expand Down Expand Up @@ -238,7 +239,7 @@ Response<RedisFirewallRuleInner> 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 response.
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> deleteWithResponse(String resourceGroupName, String cacheName, String ruleName, Context context);
Expand Down
Loading

0 comments on commit bd70cab

Please sign in to comment.