Skip to content

Commit 4fa808e

Browse files
authored
[Automation] Generate Fluent Lite from recoveryservices#package-2022-04 (Azure#30112)
1 parent 033e484 commit 4fa808e

36 files changed

+697
-64
lines changed

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

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,39 @@
11
# Release History
22

3-
## 1.0.0-beta.3 (Unreleased)
3+
## 1.0.0-beta.3 (2022-07-25)
4+
5+
- Azure Resource Manager RecoveryServices client library for Java. This package contains Microsoft Azure SDK for RecoveryServices Management SDK. Recovery Services Client. Package tag package-2022-04. 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

7-
### Breaking Changes
9+
* `models.MonitoringSettings` was added
10+
11+
* `models.VaultPropertiesRedundancySettings` was added
12+
13+
* `models.BackupStorageVersion` was added
14+
15+
* `models.StandardTierStorageRedundancy` was added
16+
17+
* `models.AzureMonitorAlertSettings` was added
18+
19+
* `models.ClassicAlertSettings` was added
820

9-
### Bugs Fixed
21+
* `models.CrossRegionRestore` was added
22+
23+
* `models.AlertsState` was added
24+
25+
#### `models.ResourceCertificateAndAadDetails` was modified
26+
27+
* `aadAudience()` was added
28+
* `withAadAudience(java.lang.String)` was added
29+
30+
#### `models.VaultProperties` was modified
1031

11-
### Other Changes
32+
* `withMonitoringSettings(models.MonitoringSettings)` was added
33+
* `backupStorageVersion()` was added
34+
* `withRedundancySettings(models.VaultPropertiesRedundancySettings)` was added
35+
* `redundancySettings()` was added
36+
* `monitoringSettings()` was added
1237

1338
## 1.0.0-beta.2 (2022-07-19)
1439

sdk/recoveryservices/azure-resourcemanager-recoveryservices/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 RecoveryServices client library for Java.
44

5-
This package contains Microsoft Azure SDK for RecoveryServices Management SDK. Recovery Services Client. Package tag package-2021-08. 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 RecoveryServices Management SDK. Recovery Services Client. Package tag package-2022-04. 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-recoveryservices</artifactId>
35-
<version>1.0.0-beta.2</version>
35+
<version>1.0.0-beta.3</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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

Lines changed: 88 additions & 26 deletions
Large diffs are not rendered by default.

sdk/recoveryservices/azure-resourcemanager-recoveryservices/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 RecoveryServices Management</name>
16-
<description>This package contains Microsoft Azure SDK for RecoveryServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Recovery Services Client. Package tag package-2021-08.</description>
16+
<description>This package contains Microsoft Azure SDK for RecoveryServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Recovery Services Client. Package tag package-2022-04.</description>
1717
<url>https://github.com/Azure/azure-sdk-for-java</url>
1818

1919
<licenses>

