Skip to content

Commit 67ef9fd

Browse files
author
SDKAuto
committed
CodeGen from PR 21327 in Azure/azure-rest-api-specs
Merge d299c8ac40e628e17ed00c5e2c571ef0b47bf3ef into 591b17c5a50e7fc0ef09211197279e6d9f7ebc22
1 parent c90a861 commit 67ef9fd

File tree

75 files changed

+633
-377
lines changed

Some content is hidden

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

75 files changed

+633
-377
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.1.0-beta.2 (Unreleased)
3+
## 1.0.0-beta.1 (2022-11-03)
4+
5+
- 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).
46

57
### Features Added
68

sdk/redisenterprise/azure-resourcemanager-redisenterprise/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-redisenterprise</artifactId>
35-
<version>1.1.0-beta.1</version>
35+
<version>1.1.0-beta.2</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
<properties>
4040
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4141
<jacoco.skip>true</jacoco.skip>
42-
<revapi.skip>true</revapi.skip>
4342
</properties>
4443
<dependencies>
4544
<dependency>

sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/RedisEnterpriseManager.java

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public RedisEnterpriseManager authenticate(TokenCredential credential, AzureProf
223223
.append("-")
224224
.append("com.azure.resourcemanager.redisenterprise")
225225
.append("/")
226-
.append("1.1.0-beta.1");
226+
.append("1.0.0-beta.1");
227227
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
228228
userAgentBuilder
229229
.append(" (")
@@ -280,39 +280,59 @@ public RedisEnterpriseManager authenticate(TokenCredential credential, AzureProf
280280
}
281281
}
282282

283-
/** @return Resource collection API of Operations. */
283+
/**
284+
* Gets the resource collection API of Operations.
285+
*
286+
* @return Resource collection API of Operations.
287+
*/
284288
public Operations operations() {
285289
if (this.operations == null) {
286290
this.operations = new OperationsImpl(clientObject.getOperations(), this);
287291
}
288292
return operations;
289293
}
290294

291-
/** @return Resource collection API of OperationsStatus. */
295+
/**
296+
* Gets the resource collection API of OperationsStatus.
297+
*
298+
* @return Resource collection API of OperationsStatus.
299+
*/
292300
public OperationsStatus operationsStatus() {
293301
if (this.operationsStatus == null) {
294302
this.operationsStatus = new OperationsStatusImpl(clientObject.getOperationsStatus(), this);
295303
}
296304
return operationsStatus;
297305
}
298306

299-
/** @return Resource collection API of RedisEnterprises. */
307+
/**
308+
* Gets the resource collection API of RedisEnterprises. It manages Cluster.
309+
*
310+
* @return Resource collection API of RedisEnterprises.
311+
*/
300312
public RedisEnterprises redisEnterprises() {
301313
if (this.redisEnterprises == null) {
302314
this.redisEnterprises = new RedisEnterprisesImpl(clientObject.getRedisEnterprises(), this);
303315
}
304316
return redisEnterprises;
305317
}
306318

307-
/** @return Resource collection API of Databases. */
319+
/**
320+
* Gets the resource collection API of Databases. It manages Database.
321+
*
322+
* @return Resource collection API of Databases.
323+
*/
308324
public Databases databases() {
309325
if (this.databases == null) {
310326
this.databases = new DatabasesImpl(clientObject.getDatabases(), this);
311327
}
312328
return databases;
313329
}
314330

