Skip to content

Commit b1c7d78

Browse files
[Automation] Generate Fluent Lite from redisenterprise#package-2021-03 (Azure#19501)
* [Automation] Generate Fluent Lite from redisenterprise#package-2021-03 * Update CHANGELOG.md Co-authored-by: Weidong Xu <weidxu@microsoft.com>
1 parent f9d6460 commit b1c7d78

File tree

17 files changed

+9
-825
lines changed

17 files changed

+9
-825
lines changed

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

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

3-
## 1.0.0-beta.2 (Unreleased)
3+
## 1.0.0-beta.2 (2021-03-01)
44

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-2021-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
56

67
## 1.0.0-beta.1 (2021-02-23)
78

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

Lines changed: 2 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-2021-02. 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-2021-03. 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.0.0-beta.1</version>
35+
<version>1.0.0-beta.2</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<packaging>jar</packaging>
1414

1515
<name>Microsoft Azure SDK for RedisEnterprise Management</name>
16-
<description>This package contains Microsoft Azure SDK for RedisEnterprise Management SDK. REST API for managing Redis Enterprise resources in Azure. Package tag package-preview-2021-02. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt</description>
16+
<description>This package contains Microsoft Azure SDK for RedisEnterprise Management SDK. REST API for managing Redis Enterprise resources in Azure. Package tag package-2021-03. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt</description>
1717
<url>https://github.com/Azure/azure-sdk-for-java</url>
1818

