Skip to content

Commit e59d6e1

Browse files
author
SDKAuto
committed
CodeGen from PR 32507 in Azure/azure-rest-api-specs
Merge ddd2a1e3aaee2812a71480c400fe8d638b297b47 into 91961b8900e8d892b156624e84d941991a54cac7
1 parent 043d043 commit e59d6e1

File tree

380 files changed

+255
-15629
lines changed

Some content is hidden

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

380 files changed

+255
-15629
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# Release History
22

3-
## 1.6.0-beta.1 (Unreleased)
3+
## 1.0.0-beta.1 (2025-02-13)
44

5-
### Features Added
5+
- Azure Resource Manager RecoveryServicesBackup client library for Java. This package contains Microsoft Azure SDK for RecoveryServicesBackup Management SDK. Open API 2.0 Specs for Azure RecoveryServices Backup service. Package tag package-2024-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

7-
### Breaking Changes
7+
### Features Added
88

9-
### Bugs Fixed
9+
#### `models.AzureStorageContainer` was modified
1010

11-
### Other Changes
11+
* `operationType()` was added
12+
* `withOperationType(models.OperationType)` was added
1213

1314
## 1.5.0 (2024-12-19)
1415

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager RecoveryServicesBackup client library for Java.
44

5-
This package contains Microsoft Azure SDK for RecoveryServicesBackup Management SDK. Open API 2.0 Specs for Azure RecoveryServices Backup service. Package tag package-2024-04. 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 RecoveryServicesBackup Management SDK. Open API 2.0 Specs for Azure RecoveryServices Backup service. Package tag package-2024-10. 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-recoveryservicesbackup</artifactId>
35-
<version>1.5.0</version>
35+
<version>1.6.0-beta.1</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})
@@ -52,15 +52,15 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
5252
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
5353

5454
```java
55-
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
55+
AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
5656
TokenCredential credential = new DefaultAzureCredentialBuilder()
5757
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
5858
.build();
5959
RecoveryServicesBackupManager manager = RecoveryServicesBackupManager
6060
.authenticate(credential, profile);
6161
```
6262

63-
The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
63+
The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise.
6464

6565
See [Authentication][authenticate] for more options.
6666

@@ -174,5 +174,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
174174
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
175175
[coc]: https://opensource.microsoft.com/codeofconduct/
176176
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
177-
178-

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

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

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

Lines changed: 2 additions & 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 RecoveryServicesBackup Management</name>
21-
<description>This package contains Microsoft Azure SDK for RecoveryServicesBackup Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Open API 2.0 Specs for Azure RecoveryServices Backup service. Package tag package-2024-04.</description>
21+
<description>This package contains Microsoft Azure SDK for RecoveryServicesBackup Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Open API 2.0 Specs for Azure RecoveryServices Backup service. Package tag package-2024-10.</description>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>
@@ -45,6 +45,7 @@
4545
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4646
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
4747
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
48+
<revapi.skip>true</revapi.skip>
4849
<spotless.skip>false</spotless.skip>
4950
</properties>
5051
<dependencies>

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/RecoveryServicesBackupManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ public RecoveryServicesBackupManager authenticate(TokenCredential credential, Az
415415
.append("-")
416416
.append("com.azure.resourcemanager.recoveryservicesbackup")
417417
.append("/")
418-
.append("1.5.0");
418+
.append("1.0.0-beta.1");
419419
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
420420
userAgentBuilder.append(" (")
421421
.append(Configuration.getGlobalConfiguration().get("java.version"))

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryServicesBackupClientImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ public TieringCostOperationStatusClient getTieringCostOperationStatus() {
934934
this.defaultPollInterval = defaultPollInterval;
935935
this.subscriptionId = subscriptionId;
936936
this.endpoint = endpoint;
937-
this.apiVersion = "2024-04-01";
937+
this.apiVersion = "2024-10-01";
938938
this.backupResourceStorageConfigsNonCrrs = new BackupResourceStorageConfigsNonCrrsClientImpl(this);
939939
this.protectionIntents = new ProtectionIntentsClientImpl(this);
940940
this.backupStatus = new BackupStatusClientImpl(this);

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureStorageContainer.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ public final class AzureStorageContainer extends ProtectionContainer {
4949
*/
5050
private AcquireStorageAccountLock acquireStorageAccountLock;
5151

52+
/*
53+
* Re-Do Operation
54+
*/
55+
private OperationType operationType;
56+
5257
/**
5358
* Creates an instance of AzureStorageContainer class.
5459
*/
@@ -171,6 +176,26 @@ public AzureStorageContainer withAcquireStorageAccountLock(AcquireStorageAccount
171176
return this;
172177
}
173178

179+
/**
180+
* Get the operationType property: Re-Do Operation.
181+
*
182+
* @return the operationType value.
183+
*/
184+
public OperationType operationType() {
185+
return this.operationType;
186+
}
187+
188+
/**
189+
* Set the operationType property: Re-Do Operation.
190+
*
191+
* @param operationType the operationType value to set.
192+
* @return the AzureStorageContainer object itself.
193+
*/
194+
public AzureStorageContainer withOperationType(OperationType operationType) {
195+
this.operationType = operationType;
196+
return this;
197+
}
198+
174199
/**
175200
* {@inheritDoc}
176201
*/
@@ -244,6 +269,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
244269
jsonWriter.writeNumberField("protectedItemCount", this.protectedItemCount);
245270
jsonWriter.writeStringField("acquireStorageAccountLock",
246271
this.acquireStorageAccountLock == null ? null : this.acquireStorageAccountLock.toString());
272+
jsonWriter.writeStringField("operationType", this.operationType == null ? null : this.operationType.toString());
247273
return jsonWriter.writeEndObject();
248274
}
249275

@@ -287,6 +313,8 @@ public static AzureStorageContainer fromJson(JsonReader jsonReader) throws IOExc
287313
} else if ("acquireStorageAccountLock".equals(fieldName)) {
288314
deserializedAzureStorageContainer.acquireStorageAccountLock
289315
= AcquireStorageAccountLock.fromString(reader.getString());
316+
} else if ("operationType".equals(fieldName)) {
317+
deserializedAzureStorageContainer.operationType = OperationType.fromString(reader.getString());
290318
} else {
291319
reader.skipChildren();
292320
}

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationType.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ public final class OperationType extends ExpandableStringEnum<OperationType> {
2626
*/
2727
public static final OperationType REREGISTER = fromString("Reregister");
2828

29+
/**
30+
* Static value Rehydrate for OperationType.
31+
*/
32+
public static final OperationType REHYDRATE = fromString("Rehydrate");
33+
2934
/**
3035
* Creates a new instance of OperationType value.
3136
*

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEnginesGetSamples.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
public final class BackupEnginesGetSamples {
1111
/*
1212
* x-ms-original-file:
13-
* specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/Dpm/
13+
* specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-10-01/examples/Dpm/
1414
* BackupEngines_Get.json
1515
*/
1616
/**

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEnginesListSamples.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
public final class BackupEnginesListSamples {
1111
/*
1212
* x-ms-original-file:
13-
* specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/Dpm/
13+
* specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-10-01/examples/Dpm/
1414
* BackupEngines_List.json
1515
*/
1616
/**

0 commit comments

Comments
 (0)