sdk/recoveryservices/azure-resourcemanager-recoveryservices/src/main/java/com/azure/resourcemanager/recoveryservices/RecoveryServicesManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public RecoveryServicesManager authenticate(TokenCredential credential, AzurePro
239239
.append("-")
240240
.append("com.azure.resourcemanager.recoveryservices")
241241
.append("/")
242-
.append("1.0.0-beta.2");
242+
.append("1.0.0-beta.3");
243243
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
244244
userAgentBuilder
245245
.append(" (")

sdk/recoveryservices/azure-resourcemanager-recoveryservices/src/main/java/com/azure/resourcemanager/recoveryservices/implementation/RecoveryServicesManagementClientImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ public UsagesClient getUsages() {
259259
this.defaultPollInterval = defaultPollInterval;
260260
this.subscriptionId = subscriptionId;
261261
this.endpoint = endpoint;
262-
this.apiVersion = "2021-08-01";
262+
this.apiVersion = "2022-04-01";
263263
this.vaultCertificates = new VaultCertificatesClientImpl(this);
264264
this.registeredIdentities = new RegisteredIdentitiesClientImpl(this);
265265
this.replicationUsages = new ReplicationUsagesClientImpl(this);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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.recoveryservices.models;
6+
7+
import com.azure.core.util.ExpandableStringEnum;
8+
import com.fasterxml.jackson.annotation.JsonCreator;
9+
import java.util.Collection;
10+
11+
/** Defines values for AlertsState. */
12+
public final class AlertsState extends ExpandableStringEnum<AlertsState> {
13+
/** Static value Enabled for AlertsState. */
14+
public static final AlertsState ENABLED = fromString("Enabled");
15+
16+
/** Static value Disabled for AlertsState. */
17+
public static final AlertsState DISABLED = fromString("Disabled");
18+
19+
/**
20+
* Creates or finds a AlertsState from its string representation.
21+
*
22+
* @param name a name to look for.
23+
* @return the corresponding AlertsState.
24+
*/
25+
@JsonCreator
26+
public static AlertsState fromString(String name) {
27+
return fromString(name, AlertsState.class);
28+
}
29+
30+
/**
31+
* Gets known AlertsState values.
32+
*
33+
* @return known AlertsState values.
34+
*/
35+
public static Collection<AlertsState> values() {
36+
return values(AlertsState.class);
37+
}
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.recoveryservices.models;
6+
7+
import com.azure.core.annotation.Fluent;
8+
import com.fasterxml.jackson.annotation.JsonProperty;
9+
10+
/** Settings for Azure Monitor based alerts. */
11+
@Fluent
12+
public final class AzureMonitorAlertSettings {
13+
/*
14+
* The alertsForAllJobFailures property.
15+
*/
16+
@JsonProperty(value = "alertsForAllJobFailures")
17+
private AlertsState alertsForAllJobFailures;
18+
19+
/**
20+
* Get the alertsForAllJobFailures property: The alertsForAllJobFailures property.
21+
*
22+
* @return the alertsForAllJobFailures value.
23+
*/
24+
public AlertsState alertsForAllJobFailures() {
25+
return this.alertsForAllJobFailures;
26+
}
27+
28+
/**
29+
* Set the alertsForAllJobFailures property: The alertsForAllJobFailures property.
30+
*
31+
* @param alertsForAllJobFailures the alertsForAllJobFailures value to set.
32+
* @return the AzureMonitorAlertSettings object itself.
33+
*/
34+
public AzureMonitorAlertSettings withAlertsForAllJobFailures(AlertsState alertsForAllJobFailures) {
35+
this.alertsForAllJobFailures = alertsForAllJobFailures;
36+
return this;
37+
}
38+
39+
/**
40+
* Validates the instance.
41+
*
42+
* @throws IllegalArgumentException thrown if the instance is not valid.
43+
*/
44+
public void validate() {
45+
}
46+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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.recoveryservices.models;
6+
7+
import com.azure.core.util.ExpandableStringEnum;
8+
import com.fasterxml.jackson.annotation.JsonCreator;
9+
import java.util.Collection;
10+
11+
/** Defines values for BackupStorageVersion. */
12+
public final class BackupStorageVersion extends ExpandableStringEnum<BackupStorageVersion> {
13+
/** Static value V1 for BackupStorageVersion. */
14+
public static final BackupStorageVersion V1 = fromString("V1");
15+
16+
/** Static value V2 for BackupStorageVersion. */
17+
public static final BackupStorageVersion V2 = fromString("V2");
18+
19+
/** Static value Unassigned for BackupStorageVersion. */
20+
public static final BackupStorageVersion UNASSIGNED = fromString("Unassigned");
21+
22+
/**
23+
* Creates or finds a BackupStorageVersion from its string representation.
24+
*
25+
* @param name a name to look for.
26+
* @return the corresponding BackupStorageVersion.
27+
*/
28+
@JsonCreator
29+
public static BackupStorageVersion fromString(String name) {
30+
return fromString(name, BackupStorageVersion.class);
31+
}
32+
33+
/**
34+
* Gets known BackupStorageVersion values.
35+
*
36+
* @return known BackupStorageVersion values.
37+
*/
38+
public static Collection<BackupStorageVersion> values() {
39+
return values(BackupStorageVersion.class);
40+
}
41+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.recoveryservices.models;
6+
7+
import com.azure.core.annotation.Fluent;
8+
import com.fasterxml.jackson.annotation.JsonProperty;
9+
10+
/** Settings for classic alerts. */
11+
@Fluent
12+
public final class ClassicAlertSettings {
13+
/*
14+
* The alertsForCriticalOperations property.
15+
*/
16+
@JsonProperty(value = "alertsForCriticalOperations")
17+
private AlertsState alertsForCriticalOperations;
18+
19+
/**
20+
* Get the alertsForCriticalOperations property: The alertsForCriticalOperations property.
21+
*
22+
* @return the alertsForCriticalOperations value.
23+
*/
24+
public AlertsState alertsForCriticalOperations() {
25+
return this.alertsForCriticalOperations;
26+
}
27+
28+
/**
29+
* Set the alertsForCriticalOperations property: The alertsForCriticalOperations property.
30+
*
31+
* @param alertsForCriticalOperations the alertsForCriticalOperations value to set.
32+
* @return the ClassicAlertSettings object itself.
33+
*/
34+
public ClassicAlertSettings withAlertsForCriticalOperations(AlertsState alertsForCriticalOperations) {
35+
this.alertsForCriticalOperations = alertsForCriticalOperations;
36+
return this;
37+
}
38+
39+
/**
40+
* Validates the instance.
41+
*
42+
* @throws IllegalArgumentException thrown if the instance is not valid.
43+
*/
44+
public void validate() {
45+
}
46+
}

0 commit comments

Comments
 (0)