Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
# Release History

## 1.5.0-beta.1 (Unreleased)
## 1.0.0-beta.1 (2025-04-08)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes
- Azure Resource Manager RecoveryServices client library for Java. This package contains Microsoft Azure SDK for RecoveryServices Management SDK. Recovery Services Client. Package tag package-2025-03-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## 1.4.0 (2024-12-23)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager RecoveryServices client library for Java.

This package contains Microsoft Azure SDK for RecoveryServices Management SDK. Recovery Services Client. 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).
This package contains Microsoft Azure SDK for RecoveryServices Management SDK. Recovery Services Client. Package tag package-2025-03-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## We'd love to hear your feedback

Expand Down Expand Up @@ -52,15 +52,15 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:

```java
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
TokenCredential credential = new DefaultAzureCredentialBuilder()
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
.build();
RecoveryServicesManager manager = RecoveryServicesManager
.authenticate(credential, profile);
```

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

See [Authentication][authenticate] for more options.

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


Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
public final class OperationsListSamples {
/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* ListOperations.json
*/
/**
Expand All @@ -82,7 +82,7 @@ public final class OperationsListSamples {
public final class PrivateLinkResourcesOperationGetSamples {
/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* GetPrivateLinkResources.json
*/
/**
Expand All @@ -107,7 +107,7 @@ public final class PrivateLinkResourcesOperationGetSamples {
public final class PrivateLinkResourcesOperationListSamples {
/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* ListPrivateLinkResources.json
*/
/**
Expand Down Expand Up @@ -137,7 +137,7 @@ import java.util.Arrays;
public final class RecoveryServicesCapabilitiesSamples {
/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* Capabilities.json
*/
/**
Expand Down Expand Up @@ -169,7 +169,7 @@ import com.azure.resourcemanager.recoveryservices.models.CheckNameAvailabilityPa
public final class RecoveryServicesCheckNameAvailabilitySamples {
/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* CheckNameAvailability_Available.json
*/
/**
Expand All @@ -190,7 +190,7 @@ public final class RecoveryServicesCheckNameAvailabilitySamples {

/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* CheckNameAvailability_NotAvailable.json
*/
/**
Expand Down Expand Up @@ -218,7 +218,7 @@ public final class RecoveryServicesCheckNameAvailabilitySamples {
public final class RegisteredIdentitiesDeleteSamples {
/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* DeleteRegisteredIdentities.json
*/
/**
Expand All @@ -243,7 +243,7 @@ public final class RegisteredIdentitiesDeleteSamples {
public final class ReplicationUsagesListSamples {
/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* ListReplicationUsages.json
*/
/**
Expand All @@ -267,7 +267,7 @@ public final class ReplicationUsagesListSamples {
public final class ResourceProviderGetOperationResultSamples {
/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* GetOperationResult.json
*/
/**
Expand All @@ -293,7 +293,7 @@ public final class ResourceProviderGetOperationResultSamples {
public final class ResourceProviderGetOperationStatusSamples {
/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* GetOperationStatus.json
*/
/**
Expand All @@ -319,7 +319,7 @@ public final class ResourceProviderGetOperationStatusSamples {
public final class UsagesListByVaultsSamples {
/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/ListUsages.
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/ListUsages.
* json
*/
/**
Expand All @@ -346,7 +346,7 @@ import com.azure.resourcemanager.recoveryservices.models.RawCertificateData;
public final class VaultCertificatesCreateSamples {
/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* PUTVaultCred.json
*/
/**
Expand Down Expand Up @@ -378,7 +378,7 @@ public final class VaultCertificatesCreateSamples {
public final class VaultExtendedInfoCreateOrUpdateSamples {
/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* UpdateVaultExtendedInfo.json
*/
/**
Expand All @@ -404,7 +404,7 @@ public final class VaultExtendedInfoCreateOrUpdateSamples {
public final class VaultExtendedInfoGetSamples {
/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* GETVaultExtendedInfo.json
*/
/**
Expand All @@ -431,7 +431,7 @@ public final class VaultExtendedInfoGetSamples {
public final class VaultExtendedInfoUpdateSamples {
/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* UpdateVaultExtendedInfo.json
*/
/**
Expand Down Expand Up @@ -479,7 +479,7 @@ import java.util.Map;
public final class VaultsCreateOrUpdateSamples {
/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* PUTVault_WithCMK.json
*/
/**
Expand Down Expand Up @@ -509,7 +509,7 @@ public final class VaultsCreateOrUpdateSamples {

/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/PUTVault.
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/PUTVault.
* json
*/
/**
Expand All @@ -531,7 +531,7 @@ public final class VaultsCreateOrUpdateSamples {

/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* PUTVault_ResourceGuardEnabled.json
*/
/**
Expand Down Expand Up @@ -563,7 +563,7 @@ public final class VaultsCreateOrUpdateSamples {

/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* PUTVault_WithUserAssignedIdentity.json
*/
/**
Expand All @@ -588,7 +588,7 @@ public final class VaultsCreateOrUpdateSamples {

/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* PUTVault_WithMonitoringSettings.json
*/
/**
Expand Down Expand Up @@ -618,7 +618,7 @@ public final class VaultsCreateOrUpdateSamples {

/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* PUTVault_WithRedundancySettings.json
*/
/**
Expand Down Expand Up @@ -664,7 +664,7 @@ public final class VaultsCreateOrUpdateSamples {
public final class VaultsDeleteSamples {
/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/DeleteVault
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/DeleteVault
* .json
*/
/**
Expand All @@ -689,7 +689,7 @@ public final class VaultsDeleteSamples {
public final class VaultsGetByResourceGroupSamples {
/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/GETVault.
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/GETVault.
* json
*/
/**
Expand All @@ -715,7 +715,7 @@ public final class VaultsGetByResourceGroupSamples {
public final class VaultsListSamples {
/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* ListBySubscriptionIds.json
*/
/**
Expand All @@ -739,7 +739,7 @@ public final class VaultsListSamples {
public final class VaultsListByResourceGroupSamples {
/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* ListResources.json
*/
/**
Expand Down Expand Up @@ -783,7 +783,7 @@ import java.util.Map;
public final class VaultsUpdateSamples {
/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* PATCHVault_WithMonitoringSettings.json
*/
/**
Expand Down Expand Up @@ -811,7 +811,7 @@ public final class VaultsUpdateSamples {

/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* PATCHVault_WithCMK.json
*/
/**
Expand Down Expand Up @@ -840,7 +840,7 @@ public final class VaultsUpdateSamples {

/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* PatchVault_WithCMK2.json
*/
/**
Expand All @@ -863,7 +863,7 @@ public final class VaultsUpdateSamples {

/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* PATCHVault_WithCMK3.json
*/
/**
Expand All @@ -889,7 +889,7 @@ public final class VaultsUpdateSamples {

/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/PATCHVault.
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/PATCHVault.
* json
*/
/**
Expand All @@ -906,7 +906,7 @@ public final class VaultsUpdateSamples {

/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* PATCHVault_WithRedundancySettings.json
*/
/**
Expand All @@ -928,7 +928,7 @@ public final class VaultsUpdateSamples {

/*
* x-ms-original-file:
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
* PATCHVault_WithUserAssignedIdentity.json
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for RecoveryServices Management</name>
<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-2024-04.</description>
<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-2025-03-01.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand All @@ -45,6 +45,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
<revapi.skip>true</revapi.skip>
<spotless.skip>false</spotless.skip>
</properties>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import com.azure.core.http.policy.UserAgentPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.recoveryservices.fluent.RecoveryServicesManagementClient;
import com.azure.resourcemanager.recoveryservices.implementation.OperationsImpl;
Expand Down Expand Up @@ -49,6 +50,7 @@
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;

Expand Down Expand Up @@ -129,6 +131,9 @@ public static Configurable configure() {
*/
public static final class Configurable {
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
private static final String SDK_VERSION = "version";
private static final Map<String, String> PROPERTIES
= CoreUtils.getProperties("azure-resourcemanager-recoveryservices.properties");

private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
Expand Down Expand Up @@ -236,12 +241,14 @@ public RecoveryServicesManager authenticate(TokenCredential credential, AzurePro
Objects.requireNonNull(credential, "'credential' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");

String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");

StringBuilder userAgentBuilder = new StringBuilder();
userAgentBuilder.append("azsdk-java")
.append("-")
.append("com.azure.resourcemanager.recoveryservices")
.append("/")
.append("1.4.0");
.append(clientVersion);
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
Expand Down
Loading