Skip to content

Commit 9b504b0

Browse files
author
SDKAuto
committed
CodeGen from PR 33788 in Azure/azure-rest-api-specs
Merge f79d8899e165ee756c25d45d658a4532e4d7e214 into abb839b726184aa10f8d1eaac8e9fe590833619c
1 parent cbacda2 commit 9b504b0

File tree

86 files changed

+81
-2308
lines changed

Some content is hidden

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

86 files changed

+81
-2308
lines changed

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

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

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

5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
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-2025-03-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
126

137
## 1.4.0 (2024-12-23)
148

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

Lines changed: 3 additions & 5 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-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 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).
66

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

@@ -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
RecoveryServicesManager manager = RecoveryServicesManager
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

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

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

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
public final class OperationsListSamples {
6060
/*
6161
* x-ms-original-file:
62-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
62+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
6363
* ListOperations.json
6464
*/
6565
/**
@@ -82,7 +82,7 @@ public final class OperationsListSamples {
8282
public final class PrivateLinkResourcesOperationGetSamples {
8383
/*
8484
* x-ms-original-file:
85-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
85+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
8686
* GetPrivateLinkResources.json
8787
*/
8888
/**
@@ -107,7 +107,7 @@ public final class PrivateLinkResourcesOperationGetSamples {
107107
public final class PrivateLinkResourcesOperationListSamples {
108108
/*
109109
* x-ms-original-file:
110-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
110+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
111111
* ListPrivateLinkResources.json
112112
*/
113113
/**
@@ -137,7 +137,7 @@ import java.util.Arrays;
137137
public final class RecoveryServicesCapabilitiesSamples {
138138
/*
139139
* x-ms-original-file:
140-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
140+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
141141
* Capabilities.json
142142
*/
143143
/**
@@ -169,7 +169,7 @@ import com.azure.resourcemanager.recoveryservices.models.CheckNameAvailabilityPa
169169
public final class RecoveryServicesCheckNameAvailabilitySamples {
170170
/*
171171
* x-ms-original-file:
172-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
172+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
173173
* CheckNameAvailability_Available.json
174174
*/
175175
/**
@@ -190,7 +190,7 @@ public final class RecoveryServicesCheckNameAvailabilitySamples {
190190

191191
/*
192192
* x-ms-original-file:
193-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
193+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
194194
* CheckNameAvailability_NotAvailable.json
195195
*/
196196
/**
@@ -218,7 +218,7 @@ public final class RecoveryServicesCheckNameAvailabilitySamples {
218218
public final class RegisteredIdentitiesDeleteSamples {
219219
/*
220220
* x-ms-original-file:
221-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
221+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
222222
* DeleteRegisteredIdentities.json
223223
*/
224224
/**
@@ -243,7 +243,7 @@ public final class RegisteredIdentitiesDeleteSamples {
243243
public final class ReplicationUsagesListSamples {
244244
/*
245245
* x-ms-original-file:
246-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
246+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
247247
* ListReplicationUsages.json
248248
*/
249249
/**
@@ -267,7 +267,7 @@ public final class ReplicationUsagesListSamples {
267267
public final class ResourceProviderGetOperationResultSamples {
268268
/*
269269
* x-ms-original-file:
270-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
270+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
271271
* GetOperationResult.json
272272
*/
273273
/**
@@ -293,7 +293,7 @@ public final class ResourceProviderGetOperationResultSamples {
293293
public final class ResourceProviderGetOperationStatusSamples {
294294
/*
295295
* x-ms-original-file:
296-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
296+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
297297
* GetOperationStatus.json
298298
*/
299299
/**
@@ -319,7 +319,7 @@ public final class ResourceProviderGetOperationStatusSamples {
319319
public final class UsagesListByVaultsSamples {
320320
/*
321321
* x-ms-original-file:
322-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/ListUsages.
322+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/ListUsages.
323323
* json
324324
*/
325325
/**
@@ -346,7 +346,7 @@ import com.azure.resourcemanager.recoveryservices.models.RawCertificateData;
346346
public final class VaultCertificatesCreateSamples {
347347
/*
348348
* x-ms-original-file:
349-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
349+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
350350
* PUTVaultCred.json
351351
*/
352352
/**
@@ -378,7 +378,7 @@ public final class VaultCertificatesCreateSamples {
378378
public final class VaultExtendedInfoCreateOrUpdateSamples {
379379
/*
380380
* x-ms-original-file:
381-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
381+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
382382
* UpdateVaultExtendedInfo.json
383383
*/
384384
/**
@@ -404,7 +404,7 @@ public final class VaultExtendedInfoCreateOrUpdateSamples {
404404
public final class VaultExtendedInfoGetSamples {
405405
/*
406406
* x-ms-original-file:
407-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
407+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
408408
* GETVaultExtendedInfo.json
409409
*/
410410
/**
@@ -431,7 +431,7 @@ public final class VaultExtendedInfoGetSamples {
431431
public final class VaultExtendedInfoUpdateSamples {
432432
/*
433433
* x-ms-original-file:
434-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
434+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
435435
* UpdateVaultExtendedInfo.json
436436
*/
437437
/**
@@ -479,7 +479,7 @@ import java.util.Map;
479479
public final class VaultsCreateOrUpdateSamples {
480480
/*
481481
* x-ms-original-file:
482-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
482+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
483483
* PUTVault_WithCMK.json
484484
*/
485485
/**
@@ -509,7 +509,7 @@ public final class VaultsCreateOrUpdateSamples {
509509

510510
/*
511511
* x-ms-original-file:
512-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/PUTVault.
512+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/PUTVault.
513513
* json
514514
*/
515515
/**
@@ -531,7 +531,7 @@ public final class VaultsCreateOrUpdateSamples {
531531

532532
/*
533533
* x-ms-original-file:
534-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
534+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
535535
* PUTVault_ResourceGuardEnabled.json
536536
*/
537537
/**
@@ -563,7 +563,7 @@ public final class VaultsCreateOrUpdateSamples {
563563

564564
/*
565565
* x-ms-original-file:
566-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
566+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
567567
* PUTVault_WithUserAssignedIdentity.json
568568
*/
569569
/**
@@ -588,7 +588,7 @@ public final class VaultsCreateOrUpdateSamples {
588588

589589
/*
590590
* x-ms-original-file:
591-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
591+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
592592
* PUTVault_WithMonitoringSettings.json
593593
*/
594594
/**
@@ -618,7 +618,7 @@ public final class VaultsCreateOrUpdateSamples {
618618

619619
/*
620620
* x-ms-original-file:
621-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
621+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
622622
* PUTVault_WithRedundancySettings.json
623623
*/
624624
/**
@@ -664,7 +664,7 @@ public final class VaultsCreateOrUpdateSamples {
664664
public final class VaultsDeleteSamples {
665665
/*
666666
* x-ms-original-file:
667-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/DeleteVault
667+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/DeleteVault
668668
* .json
669669
*/
670670
/**
@@ -689,7 +689,7 @@ public final class VaultsDeleteSamples {
689689
public final class VaultsGetByResourceGroupSamples {
690690
/*
691691
* x-ms-original-file:
692-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/GETVault.
692+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/GETVault.
693693
* json
694694
*/
695695
/**
@@ -715,7 +715,7 @@ public final class VaultsGetByResourceGroupSamples {
715715
public final class VaultsListSamples {
716716
/*
717717
* x-ms-original-file:
718-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
718+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
719719
* ListBySubscriptionIds.json
720720
*/
721721
/**
@@ -739,7 +739,7 @@ public final class VaultsListSamples {
739739
public final class VaultsListByResourceGroupSamples {
740740
/*
741741
* x-ms-original-file:
742-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
742+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
743743
* ListResources.json
744744
*/
745745
/**
@@ -783,7 +783,7 @@ import java.util.Map;
783783
public final class VaultsUpdateSamples {
784784
/*
785785
* x-ms-original-file:
786-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
786+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
787787
* PATCHVault_WithMonitoringSettings.json
788788
*/
789789
/**
@@ -811,7 +811,7 @@ public final class VaultsUpdateSamples {
811811

812812
/*
813813
* x-ms-original-file:
814-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
814+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
815815
* PATCHVault_WithCMK.json
816816
*/
817817
/**
@@ -840,7 +840,7 @@ public final class VaultsUpdateSamples {
840840

841841
/*
842842
* x-ms-original-file:
843-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
843+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
844844
* PatchVault_WithCMK2.json
845845
*/
846846
/**
@@ -863,7 +863,7 @@ public final class VaultsUpdateSamples {
863863

864864
/*
865865
* x-ms-original-file:
866-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
866+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
867867
* PATCHVault_WithCMK3.json
868868
*/
869869
/**
@@ -889,7 +889,7 @@ public final class VaultsUpdateSamples {
889889

890890
/*
891891
* x-ms-original-file:
892-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/PATCHVault.
892+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/PATCHVault.
893893
* json
894894
*/
895895
/**
@@ -906,7 +906,7 @@ public final class VaultsUpdateSamples {
906906

907907
/*
908908
* x-ms-original-file:
909-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
909+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
910910
* PATCHVault_WithRedundancySettings.json
911911
*/
912912
/**
@@ -928,7 +928,7 @@ public final class VaultsUpdateSamples {
928928

929929
/*
930930
* x-ms-original-file:
931-
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
931+
* specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-03-01/examples/
932932
* PATCHVault_WithUserAssignedIdentity.json
933933
*/
934934
/**

sdk/recoveryservices/azure-resourcemanager-recoveryservices/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 RecoveryServices Management</name>
21-
<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>
21+
<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>
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/recoveryservices/azure-resourcemanager-recoveryservices/src/main/java/com/azure/resourcemanager/recoveryservices/RecoveryServicesManager.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import com.azure.core.http.policy.UserAgentPolicy;
2323
import com.azure.core.management.profile.AzureProfile;
2424
import com.azure.core.util.Configuration;
25+
import com.azure.core.util.CoreUtils;
2526
import com.azure.core.util.logging.ClientLogger;
2627
import com.azure.resourcemanager.recoveryservices.fluent.RecoveryServicesManagementClient;
2728
import com.azure.resourcemanager.recoveryservices.implementation.OperationsImpl;
@@ -49,6 +50,7 @@
4950
import java.time.temporal.ChronoUnit;
5051
import java.util.ArrayList;
5152
import java.util.List;
53+
import java.util.Map;
5254
import java.util.Objects;
5355
import java.util.stream.Collectors;
5456

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

133138
private HttpClient httpClient;
134139
private HttpLogOptions httpLogOptions;
@@ -236,12 +241,14 @@ public RecoveryServicesManager authenticate(TokenCredential credential, AzurePro
236241
Objects.requireNonNull(credential, "'credential' cannot be null.");
237242
Objects.requireNonNull(profile, "'profile' cannot be null.");
238243

244+
String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
245+
239246
StringBuilder userAgentBuilder = new StringBuilder();
240247
userAgentBuilder.append("azsdk-java")
241248
.append("-")
242249
.append("com.azure.resourcemanager.recoveryservices")
243250
.append("/")
244-
.append("1.4.0");
251+
.append(clientVersion);
245252
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
246253
userAgentBuilder.append(" (")
247254
.append(Configuration.getGlobalConfiguration().get("java.version"))

0 commit comments

Comments
 (0)