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,6 +1,8 @@
# Release History

## 1.0.0-beta.5 (Unreleased)
## 1.0.0-beta.1 (2022-05-13)

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

### Features Added

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

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-2021-12. 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 RecoveryServicesBackup Management SDK. Open API 2.0 Specs for Azure RecoveryServices Backup service. Package tag package-2022-02. 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 @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-recoveryservicesbackup</artifactId>
<version>1.0.0-beta.4</version>
<version>1.0.0-beta.5</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for RecoveryServicesBackup Management</name>
<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-2021-12.</description>
<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-2022-02.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ public RecoveryServicesBackupManager authenticate(TokenCredential credential, Az
.append("-")
.append("com.azure.resourcemanager.recoveryservicesbackup")
.append("/")
.append("1.0.0-beta.4");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -469,7 +469,7 @@ public BackupResourceStorageConfigsNonCrrs backupResourceStorageConfigsNonCrrs()
}

/**
* Gets the resource collection API of ProtectionIntents.
* Gets the resource collection API of ProtectionIntents. It manages ProtectionIntentResource.
*
* @return Resource collection API of ProtectionIntents.
*/
Expand Down Expand Up @@ -568,7 +568,7 @@ public BackupResourceEncryptionConfigs backupResourceEncryptionConfigs() {
}

/**
* Gets the resource collection API of PrivateEndpointConnections.
* Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnectionResource.
*
* @return Resource collection API of PrivateEndpointConnections.
*/
Expand Down Expand Up @@ -618,7 +618,7 @@ public BmsPrepareDataMoveOperationResults bmsPrepareDataMoveOperationResults() {
}

/**
* Gets the resource collection API of ProtectedItems.
* Gets the resource collection API of ProtectedItems. It manages ProtectedItemResource.
*
* @return Resource collection API of ProtectedItems.
*/
Expand Down Expand Up @@ -679,7 +679,7 @@ public BackupPolicies backupPolicies() {
}

/**
* Gets the resource collection API of ProtectionPolicies.
* Gets the resource collection API of ProtectionPolicies. It manages ProtectionPolicyResource.
*
* @return Resource collection API of ProtectionPolicies.
*/
Expand Down Expand Up @@ -877,7 +877,7 @@ public ProtectableContainers protectableContainers() {
}

/**
* Gets the resource collection API of ProtectionContainers.
* Gets the resource collection API of ProtectionContainers. It manages ProtectionContainerResource.
*
* @return Resource collection API of ProtectionContainers.
*/
Expand Down Expand Up @@ -1055,7 +1055,7 @@ public ResourceGuardProxies resourceGuardProxies() {
}

