Skip to content

Commit bd70cab

Browse files
mgmt, upgrade redis (Azure#27470)
* upgrade redis * manual code for ConfigurationUtils * test and record
1 parent fa28aae commit bd70cab

File tree

118 files changed

+10985
-6209
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+10985
-6209
lines changed

sdk/resourcemanager/api-specs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,8 @@
347347
"dir": "azure-resourcemanager-redis",
348348
"source": "specification/redis/resource-manager/readme.md",
349349
"package": "com.azure.resourcemanager.redis",
350-
"args": "--tag=package-2020-12"
350+
"args": "--tag=package-2021-06 --rename-model=ErrorDetailAutoGenerated:ErrorDetail",
351+
"note": "run RedisConfigurationTests.generateConfigurationUtils"
351352
},
352353
"relay": {
353354
"dir": "azure-resourcemanager-relay",

sdk/resourcemanager/azure-resourcemanager-redis/CHANGELOG.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22

33
## 2.13.0-beta.1 (Unreleased)
44

5-
### Features Added
6-
7-
### Breaking Changes
5+
### Other Changes
86

9-
### Bugs Fixed
7+
#### Dependency Updates
108

11-
### Other Changes
9+
- Updated `api-version` to `2021-06-01`.
1210

1311
## 2.12.0 (2022-02-14)
1412

sdk/resourcemanager/azure-resourcemanager-redis/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
<codesnippet.skip>false</codesnippet.skip>
5050
<javadocDoclet></javadocDoclet>
5151
<javadocDocletOptions></javadocDocletOptions>
52+
<revapi.skip>true</revapi.skip>
5253
</properties>
5354

5455
<developers>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.resourcemanager.redis.fluent;
6+
7+
import com.azure.core.annotation.ReturnType;
8+
import com.azure.core.annotation.ServiceMethod;
9+
import com.azure.core.http.rest.Response;
10+
import com.azure.core.util.Context;
11+
import com.azure.resourcemanager.redis.fluent.models.OperationStatusInner;
12+
import reactor.core.publisher.Mono;
13+
14+
/** An instance of this class provides access to all the operations defined in AsyncOperationStatusClient. */
15+
public interface AsyncOperationStatusClient {
16+
/**
17+
* For checking the ongoing status of an operation.
18+
*
19+
* @param location The location at which operation was triggered.
20+
* @param operationId The ID of asynchronous operation.
21+
* @throws IllegalArgumentException thrown if parameters fail the validation.
22+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
23+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
24+
* @return asynchronous operation status along with {@link Response} on successful completion of {@link Mono}.
25+
*/
26+
@ServiceMethod(returns = ReturnType.SINGLE)
27+
Mono<Response<OperationStatusInner>> getWithResponseAsync(String location, String operationId);
28+
29+
/**
30+
* For checking the ongoing status of an operation.
31+
*
32+
* @param location The location at which operation was triggered.
33+
* @param operationId The ID of asynchronous operation.
34+
* @throws IllegalArgumentException thrown if parameters fail the validation.
35+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
36+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
37+
* @return asynchronous operation status on successful completion of {@link Mono}.
38+
*/
39+
@ServiceMethod(returns = ReturnType.SINGLE)
40+
Mono<OperationStatusInner> getAsync(String location, String operationId);
41+
42+
/**
43+
* For checking the ongoing status of an operation.
44+
*
45+
* @param location The location at which operation was triggered.
46+
* @param operationId The ID of asynchronous operation.
47+
* @throws IllegalArgumentException thrown if parameters fail the validation.
48+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
49+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
50+
* @return asynchronous operation status.
51+
*/
52+
@ServiceMethod(returns = ReturnType.SINGLE)
53+
OperationStatusInner get(String location, String operationId);
54+
55+
/**
56+
* For checking the ongoing status of an operation.
57+
*
58+
* @param location The location at which operation was triggered.
59+
* @param operationId The ID of asynchronous operation.
60+
* @param context The context to associate with this operation.
61+
* @throws IllegalArgumentException thrown if parameters fail the validation.
62+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
63+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
64+
* @return asynchronous operation status along with {@link Response}.
65+
*/
66+
@ServiceMethod(returns = ReturnType.SINGLE)
67+
Response<OperationStatusInner> getWithResponse(String location, String operationId, Context context);
68+
}

sdk/resourcemanager/azure-resourcemanager-redis/src/main/java/com/azure/resourcemanager/redis/fluent/FirewallRulesClient.java

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public interface FirewallRulesClient {
2323
* @throws IllegalArgumentException thrown if parameters fail the validation.
2424
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2525
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
26-
* @return all firewall rules in the specified redis cache.
26+
* @return all firewall rules in the specified redis cache as paginated response with {@link PagedFlux}.
2727
*/
2828
@ServiceMethod(returns = ReturnType.COLLECTION)
2929
PagedFlux<RedisFirewallRuleInner> listAsync(String resourceGroupName, String cacheName);
@@ -36,7 +36,7 @@ public interface FirewallRulesClient {
3636
* @throws IllegalArgumentException thrown if parameters fail the validation.
3737
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
3838
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
39-
* @return all firewall rules in the specified redis cache.
39+
* @return all firewall rules in the specified redis cache as paginated response with {@link PagedIterable}.
4040
*/
4141
@ServiceMethod(returns = ReturnType.COLLECTION)
4242
PagedIterable<RedisFirewallRuleInner> list(String resourceGroupName, String cacheName);
@@ -50,7 +50,7 @@ public interface FirewallRulesClient {
5050
* @throws IllegalArgumentException thrown if parameters fail the validation.
5151
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
5252
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
53-
* @return all firewall rules in the specified redis cache.
53+
* @return all firewall rules in the specified redis cache as paginated response with {@link PagedIterable}.
5454
*/
5555
@ServiceMethod(returns = ReturnType.COLLECTION)
5656
PagedIterable<RedisFirewallRuleInner> list(String resourceGroupName, String cacheName, Context context);
@@ -66,7 +66,7 @@ public interface FirewallRulesClient {
6666
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
6767
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
6868
* @return a firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted
69-
* to connect.
69+
* to connect along with {@link Response} on successful completion of {@link Mono}.
7070
*/
7171
@ServiceMethod(returns = ReturnType.SINGLE)
7272
Mono<Response<RedisFirewallRuleInner>> createOrUpdateWithResponseAsync(
@@ -83,7 +83,7 @@ Mono<Response<RedisFirewallRuleInner>> createOrUpdateWithResponseAsync(
8383
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
8484
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
8585
* @return a firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted
86-
* to connect.
86+
* to connect on successful completion of {@link Mono}.
8787
*/
8888
@ServiceMethod(returns = ReturnType.SINGLE)
8989
Mono<RedisFirewallRuleInner> createOrUpdateAsync(
@@ -118,7 +118,7 @@ RedisFirewallRuleInner createOrUpdate(
118118
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
119119
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
120120
* @return a firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted
121-
* to connect.
121+
* to connect along with {@link Response}.
122122
*/
123123
@ServiceMethod(returns = ReturnType.SINGLE)
124124
Response<RedisFirewallRuleInner> createOrUpdateWithResponse(
@@ -137,7 +137,8 @@ Response<RedisFirewallRuleInner> createOrUpdateWithResponse(
137137
* @throws IllegalArgumentException thrown if parameters fail the validation.
138138
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
139139
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
140-
* @return a single firewall rule in a specified redis cache.
140+
* @return a single firewall rule in a specified redis cache along with {@link Response} on successful completion of
141+
* {@link Mono}.
141142
*/
142143
@ServiceMethod(returns = ReturnType.SINGLE)
143144
Mono<Response<RedisFirewallRuleInner>> getWithResponseAsync(
@@ -152,7 +153,7 @@ Mono<Response<RedisFirewallRuleInner>> getWithResponseAsync(
152153
* @throws IllegalArgumentException thrown if parameters fail the validation.
153154
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
154155
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
155-
* @return a single firewall rule in a specified redis cache.
156+
* @return a single firewall rule in a specified redis cache on successful completion of {@link Mono}.
156157
*/
157158
@ServiceMethod(returns = ReturnType.SINGLE)
158159
Mono<RedisFirewallRuleInner> getAsync(String resourceGroupName, String cacheName, String ruleName);
@@ -181,7 +182,7 @@ Mono<Response<RedisFirewallRuleInner>> getWithResponseAsync(
181182
* @throws IllegalArgumentException thrown if parameters fail the validation.
182183
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
183184
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
184-
* @return a single firewall rule in a specified redis cache.
185+
* @return a single firewall rule in a specified redis cache along with {@link Response}.
185186
*/
186187
@ServiceMethod(returns = ReturnType.SINGLE)
187188
Response<RedisFirewallRuleInner> getWithResponse(
@@ -196,7 +197,7 @@ Response<RedisFirewallRuleInner> getWithResponse(
196197
* @throws IllegalArgumentException thrown if parameters fail the validation.
197198
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
198199
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
199-
* @return the completion.
200+
* @return the {@link Response} on successful completion of {@link Mono}.
200201
*/
201202
@ServiceMethod(returns = ReturnType.SINGLE)
202203
Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String cacheName, String ruleName);
@@ -210,7 +211,7 @@ Response<RedisFirewallRuleInner> getWithResponse(
210211
* @throws IllegalArgumentException thrown if parameters fail the validation.
211212
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
212213
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
213-
* @return the completion.
214+
* @return A {@link Mono} that completes when a successful response is received.
214215
*/
215216
@ServiceMethod(returns = ReturnType.SINGLE)
216217
Mono<Void> deleteAsync(String resourceGroupName, String cacheName, String ruleName);
@@ -238,7 +239,7 @@ Response<RedisFirewallRuleInner> getWithResponse(
238239
* @throws IllegalArgumentException thrown if parameters fail the validation.
239240
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
240241
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
241-
* @return the response.
242+
* @return the {@link Response}.
242243
*/
243244
@ServiceMethod(returns = ReturnType.SINGLE)
244245
Response<Void> deleteWithResponse(String resourceGroupName, String cacheName, String ruleName, Context context);

0 commit comments

Comments
 (0)