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.3 (Unreleased)
## 1.0.0-beta.1 (2021-12-15)

- 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-10. 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-07. 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-2021-10. 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.2</version>
<version>1.0.0-beta.3</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-07.</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-2021-10.</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 @@ -69,6 +69,9 @@
import com.azure.resourcemanager.recoveryservicesbackup.implementation.ResourceProvidersImpl;
import com.azure.resourcemanager.recoveryservicesbackup.implementation.RestoresImpl;
import com.azure.resourcemanager.recoveryservicesbackup.implementation.SecurityPINsImpl;
import com.azure.resourcemanager.recoveryservicesbackup.implementation.ValidateOperationResultsImpl;
import com.azure.resourcemanager.recoveryservicesbackup.implementation.ValidateOperationStatusesImpl;
import com.azure.resourcemanager.recoveryservicesbackup.implementation.ValidateOperationsImpl;
import com.azure.resourcemanager.recoveryservicesbackup.models.BackupEngines;
import com.azure.resourcemanager.recoveryservicesbackup.models.BackupJobs;
import com.azure.resourcemanager.recoveryservicesbackup.models.BackupOperationResults;
Expand Down Expand Up @@ -115,6 +118,9 @@
import com.azure.resourcemanager.recoveryservicesbackup.models.ResourceProviders;
import com.azure.resourcemanager.recoveryservicesbackup.models.Restores;
import com.azure.resourcemanager.recoveryservicesbackup.models.SecurityPINs;
import com.azure.resourcemanager.recoveryservicesbackup.models.ValidateOperationResults;
import com.azure.resourcemanager.recoveryservicesbackup.models.ValidateOperationStatuses;
import com.azure.resourcemanager.recoveryservicesbackup.models.ValidateOperations;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
Expand Down Expand Up @@ -180,6 +186,12 @@ public final class RecoveryServicesBackupManager {

private OperationOperations operationOperations;

private ValidateOperations validateOperations;

private ValidateOperationResults validateOperationResults;

private ValidateOperationStatuses validateOperationStatuses;

private BackupEngines backupEngines;

private ProtectionContainerRefreshOperationResults protectionContainerRefreshOperationResults;
Expand Down Expand Up @@ -354,7 +366,7 @@ public RecoveryServicesBackupManager authenticate(TokenCredential credential, Az
.append("-")
.append("com.azure.resourcemanager.recoveryservicesbackup")
.append("/")
.append("1.0.0-beta.2");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -640,6 +652,32 @@ public OperationOperations operationOperations() {
return operationOperations;
}

/** @return Resource collection API of ValidateOperations. */
public ValidateOperations validateOperations() {
if (this.validateOperations == null) {
this.validateOperations = new ValidateOperationsImpl(clientObject.getValidateOperations(), this);
}
return validateOperations;
}

/** @return Resource collection API of ValidateOperationResults. */
public ValidateOperationResults validateOperationResults() {
if (this.validateOperationResults == null) {
this.validateOperationResults =
new ValidateOperationResultsImpl(clientObject.getValidateOperationResults(), this);
}
return validateOperationResults;
}

/** @return Resource collection API of ValidateOperationStatuses. */
public ValidateOperationStatuses validateOperationStatuses() {
if (this.validateOperationStatuses == null) {
this.validateOperationStatuses =
new ValidateOperationStatusesImpl(clientObject.getValidateOperationStatuses(), this);
}
return validateOperationStatuses;
}

/** @return Resource collection API of BackupEngines. */
public BackupEngines backupEngines() {
if (this.backupEngines == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,27 @@ public interface RecoveryServicesBackupClient {
*/
OperationOperationsClient getOperationOperations();

/**
* Gets the ValidateOperationsClient object to access its operations.
*
* @return the ValidateOperationsClient object.
*/
ValidateOperationsClient getValidateOperations();

/**
* Gets the ValidateOperationResultsClient object to access its operations.
*
* @return the ValidateOperationResultsClient object.
*/
ValidateOperationResultsClient getValidateOperationResults();

/**
* Gets the ValidateOperationStatusesClient object to access its operations.
*
* @return the ValidateOperationStatusesClient object.
*/
ValidateOperationStatusesClient getValidateOperationStatuses();

/**
* Gets the BackupEnginesClient object to access its operations.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.recoveryservicesbackup.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.ValidateOperationsResponseInner;

/** An instance of this class provides access to all the operations defined in ValidateOperationResultsClient. */
public interface ValidateOperationResultsClient {
/**
* Fetches the result of a triggered validate operation.
*
* @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 operationId OperationID which represents the operation whose result needs to be fetched.
* @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)
ValidateOperationsResponseInner get(String vaultName, String resourceGroupName, String operationId);

/**
* Fetches the result of a triggered validate operation.
*
* @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 operationId OperationID which represents the operation whose result needs to be fetched.
* @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.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ValidateOperationsResponseInner> getWithResponse(
String vaultName, String resourceGroupName, String operationId, Context context);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.recoveryservicesbackup.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.OperationStatusInner;

/** An instance of this class provides access to all the operations defined in ValidateOperationStatusesClient. */
public interface ValidateOperationStatusesClient {
/**
* Fetches the status of a triggered validate operation. The status can be in progress, completed or failed. You can
* refer to the OperationStatus enum for all the possible states of the operation. If operation has completed, this
* method returns the list of errors obtained while validating the operation.
*
* @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 operationId OperationID represents the operation whose status needs to be fetched.
* @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 operation status.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
OperationStatusInner get(String vaultName, String resourceGroupName, String operationId);

/**
* Fetches the status of a triggered validate operation. The status can be in progress, completed or failed. You can
* refer to the OperationStatus enum for all the possible states of the operation. If operation has completed, this
* method returns the list of errors obtained while validating the operation.
*
* @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 operationId OperationID represents the operation whose status needs to be fetched.
* @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.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return operation status.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<OperationStatusInner> getWithResponse(
String vaultName, String resourceGroupName, String operationId, Context context);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.recoveryservicesbackup.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.recoveryservicesbackup.models.ValidateOperationRequest;

/** An instance of this class provides access to all the operations defined in ValidateOperationsClient. */
public interface ValidateOperationsClient {
/**
* Validate operation for specified backed up item in the form of an asynchronous operation. Returns tracking
* headers which can be tracked using GetValidateOperationResult API.
*
* @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 parameters resource validate operation request.
* @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 completion.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginTrigger(
String vaultName, String resourceGroupName, ValidateOperationRequest parameters);

/**
* Validate operation for specified backed up item in the form of an asynchronous operation. Returns tracking
* headers which can be tracked using GetValidateOperationResult API.
*
* @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 parameters resource validate operation request.
* @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.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginTrigger(
String vaultName, String resourceGroupName, ValidateOperationRequest parameters, Context context);

/**
* Validate operation for specified backed up item in the form of an asynchronous operation. Returns tracking
* headers which can be tracked using GetValidateOperationResult API.
*
* @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 parameters resource validate operation request.
* @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void trigger(String vaultName, String resourceGroupName, ValidateOperationRequest parameters);

/**
* Validate operation for specified backed up item in the form of an asynchronous operation. Returns tracking
* headers which can be tracked using GetValidateOperationResult API.
*
* @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 parameters resource validate operation request.
* @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.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void trigger(String vaultName, String resourceGroupName, ValidateOperationRequest parameters, Context context);
}
Loading