/**
* Gets the resource collection API of ResourceGuardProxyOperations.
* Gets the resource collection API of ResourceGuardProxyOperations. It manages ResourceGuardProxyBaseResource.
*
* @return Resource collection API of ResourceGuardProxyOperations.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,26 @@ Response<ResourceGuardProxyBaseResourceInner> getWithResponse(
* @param vaultName The name of the recovery services vault.
* @param resourceGroupName The name of the resource group where the recovery services vault is present.
* @param resourceGuardProxyName The resourceGuardProxyName parameter.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ResourceGuardProxyBaseResourceInner put(String vaultName, String resourceGroupName, String resourceGuardProxyName);
ResourceGuardProxyBaseResourceInner put(
String vaultName,
String resourceGroupName,
String resourceGuardProxyName,
ResourceGuardProxyBaseResourceInner parameters);

/**
* Add or Update ResourceGuardProxy under vault Secures vault critical operations.
*
* @param vaultName The name of the recovery services vault.
* @param resourceGroupName The name of the resource group where the recovery services vault is present.
* @param resourceGuardProxyName The resourceGuardProxyName parameter.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
Expand All @@ -72,7 +78,11 @@ Response<ResourceGuardProxyBaseResourceInner> getWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ResourceGuardProxyBaseResourceInner> putWithResponse(
String vaultName, String resourceGroupName, String resourceGuardProxyName, Context context);
String vaultName,
String resourceGroupName,
String resourceGuardProxyName,
ResourceGuardProxyBaseResourceInner parameters,
Context context);

/**
* Delete ResourceGuardProxy under vault.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,14 +456,7 @@ private Mono<Response<BackupEngineBaseResourceInner>> getWithResponseAsync(
private Mono<BackupEngineBaseResourceInner> getAsync(
String vaultName, String resourceGroupName, String backupEngineName, String filter, String skipToken) {
return getWithResponseAsync(vaultName, resourceGroupName, backupEngineName, filter, skipToken)
.flatMap(
(Response<BackupEngineBaseResourceInner> res) -> {
if (res.getValue() != null) {
return Mono.just(res.getValue());
} else {
return Mono.empty();
}
});
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}

/**
Expand All @@ -483,14 +476,7 @@ private Mono<BackupEngineBaseResourceInner> getAsync(
final String filter = null;
final String skipToken = null;
return getWithResponseAsync(vaultName, resourceGroupName, backupEngineName, filter, skipToken)
.flatMap(
(Response<BackupEngineBaseResourceInner> res) -> {
if (res.getValue() != null) {
return Mono.just(res.getValue());
} else {
return Mono.empty();
}
});
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,7 @@ private Mono<Response<Void>> getWithResponseAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<Void> getAsync(String vaultName, String resourceGroupName, String operationId) {
return getWithResponseAsync(vaultName, resourceGroupName, operationId)
.flatMap((Response<Void> res) -> Mono.empty());
return getWithResponseAsync(vaultName, resourceGroupName, operationId).flatMap(ignored -> Mono.empty());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,7 @@ private Mono<Response<OperationStatusInner>> getWithResponseAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<OperationStatusInner> getAsync(String vaultName, String resourceGroupName, String operationId) {
return getWithResponseAsync(vaultName, resourceGroupName, operationId)
.flatMap(
(Response<OperationStatusInner> res) -> {
if (res.getValue() != null) {
return Mono.just(res.getValue());
} else {
return Mono.empty();
}
});
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,7 @@ private Mono<Response<BackupResourceEncryptionConfigExtendedResourceInner>> getW
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<BackupResourceEncryptionConfigExtendedResourceInner> getAsync(
String vaultName, String resourceGroupName) {
return getWithResponseAsync(vaultName, resourceGroupName)
.flatMap(
(Response<BackupResourceEncryptionConfigExtendedResourceInner> res) -> {
if (res.getValue() != null) {
return Mono.just(res.getValue());
} else {
return Mono.empty();
}
});
return getWithResponseAsync(vaultName, resourceGroupName).flatMap(res -> Mono.justOrEmpty(res.getValue()));
}

/**
Expand Down Expand Up @@ -365,8 +357,7 @@ private Mono<Response<Void>> updateWithResponseAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<Void> updateAsync(
String vaultName, String resourceGroupName, BackupResourceEncryptionConfigResource parameters) {
return updateWithResponseAsync(vaultName, resourceGroupName, parameters)
.flatMap((Response<Void> res) -> Mono.empty());
return updateWithResponseAsync(vaultName, resourceGroupName, parameters).flatMap(ignored -> Mono.empty());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,7 @@ private Mono<Response<BackupResourceConfigResourceInner>> getWithResponseAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<BackupResourceConfigResourceInner> getAsync(String vaultName, String resourceGroupName) {
return getWithResponseAsync(vaultName, resourceGroupName)
.flatMap(
(Response<BackupResourceConfigResourceInner> res) -> {
if (res.getValue() != null) {
return Mono.just(res.getValue());
} else {
return Mono.empty();
}
});
return getWithResponseAsync(vaultName, resourceGroupName).flatMap(res -> Mono.justOrEmpty(res.getValue()));
}

/**
Expand Down Expand Up @@ -380,14 +372,7 @@ private Mono<Response<BackupResourceConfigResourceInner>> updateWithResponseAsyn
private Mono<BackupResourceConfigResourceInner> updateAsync(
String vaultName, String resourceGroupName, BackupResourceConfigResourceInner parameters) {
return updateWithResponseAsync(vaultName, resourceGroupName, parameters)
.flatMap(
(Response<BackupResourceConfigResourceInner> res) -> {
if (res.getValue() != null) {
return Mono.just(res.getValue());
} else {
return Mono.empty();
}
});
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}

/**
Expand Down Expand Up @@ -547,8 +532,7 @@ private Mono<Response<Void>> patchWithResponseAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<Void> patchAsync(
String vaultName, String resourceGroupName, BackupResourceConfigResourceInner parameters) {
return patchWithResponseAsync(vaultName, resourceGroupName, parameters)
.flatMap((Response<Void> res) -> Mono.empty());
return patchWithResponseAsync(vaultName, resourceGroupName, parameters).flatMap(ignored -> Mono.empty());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,15 +212,7 @@ private Mono<Response<BackupResourceVaultConfigResourceInner>> getWithResponseAs
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<BackupResourceVaultConfigResourceInner> getAsync(String vaultName, String resourceGroupName) {
return getWithResponseAsync(vaultName, resourceGroupName)
.flatMap(
(Response<BackupResourceVaultConfigResourceInner> res) -> {
if (res.getValue() != null) {
return Mono.just(res.getValue());
} else {
return Mono.empty();
}
});
return getWithResponseAsync(vaultName, resourceGroupName).flatMap(res -> Mono.justOrEmpty(res.getValue()));
}

/**
Expand Down Expand Up @@ -383,14 +375,7 @@ private Mono<Response<BackupResourceVaultConfigResourceInner>> updateWithRespons
private Mono<BackupResourceVaultConfigResourceInner> updateAsync(
String vaultName, String resourceGroupName, BackupResourceVaultConfigResourceInner parameters) {
return updateWithResponseAsync(vaultName, resourceGroupName, parameters)
.flatMap(
(Response<BackupResourceVaultConfigResourceInner> res) -> {
if (res.getValue() != null) {
return Mono.just(res.getValue());
} else {
return Mono.empty();
}
});
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}

/**
Expand Down Expand Up @@ -559,14 +544,7 @@ private Mono<Response<BackupResourceVaultConfigResourceInner>> putWithResponseAs
private Mono<BackupResourceVaultConfigResourceInner> putAsync(
String vaultName, String resourceGroupName, BackupResourceVaultConfigResourceInner parameters) {
return putWithResponseAsync(vaultName, resourceGroupName, parameters)
.flatMap(
(Response<BackupResourceVaultConfigResourceInner> res) -> {
if (res.getValue() != null) {
return Mono.just(res.getValue());
} else {
return Mono.empty();
}
});
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,7 @@ private Mono<Response<BackupStatusResponseInner>> getWithResponseAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<BackupStatusResponseInner> getAsync(String azureRegion, BackupStatusRequest parameters) {
return getWithResponseAsync(azureRegion, parameters)
.flatMap(
(Response<BackupStatusResponseInner> res) -> {
if (res.getValue() != null) {
return Mono.just(res.getValue());
} else {
return Mono.empty();
}
});
return getWithResponseAsync(azureRegion, parameters).flatMap(res -> Mono.justOrEmpty(res.getValue()));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ private Mono<Void> triggerAsync(
BackupRequestResource parameters) {
return triggerWithResponseAsync(
vaultName, resourceGroupName, fabricName, containerName, protectedItemName, parameters)
.flatMap((Response<Void> res) -> Mono.empty());
.flatMap(ignored -> Mono.empty());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,7 @@ private Mono<Response<VaultStorageConfigOperationResultResponseInner>> getWithRe
private Mono<VaultStorageConfigOperationResultResponseInner> getAsync(
String vaultName, String resourceGroupName, String operationId) {
return getWithResponseAsync(vaultName, resourceGroupName, operationId)
.flatMap(
(Response<VaultStorageConfigOperationResultResponseInner> res) -> {
if (res.getValue() != null) {
return Mono.just(res.getValue());
} else {
return Mono.empty();
}
});
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,7 @@ private Mono<Response<OperationResultInfoBaseResourceInner>> getWithResponseAsyn
private Mono<OperationResultInfoBaseResourceInner> getAsync(
String vaultName, String resourceGroupName, String operationId) {
return getWithResponseAsync(vaultName, resourceGroupName, operationId)
.flatMap(
(Response<OperationResultInfoBaseResourceInner> res) -> {
if (res.getValue() != null) {
return Mono.just(res.getValue());
} else {
return Mono.empty();
}
});
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,15 +180,7 @@ private Mono<Response<AzureVMResourceFeatureSupportResponseInner>> validateWithR
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<AzureVMResourceFeatureSupportResponseInner> validateAsync(
String azureRegion, FeatureSupportRequest parameters) {
return validateWithResponseAsync(azureRegion, parameters)
.flatMap(
(Response<AzureVMResourceFeatureSupportResponseInner> res) -> {
if (res.getValue() != null) {
return Mono.just(res.getValue());
} else {
return Mono.empty();
}
});
return validateWithResponseAsync(azureRegion, parameters).flatMap(res -> Mono.justOrEmpty(res.getValue()));
}

/**
Expand Down
Loading