Skip to content

Commit aa80d53

Browse files
author
SDKAuto
committed
CodeGen from PR 25517 in Azure/azure-rest-api-specs
Merge 63933c0c0625c1fe8d421b79144e5aa658b2e1b3 into 9cff12e5e7e09f9f4479de7b626b856da501d665
1 parent 910c88d commit aa80d53

File tree

129 files changed

+291
-4942
lines changed

Some content is hidden

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

129 files changed

+291
-4942
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.4 (Unreleased)
3+
## 1.0.0-beta.1 (2023-09-05)
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-2023-07. 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: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager RedisEnterprise client library for Java.
44

5-
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).
5+
This package contains Microsoft Azure SDK for RedisEnterprise Management SDK. REST API for managing Redis Enterprise resources in Azure. Package tag package-2023-07. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

77
## We'd love to hear your feedback
88

@@ -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.3</version>
35+
<version>1.1.0-beta.4</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})
@@ -74,6 +74,16 @@ See [API design][design] for general introduction on design and key concepts on
7474

7575
## Examples
7676

77+
```java
78+
cluster = redisEnterpriseManager.redisEnterprises()
79+
.define(clusterName)
80+
.withRegion(REGION)
81+
.withExistingResourceGroup(resourceGroupName)
82+
.withSku(new Sku().withName(SkuName.ENTERPRISE_E10).withCapacity(2))
83+
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE))
84+
.withMinimumTlsVersion(TlsVersion.ONE_TWO)
85+
.create();
86+
```
7787
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/redisenterprise/azure-resourcemanager-redisenterprise/SAMPLE.md)
7888

7989

@@ -103,3 +113,5 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
103113
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
104114
[coc]: https://opensource.microsoft.com/codeofconduct/
105115
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
116+
117+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%2Fredisenterprise%2Fazure-resourcemanager-redisenterprise%2FREADME.png)

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

Lines changed: 28 additions & 75 deletions
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<packaging>jar</packaging>
1919