1919
<licenses>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public RedisEnterpriseManager authenticate(TokenCredential credential, AzureProf
178178
.append("-")
179179
.append("com.azure.resourcemanager.redisenterprise")
180180
.append("/")
181-
.append("1.0.0-beta.1");
181+
.append("1.0.0-beta.2");
182182
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
183183
userAgentBuilder
184184
.append(" (")

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

Lines changed: 0 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import com.azure.resourcemanager.redisenterprise.fluent.models.DatabaseInner;
1616
import com.azure.resourcemanager.redisenterprise.models.DatabaseUpdate;
1717
import com.azure.resourcemanager.redisenterprise.models.ExportClusterParameters;
18-
import com.azure.resourcemanager.redisenterprise.models.ForceUnlinkParameters;
1918
import com.azure.resourcemanager.redisenterprise.models.ImportClusterParameters;
2019
import com.azure.resourcemanager.redisenterprise.models.RegenerateKeyParameters;
2120

@@ -511,76 +510,4 @@ void export(
511510
String databaseName,
512511
ExportClusterParameters parameters,
513512
Context context);
514-
515-
/**
516-
* Forcibly removes the link to the specified database resource.
517-
*
518-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
519-
* @param clusterName The name of the RedisEnterprise cluster.
520-
* @param databaseName The name of the database.
521-
* @param parameters Information identifying the database to be unlinked.
522-
* @throws IllegalArgumentException thrown if parameters fail the validation.
523-
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
524-
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
525-
* @return the completion.
526-
*/
527-
@ServiceMethod(returns = ReturnType.SINGLE)
528-
SyncPoller<PollResult<Void>, Void> beginForceUnlink(
529-
String resourceGroupName, String clusterName, String databaseName, ForceUnlinkParameters parameters);
530-
531-
/**
532-
* Forcibly removes the link to the specified database resource.
533-
*
534-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
535-
* @param clusterName The name of the RedisEnterprise cluster.
536-
* @param databaseName The name of the database.
537-
* @param parameters Information identifying the database to be unlinked.
538-
* @param context The context to associate with this operation.
539-
* @throws IllegalArgumentException thrown if parameters fail the validation.
540-
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
541-
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
542-
* @return the completion.
543-
*/
544-
@ServiceMethod(returns = ReturnType.SINGLE)
545-
SyncPoller<PollResult<Void>, Void> beginForceUnlink(
546-
String resourceGroupName,
547-
String clusterName,
548-
String databaseName,
549-
ForceUnlinkParameters parameters,
550-
Context context);
551-
552-
/**
553-
* Forcibly removes the link to the specified database resource.
554-
*
555-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
556-
* @param clusterName The name of the RedisEnterprise cluster.
557-
* @param databaseName The name of the database.
558-
* @param parameters Information identifying the database to be unlinked.
559-
* @throws IllegalArgumentException thrown if parameters fail the validation.
560-
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
561-
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
562-
*/
563-
@ServiceMethod(returns = ReturnType.SINGLE)
564-
void forceUnlink(
565-
String resourceGroupName, String clusterName, String databaseName, ForceUnlinkParameters parameters);
566-
567-
/**
568-
* Forcibly removes the link to the specified database resource.
569-
*
570-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
571-
* @param clusterName The name of the RedisEnterprise cluster.
572-
* @param databaseName The name of the database.
573-
* @param parameters Information identifying the database to be unlinked.
574-
* @param context The context to associate with this operation.
575-
* @throws IllegalArgumentException thrown if parameters fail the validation.
576-
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
577-
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
578-
*/
579-
@ServiceMethod(returns = ReturnType.SINGLE)
580-
void forceUnlink(
581-
String resourceGroupName,
582-
String clusterName,
583-
String databaseName,
584-
ForceUnlinkParameters parameters,
585-
Context context);
586513
}

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

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import com.azure.core.management.ProxyResource;
1010
import com.azure.core.util.logging.ClientLogger;
1111
import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy;
12-
import com.azure.resourcemanager.redisenterprise.models.DatabasePropertiesGeoReplication;
1312
import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy;
1413
import com.azure.resourcemanager.redisenterprise.models.Module;
1514
import com.azure.resourcemanager.redisenterprise.models.Persistence;
@@ -77,13 +76,6 @@ public class DatabaseInner extends ProxyResource {
7776
@JsonProperty(value = "properties.modules")
7877
private List<Module> modules;
7978

80-
/*
81-
* Optional set of properties to configure geo replication for this
82-
* database.
83-
*/
84-
@JsonProperty(value = "properties.geoReplication")
85-
private DatabasePropertiesGeoReplication geoReplication;
86-
8779
/**
8880
* Get the clientProtocol property: Specifies whether redis clients can connect using TLS-encrypted or plaintext
8981
* redis protocols. Default is TLS-encrypted.
@@ -228,26 +220,6 @@ public DatabaseInner withModules(List<Module> modules) {
228220
return this;
229221
}
230222

231-
/**
232-
* Get the geoReplication property: Optional set of properties to configure geo replication for this database.
233-
*
234-
* @return the geoReplication value.
235-
*/
236-
public DatabasePropertiesGeoReplication geoReplication() {
237-
return this.geoReplication;
238-
}
239-
240-
/**
241-
* Set the geoReplication property: Optional set of properties to configure geo replication for this database.
242-
*
243-
* @param geoReplication the geoReplication value to set.
244-
* @return the DatabaseInner object itself.
245-
*/
246-
public DatabaseInner withGeoReplication(DatabasePropertiesGeoReplication geoReplication) {
247-
this.geoReplication = geoReplication;
248-
return this;
249-
}
250-
251223
/**
252224
* Validates the instance.
253225
*
@@ -260,8 +232,5 @@ public void validate() {
260232
if (modules() != null) {
261233
modules().forEach(e -> e.validate());
262234
}
263-
if (geoReplication() != null) {
264-
geoReplication().validate();
265-
}
266235
}
267236
}

sdk/redisenterprise/azure-resourcemanager-redisenterprise/src/main/java/com/azure/resourcemanager/redisenterprise/implementation/DatabaseImpl.java

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@
1111
import com.azure.resourcemanager.redisenterprise.models.AccessKeys;
1212
import com.azure.resourcemanager.redisenterprise.models.ClusteringPolicy;
1313
import com.azure.resourcemanager.redisenterprise.models.Database;
14-
import com.azure.resourcemanager.redisenterprise.models.DatabasePropertiesGeoReplication;
1514
import com.azure.resourcemanager.redisenterprise.models.DatabaseUpdate;
1615
import com.azure.resourcemanager.redisenterprise.models.EvictionPolicy;
1716
import com.azure.resourcemanager.redisenterprise.models.ExportClusterParameters;
18-
import com.azure.resourcemanager.redisenterprise.models.ForceUnlinkParameters;
1917
import com.azure.resourcemanager.redisenterprise.models.ImportClusterParameters;
2018
import com.azure.resourcemanager.redisenterprise.models.Module;
2119
import com.azure.resourcemanager.redisenterprise.models.Persistence;
@@ -80,10 +78,6 @@ public List<Module> modules() {
8078
}
8179
}
8280

83-
public DatabasePropertiesGeoReplication geoReplication() {
84-
return this.innerModel().geoReplication();
85-
}
86-
8781
public DatabaseInner innerModel() {
8882
return this.innerObject;
8983
}
@@ -215,14 +209,6 @@ public void export(ExportClusterParameters parameters, Context context) {
215209
serviceManager.databases().export(resourceGroupName, clusterName, databaseName, parameters, context);
216210
}
217211

218-
public void forceUnlink(ForceUnlinkParameters parameters) {
219-
serviceManager.databases().forceUnlink(resourceGroupName, clusterName, databaseName, parameters);
220-
}
221-
222-
public void forceUnlink(ForceUnlinkParameters parameters, Context context) {
223-
serviceManager.databases().forceUnlink(resourceGroupName, clusterName, databaseName, parameters, context);
224-
}
225-
226212
public DatabaseImpl withClientProtocol(Protocol clientProtocol) {
227213
if (isInCreateMode()) {
228214
this.innerModel().withClientProtocol(clientProtocol);
@@ -278,16 +264,6 @@ public DatabaseImpl withModules(List<Module> modules) {
278264
}
279265
}
280266

281-
public DatabaseImpl withGeoReplication(DatabasePropertiesGeoReplication geoReplication) {
282-
if (isInCreateMode()) {
283-
this.innerModel().withGeoReplication(geoReplication);
284-
return this;
285-
} else {
286-
this.updateParameters.withGeoReplication(geoReplication);
287-
return this;
288-
}
289-
}
290-
291267
private boolean isInCreateMode() {
292268
return this.innerModel().id() == null;
293269
}

0 commit comments

Comments
 (0)