315-
/** @return Resource collection API of PrivateEndpointConnections. */
331+
/**
332+
* Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection.
333+
*
334+
* @return Resource collection API of PrivateEndpointConnections.
335+
*/
316336
public PrivateEndpointConnections privateEndpointConnections() {
317337
if (this.privateEndpointConnections == null) {
318338
this.privateEndpointConnections =
@@ -321,7 +341,11 @@ public PrivateEndpointConnections privateEndpointConnections() {
321341
return privateEndpointConnections;
322342
}
323343

324-
/** @return Resource collection API of PrivateLinkResources. */
344+
/**
345+
* Gets the resource collection API of PrivateLinkResources.
346+
*
347+
* @return Resource collection API of PrivateLinkResources.
348+
*/
325349
public PrivateLinkResources privateLinkResources() {
326350
if (this.privateLinkResources == null) {
327351
this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);

sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/DatabasesClient.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -184,29 +184,29 @@ DatabaseInner update(
184184
* @param resourceGroupName The name of the resource group. The name is case insensitive.
185185
* @param clusterName The name of the RedisEnterprise cluster.
186186
* @param databaseName The name of the database.
187+
* @param context The context to associate with this operation.
187188
* @throws IllegalArgumentException thrown if parameters fail the validation.
188189
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
189190
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
190-
* @return information about a database in a RedisEnterprise cluster.
191+
* @return information about a database in a RedisEnterprise cluster along with {@link Response}.
191192
*/
192193
@ServiceMethod(returns = ReturnType.SINGLE)
193-
DatabaseInner get(String resourceGroupName, String clusterName, String databaseName);
194+
Response<DatabaseInner> getWithResponse(
195+
String resourceGroupName, String clusterName, String databaseName, Context context);
194196

195197
/**
196198
* Gets information about a database in a RedisEnterprise cluster.
197199
*
198200
* @param resourceGroupName The name of the resource group. The name is case insensitive.
199201
* @param clusterName The name of the RedisEnterprise cluster.
200202
* @param databaseName The name of the database.
201-
* @param context The context to associate with this operation.
202203
* @throws IllegalArgumentException thrown if parameters fail the validation.
203204
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
204205
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
205-
* @return information about a database in a RedisEnterprise cluster along with {@link Response}.
206+
* @return information about a database in a RedisEnterprise cluster.
206207
*/
207208
@ServiceMethod(returns = ReturnType.SINGLE)
208-
Response<DatabaseInner> getWithResponse(
209-
String resourceGroupName, String clusterName, String databaseName, Context context);
209+
DatabaseInner get(String resourceGroupName, String clusterName, String databaseName);
210210

211211
/**
212212
* Deletes a single database.
@@ -271,29 +271,29 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
271271
* @param resourceGroupName The name of the resource group. The name is case insensitive.
272272
* @param clusterName The name of the RedisEnterprise cluster.
273273
* @param databaseName The name of the database.
274+
* @param context The context to associate with this operation.
274275
* @throws IllegalArgumentException thrown if parameters fail the validation.
275276
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
276277
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
277-
* @return access keys.
278+
* @return access keys along with {@link Response}.
278279
*/
279280
@ServiceMethod(returns = ReturnType.SINGLE)
280-
AccessKeysInner listKeys(String resourceGroupName, String clusterName, String databaseName);
281+
Response<AccessKeysInner> listKeysWithResponse(
282+
String resourceGroupName, String clusterName, String databaseName, Context context);
281283

282284
/**
283285
* Retrieves the access keys for the RedisEnterprise database.
284286
*
285287
* @param resourceGroupName The name of the resource group. The name is case insensitive.
286288
* @param clusterName The name of the RedisEnterprise cluster.
287289
* @param databaseName The name of the database.
288-
* @param context The context to associate with this operation.
289290
* @throws IllegalArgumentException thrown if parameters fail the validation.
290291
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
291292
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
292-
* @return access keys along with {@link Response}.
293+
* @return access keys.
293294
*/
294295
@ServiceMethod(returns = ReturnType.SINGLE)
295-
Response<AccessKeysInner> listKeysWithResponse(
296-
String resourceGroupName, String clusterName, String databaseName, Context context);
296+
AccessKeysInner listKeys(String resourceGroupName, String clusterName, String databaseName);
297297

298298
/**
299299
* Regenerates the RedisEnterprise database's access keys.

sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/OperationsStatusClient.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,27 @@ public interface OperationsStatusClient {
1515
/**
1616
* Gets the status of operation.
1717
*
18-
* @param location The region the operation is in.
19-
* @param operationId The operation's unique identifier.
18+
* @param location The name of Azure region.
19+
* @param operationId The ID of an ongoing async operation.
20+
* @param context The context to associate with this operation.
2021
* @throws IllegalArgumentException thrown if parameters fail the validation.
2122
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2223
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
23-
* @return the status of operation.
24+
* @return the status of operation along with {@link Response}.
2425
*/
2526
@ServiceMethod(returns = ReturnType.SINGLE)
26-
OperationStatusInner get(String location, String operationId);
27+
Response<OperationStatusInner> getWithResponse(String location, String operationId, Context context);
2728

2829
/**
2930
* Gets the status of operation.
3031
*
31-
* @param location The region the operation is in.
32-
* @param operationId The operation's unique identifier.
33-
* @param context The context to associate with this operation.
32+
* @param location The name of Azure region.
33+
* @param operationId The ID of an ongoing async operation.
3434
* @throws IllegalArgumentException thrown if parameters fail the validation.
3535
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
3636
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
37-
* @return the status of operation along with {@link Response}.
37+
* @return the status of operation.
3838
*/
3939
@ServiceMethod(returns = ReturnType.SINGLE)
40-
Response<OperationStatusInner> getWithResponse(String location, String operationId, Context context);
40+
OperationStatusInner get(String location, String operationId);
4141
}

sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/PrivateEndpointConnectionsClient.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,16 @@ public interface PrivateEndpointConnectionsClient {
5151
* @param clusterName The name of the RedisEnterprise cluster.
5252
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
5353
* resource.
54+
* @param context The context to associate with this operation.
5455
* @throws IllegalArgumentException thrown if parameters fail the validation.
5556
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
5657
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
57-
* @return the specified private endpoint connection associated with the RedisEnterprise cluster.
58+
* @return the specified private endpoint connection associated with the RedisEnterprise cluster along with {@link
59+
* Response}.
5860
*/
5961
@ServiceMethod(returns = ReturnType.SINGLE)
60-
PrivateEndpointConnectionInner get(
61-
String resourceGroupName, String clusterName, String privateEndpointConnectionName);
62+
Response<PrivateEndpointConnectionInner> getWithResponse(
63+
String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context);
6264

6365
/**
6466
* Gets the specified private endpoint connection associated with the RedisEnterprise cluster.
@@ -67,16 +69,14 @@ PrivateEndpointConnectionInner get(
6769
* @param clusterName The name of the RedisEnterprise cluster.
6870
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
6971
* resource.
70-
* @param context The context to associate with this operation.
7172
* @throws IllegalArgumentException thrown if parameters fail the validation.
7273
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
7374
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
74-
* @return the specified private endpoint connection associated with the RedisEnterprise cluster along with {@link
75-
* Response}.
75+
* @return the specified private endpoint connection associated with the RedisEnterprise cluster.
7676
*/
7777
@ServiceMethod(returns = ReturnType.SINGLE)
78-
Response<PrivateEndpointConnectionInner> getWithResponse(
79-
String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context);
78+
PrivateEndpointConnectionInner get(
79+
String resourceGroupName, String clusterName, String privateEndpointConnectionName);
8080

8181
/**
8282
* Updates the state of the specified private endpoint connection associated with the RedisEnterprise cluster.
@@ -169,12 +169,15 @@ PrivateEndpointConnectionInner put(
169169
* @param clusterName The name of the RedisEnterprise cluster.
170170
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
171171
* resource.
172+
* @param context The context to associate with this operation.
172173
* @throws IllegalArgumentException thrown if parameters fail the validation.
173174
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
174175
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
176+
* @return the {@link Response}.
175177
*/
176178
@ServiceMethod(returns = ReturnType.SINGLE)
177-
void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName);
179+
Response<Void> deleteWithResponse(
180+
String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context);
178181

179182
/**
180183
* Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
@@ -183,13 +186,10 @@ PrivateEndpointConnectionInner put(
183186
* @param clusterName The name of the RedisEnterprise cluster.
184187
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
185188
* resource.
186-
* @param context The context to associate with this operation.
187189
* @throws IllegalArgumentException thrown if parameters fail the validation.
188190
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
189191
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
190-
* @return the {@link Response}.
191192
*/
192193
@ServiceMethod(returns = ReturnType.SINGLE)
193-
Response<Void> deleteWithResponse(
194-
String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context);
194+
void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName);
195195
}

sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/RedisEnterprisesClient.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,28 +193,28 @@ SyncPoller<PollResult<ClusterInner>, ClusterInner> beginUpdate(
193193
*
194194
* @param resourceGroupName The name of the resource group. The name is case insensitive.
195195
* @param clusterName The name of the RedisEnterprise cluster.
196+
* @param context The context to associate with this operation.
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 information about a RedisEnterprise cluster.
200+
* @return information about a RedisEnterprise cluster along with {@link Response}.
200201
*/
201202
@ServiceMethod(returns = ReturnType.SINGLE)
202-
ClusterInner getByResourceGroup(String resourceGroupName, String clusterName);
203+
Response<ClusterInner> getByResourceGroupWithResponse(
204+
String resourceGroupName, String clusterName, Context context);
203205

204206
/**
205207
* Gets information about a RedisEnterprise cluster.
206208
*
207209
* @param resourceGroupName The name of the resource group. The name is case insensitive.
208210
* @param clusterName The name of the RedisEnterprise cluster.
209-
* @param context The context to associate with this operation.
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 information about a RedisEnterprise cluster along with {@link Response}.
214+
* @return information about a RedisEnterprise cluster.
214215
*/
215216
@ServiceMethod(returns = ReturnType.SINGLE)
216-
Response<ClusterInner> getByResourceGroupWithResponse(
217-
String resourceGroupName, String clusterName, Context context);
217+
ClusterInner getByResourceGroup(String resourceGroupName, String clusterName);
218218

219219
/**
220220
* Lists all RedisEnterprise clusters in a resource group.

sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/AccessKeysInner.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
import com.azure.core.annotation.Immutable;
88
import com.fasterxml.jackson.annotation.JsonProperty;
99

10-
/** Access keys The secret access keys used for authenticating connections to redis. */
10+
/**
11+
* Access keys
12+
*
13+
* <p>The secret access keys used for authenticating connections to redis.
14+
*/
1115
@Immutable
1216
public final class AccessKeysInner {
1317
/*
@@ -22,6 +26,10 @@ public final class AccessKeysInner {
2226
@JsonProperty(value = "secondaryKey", access = JsonProperty.Access.WRITE_ONLY)
2327
private String secondaryKey;
2428

29+
/** Creates an instance of AccessKeysInner class. */
30+
public AccessKeysInner() {
31+
}
32+
2533
/**
2634
* Get the primaryKey property: The current primary key that clients can use to authenticate.
2735
*

sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/fluent/models/ClusterInner.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,17 @@ public final class ClusterInner extends Resource {
3131
private List<String> zones;
3232

3333
/*
34-
* RedisEnterprise cluster properties Other properties of the cluster.
34+
* RedisEnterprise cluster properties
35+
*
36+
* Other properties of the cluster.
3537
*/
3638
@JsonProperty(value = "properties")
3739
private ClusterProperties innerProperties;
3840

41+
/** Creates an instance of ClusterInner class. */
42+
public ClusterInner() {
43+
}
44+
3945
/**
4046
* Get the sku property: The SKU to create, which affects price, performance, and features.
4147
*
@@ -77,7 +83,9 @@ public ClusterInner withZones(List<String> zones) {
7783
}
7884

7985
/**
80-
* Get the innerProperties property: RedisEnterprise cluster properties Other properties of the cluster.
86+
* Get the innerProperties property: RedisEnterprise cluster properties
87+
*
88+
* <p>Other properties of the cluster.
8189
*
8290
* @return the innerProperties value.
8391
*/

0 commit comments

Comments
 (0)