2020
<name>Microsoft Azure SDK for RedisEnterprise Management</name>
21-
<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>
21+
<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-2023-07.</description>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>

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

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,12 @@
3131
import com.azure.resourcemanager.redisenterprise.implementation.PrivateLinkResourcesImpl;
3232
import com.azure.resourcemanager.redisenterprise.implementation.RedisEnterpriseManagementClientBuilder;
3333
import com.azure.resourcemanager.redisenterprise.implementation.RedisEnterprisesImpl;
34-
import com.azure.resourcemanager.redisenterprise.implementation.SkusImpl;
3534
import com.azure.resourcemanager.redisenterprise.models.Databases;
3635
import com.azure.resourcemanager.redisenterprise.models.Operations;
3736
import com.azure.resourcemanager.redisenterprise.models.OperationsStatus;
3837
import com.azure.resourcemanager.redisenterprise.models.PrivateEndpointConnections;
3938
import com.azure.resourcemanager.redisenterprise.models.PrivateLinkResources;
4039
import com.azure.resourcemanager.redisenterprise.models.RedisEnterprises;
41-
import com.azure.resourcemanager.redisenterprise.models.Skus;
4240
import java.time.Duration;
4341
import java.time.temporal.ChronoUnit;
4442
import java.util.ArrayList;
@@ -60,8 +58,6 @@ public final class RedisEnterpriseManager {
6058

6159
private PrivateLinkResources privateLinkResources;
6260

63-
private Skus skus;
64-
6561
private final RedisEnterpriseManagementClient clientObject;
6662

6763
private RedisEnterpriseManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -227,7 +223,7 @@ public RedisEnterpriseManager authenticate(TokenCredential credential, AzureProf
227223
.append("-")
228224
.append("com.azure.resourcemanager.redisenterprise")
229225
.append("/")
230-
.append("1.1.0-beta.3");
226+
.append("1.0.0-beta.1");
231227
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
232228
userAgentBuilder
233229
.append(" (")
@@ -358,20 +354,10 @@ public PrivateLinkResources privateLinkResources() {
358354
}
359355

360356
/**
361-
* Gets the resource collection API of Skus.
357+
* Gets wrapped service client RedisEnterpriseManagementClient providing direct access to the underlying
358+
* auto-generated API implementation, based on Azure REST API.
362359
*
363-
* @return Resource collection API of Skus.
364-
*/
365-
public Skus skus() {
366-
if (this.skus == null) {
367-
this.skus = new SkusImpl(clientObject.getSkus(), this);
368-
}
369-
return skus;
370-
}
371-
372-
/**
373-
* @return Wrapped service client RedisEnterpriseManagementClient providing direct access to the underlying
374-
* auto-generated API implementation, based on Azure REST API.
360+
* @return Wrapped service client RedisEnterpriseManagementClient.
375361
*/
376362
public RedisEnterpriseManagementClient serviceClient() {
377363
return this.clientObject;

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

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,22 @@ PrivateEndpointConnectionInner put(
162162
PrivateEndpointConnectionInner properties,
163163
Context context);
164164

165+
/**
166+
* Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
167+
*
168+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
169+
* @param clusterName The name of the RedisEnterprise cluster.
170+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
171+
* resource.
172+
* @throws IllegalArgumentException thrown if parameters fail the validation.
173+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
174+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
175+
* @return the {@link SyncPoller} for polling of long-running operation.
176+
*/
177+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
178+
SyncPoller<PollResult<Void>, Void> beginDelete(
179+
String resourceGroupName, String clusterName, String privateEndpointConnectionName);
180+
165181
/**
166182
* Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
167183
*
@@ -173,10 +189,10 @@ PrivateEndpointConnectionInner put(
173189
* @throws IllegalArgumentException thrown if parameters fail the validation.
174190
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
175191
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
176-
* @return the {@link Response}.
192+
* @return the {@link SyncPoller} for polling of long-running operation.
177193
*/
178-
@ServiceMethod(returns = ReturnType.SINGLE)
179-
Response<Void> deleteWithResponse(
194+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
195+
SyncPoller<PollResult<Void>, Void> beginDelete(
180196
String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context);
181197

182198
/**
@@ -192,4 +208,19 @@ Response<Void> deleteWithResponse(
192208
*/
193209
@ServiceMethod(returns = ReturnType.SINGLE)
194210
void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName);
211+
212+
/**
213+
* Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
214+
*
215+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
216+
* @param clusterName The name of the RedisEnterprise cluster.
217+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
218+
* resource.
219+
* @param context The context to associate with this operation.
220+
* @throws IllegalArgumentException thrown if parameters fail the validation.
221+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
222+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
223+
*/
224+
@ServiceMethod(returns = ReturnType.SINGLE)
225+
void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context);
195226
}

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,4 @@ public interface RedisEnterpriseManagementClient {
8585
* @return the PrivateLinkResourcesClient object.
8686
*/
8787
PrivateLinkResourcesClient getPrivateLinkResources();
88-
89-
/**
90-
* Gets the SkusClient object to access its operations.
91-
*
92-
* @return the SkusClient object.
93-
*/
94-
SkusClient getSkus();
9588
}

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

Lines changed: 0 additions & 41 deletions
This file was deleted.

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

Lines changed: 0 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66

77
import com.azure.core.annotation.Fluent;
88
import com.azure.core.management.Resource;
9-
import com.azure.core.management.SystemData;
109
import com.azure.core.util.logging.ClientLogger;
11-
import com.azure.resourcemanager.redisenterprise.models.ClusterPropertiesEncryption;
12-
import com.azure.resourcemanager.redisenterprise.models.ManagedServiceIdentity;
1310
import com.azure.resourcemanager.redisenterprise.models.ProvisioningState;
1411
import com.azure.resourcemanager.redisenterprise.models.ResourceState;
1512
import com.azure.resourcemanager.redisenterprise.models.Sku;
@@ -33,12 +30,6 @@ public final class ClusterInner extends Resource {
3330
@JsonProperty(value = "zones")
3431
private List<String> zones;
3532

36-
/*
37-
* The identity of the resource.
38-
*/
39-
@JsonProperty(value = "identity")
40-
private ManagedServiceIdentity identity;
41-
4233
/*
4334
* RedisEnterprise cluster properties
4435
*
@@ -47,12 +38,6 @@ public final class ClusterInner extends Resource {
4738
@JsonProperty(value = "properties")
4839
private ClusterProperties innerProperties;
4940

50-
/*
51-
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
52-
*/
53-
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
54-
private SystemData systemData;
55-
5641
/** Creates an instance of ClusterInner class. */
5742
public ClusterInner() {
5843
}
@@ -97,26 +82,6 @@ public ClusterInner withZones(List<String> zones) {
9782
return this;
9883
}
9984

100-
/**
101-
* Get the identity property: The identity of the resource.
102-
*
103-
* @return the identity value.
104-
*/
105-
public ManagedServiceIdentity identity() {
106-
return this.identity;
107-
}
108-
109-
/**
110-
* Set the identity property: The identity of the resource.
111-
*
112-
* @param identity the identity value to set.
113-
* @return the ClusterInner object itself.
114-
*/
115-
public ClusterInner withIdentity(ManagedServiceIdentity identity) {
116-
this.identity = identity;
117-
return this;
118-
}
119-
12085
/**
12186
* Get the innerProperties property: RedisEnterprise cluster properties
12287
*
@@ -128,15 +93,6 @@ private ClusterProperties innerProperties() {
12893
return this.innerProperties;
12994
}
13095

131-
/**
132-
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
133-
*
134-
* @return the systemData value.
135-
*/
136-
public SystemData systemData() {
137-
return this.systemData;
138-
}
139-
14096
/** {@inheritDoc} */
14197
@Override
14298
public ClusterInner withLocation(String location) {
@@ -174,29 +130,6 @@ public ClusterInner withMinimumTlsVersion(TlsVersion minimumTlsVersion) {
174130
return this;
175131
}
176132

177-
/**
178-
* Get the encryption property: Encryption-at-rest configuration for the cluster.
179-
*
180-
* @return the encryption value.
181-
*/
182-
public ClusterPropertiesEncryption encryption() {
183-
return this.innerProperties() == null ? null : this.innerProperties().encryption();
184-
}
185-
186-
/**
187-
* Set the encryption property: Encryption-at-rest configuration for the cluster.
188-
*
189-
* @param encryption the encryption value to set.
190-
* @return the ClusterInner object itself.
191-
*/
192-
public ClusterInner withEncryption(ClusterPropertiesEncryption encryption) {
193-
if (this.innerProperties() == null) {
194-
this.innerProperties = new ClusterProperties();
195-
}
196-
this.innerProperties().withEncryption(encryption);
197-
return this;
198-
}
199-
200133
/**
201134
* Get the hostname property: DNS name of the cluster endpoint.
202135
*
@@ -256,9 +189,6 @@ public void validate() {
256189
} else {
257190
sku().validate();
258191
}
259-
if (identity() != null) {
260-
identity().validate();
261-
}
262192
if (innerProperties() != null) {
263193
innerProperties().validate();
264194
}

0 commit comments

Comments
 (0)