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.8 (Unreleased)
## 1.0.0-beta.1 (2023-02-06)

- 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-2023-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-2023-01. 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-2023-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.7</version>
<version>1.0.0-beta.8</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-2023-01.</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-2023-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 @@ -401,7 +401,7 @@ public RecoveryServicesBackupManager authenticate(TokenCredential credential, Az
.append("-")
.append("com.azure.resourcemanager.recoveryservicesbackup")
.append("/")
.append("1.0.0-beta.7");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ public ResourceGuardProxyOperationsClient getResourceGuardProxyOperations() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
this.apiVersion = "2023-01-01";
this.apiVersion = "2023-02-01";
this.backupResourceStorageConfigsNonCrrs = new BackupResourceStorageConfigsNonCrrsClientImpl(this);
this.protectionIntents = new ProtectionIntentsClientImpl(this);
this.backupStatus = new BackupStatusClientImpl(this);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
// 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.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The extended location of Recovery point where VM was present. */
@Fluent
public final class ExtendedLocation {
/*
* Name of the extended location.
*/
@JsonProperty(value = "name")
private String name;

/*
* Type of the extended location. Possible values include: 'EdgeZone'
*/
@JsonProperty(value = "type")
private String type;

/** Creates an instance of ExtendedLocation class. */
public ExtendedLocation() {
}

/**
* Get the name property: Name of the extended location.
*
* @return the name value.
*/
public String name() {
return this.name;
}

/**
* Set the name property: Name of the extended location.
*
* @param name the name value to set.
* @return the ExtendedLocation object itself.
*/
public ExtendedLocation withName(String name) {
this.name = name;
return this;
}

/**
* Get the type property: Type of the extended location. Possible values include: 'EdgeZone'.
*
* @return the type value.
*/
public String type() {
return this.type;
}

/**
* Set the type property: Type of the extended location. Possible values include: 'EdgeZone'.
*
* @param type the type value to set.
* @return the ExtendedLocation object itself.
*/
public ExtendedLocation withType(String type) {
this.type = type;
return this;
}

/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,13 @@ public class IaasVMRestoreRequest extends RestoreRequest {
@JsonProperty(value = "identityBasedRestoreDetails")
private IdentityBasedRestoreDetails identityBasedRestoreDetails;

/*
* Target extended location where the VM should be restored,
* should be null if restore is to be done in public cloud
*/
@JsonProperty(value = "extendedLocation")
private ExtendedLocation extendedLocation;

/** Creates an instance of IaasVMRestoreRequest class. */
public IaasVMRestoreRequest() {
}
Expand Down Expand Up @@ -582,6 +589,28 @@ public IaasVMRestoreRequest withIdentityBasedRestoreDetails(
return this;
}

/**
* Get the extendedLocation property: Target extended location where the VM should be restored, should be null if
* restore is to be done in public cloud.
*
* @return the extendedLocation value.
*/
public ExtendedLocation extendedLocation() {
return this.extendedLocation;
}

/**
* Set the extendedLocation property: Target extended location where the VM should be restored, should be null if
* restore is to be done in public cloud.
*
* @param extendedLocation the extendedLocation value to set.
* @return the IaasVMRestoreRequest object itself.
*/
public IaasVMRestoreRequest withExtendedLocation(ExtendedLocation extendedLocation) {
this.extendedLocation = extendedLocation;
return this;
}

/**
* Validates the instance.
*
Expand All @@ -599,5 +628,8 @@ public void validate() {
if (identityBasedRestoreDetails() != null) {
identityBasedRestoreDetails().validate();
}
if (extendedLocation() != null) {
extendedLocation().validate();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,13 @@ public IaasVMRestoreWithRehydrationRequest withIdentityBasedRestoreDetails(
return this;
}

/** {@inheritDoc} */
@Override
public IaasVMRestoreWithRehydrationRequest withExtendedLocation(ExtendedLocation extendedLocation) {
super.withExtendedLocation(extendedLocation);
return this;
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ public final class RecoveryPointProperties {
@JsonProperty(value = "ruleName")
private String ruleName;

/*
* Bool to indicate whether RP is in soft delete state or not
*/
@JsonProperty(value = "isSoftDeleted")
private Boolean isSoftDeleted;

/** Creates an instance of RecoveryPointProperties class. */
public RecoveryPointProperties() {
}
Expand Down Expand Up @@ -66,6 +72,26 @@ public RecoveryPointProperties withRuleName(String ruleName) {
return this;
}

/**
* Get the isSoftDeleted property: Bool to indicate whether RP is in soft delete state or not.
*
* @return the isSoftDeleted value.
*/
public Boolean isSoftDeleted() {
return this.isSoftDeleted;
}

/**
* Set the isSoftDeleted property: Bool to indicate whether RP is in soft delete state or not.
*
* @param isSoftDeleted the isSoftDeleted value to set.
* @return the RecoveryPointProperties object itself.
*/
public RecoveryPointProperties withIsSoftDeleted(Boolean isSoftDeleted) {
this.isSoftDeleted = isSoftDeleted;
return this;
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/** Samples for BackupEngines Get. */
public final class BackupEnginesGetSamples {
/*
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Dpm/BackupEngines_Get.json
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/Dpm/BackupEngines_Get.json
*/
/**
* Sample code: Get Dpm/AzureBackupServer/Lajolla Backup Engine Details.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/** Samples for BackupEngines List. */
public final class BackupEnginesListSamples {
/*
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Dpm/BackupEngines_List.json
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/Dpm/BackupEngines_List.json
*/
/**
* Sample code: List Dpm/AzureBackupServer/Lajolla Backup Engines.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/** Samples for BackupJobs List. */
public final class BackupJobsListSamples {
/*
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/ListJobs.json
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/Common/ListJobs.json
*/
/**
* Sample code: List All Jobs.
Expand All @@ -20,7 +20,7 @@ public static void listAllJobs(
}

/*
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/ListJobsWithAllSupportedFilters.json
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/Common/ListJobsWithAllSupportedFilters.json
*/
/**
* Sample code: List Jobs With Filters.
Expand All @@ -41,7 +41,7 @@ public static void listJobsWithFilters(
}

/*
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/ListJobsWithStartTimeAndEndTimeFilters.json
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/Common/ListJobsWithStartTimeAndEndTimeFilters.json
*/
/**
* Sample code: List Jobs With Time Filter.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/** Samples for BackupOperationResults Get. */
public final class BackupOperationResultsGetSamples {
/*
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/ProtectedItem_Delete_OperationResult.json
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/Common/ProtectedItem_Delete_OperationResult.json
*/
/**
* Sample code: Get Result for Protected Item Delete Operation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/** Samples for BackupOperationStatuses Get. */
public final class BackupOperationStatusesGetSamples {
/*
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/ProtectedItem_Delete_OperationStatus.json
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/Common/ProtectedItem_Delete_OperationStatus.json
*/
/**
* Sample code: Get Protected Item Delete Operation Status.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/** Samples for BackupPolicies List. */
public final class BackupPoliciesListSamples {
/*
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/BackupPolicies_List.json
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/AzureWorkload/BackupPolicies_List.json
*/
/**
* Sample code: List protection policies with backupManagementType filter as AzureWorkload.
Expand All @@ -26,7 +26,7 @@ public static void listProtectionPoliciesWithBackupManagementTypeFilterAsAzureWo
}

/*
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/V2Policy/v2-List-Policies.json
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/AzureIaasVm/V2Policy/v2-List-Policies.json
*/
/**
* Sample code: List protection policies with backupManagementType filter as AzureIaasVm with both V1 and V2
Expand All @@ -46,7 +46,7 @@ public static void listProtectionPoliciesWithBackupManagementTypeFilterAsAzureIa
}

/*
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/BackupPolicies_List.json
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/AzureIaasVm/BackupPolicies_List.json
*/
/**
* Sample code: List protection policies with backupManagementType filter as AzureIaasVm.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/** Samples for BackupProtectableItems List. */
public final class BackupProtectableItemsListSamples {
/*
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/BackupProtectableItems_List.json
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/AzureIaasVm/BackupProtectableItems_List.json
*/
/**
* Sample code: List protectable items with backupManagementType filter as AzureIaasVm.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/** Samples for BackupProtectedItems List. */
public final class BackupProtectedItemsListSamples {
/*
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureIaasVm/BackupProtectedItems_List.json
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/AzureIaasVm/BackupProtectedItems_List.json
*/
/**
* Sample code: List protected items with backupManagementType filter as AzureIaasVm.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/** Samples for BackupProtectionContainers List. */
public final class BackupProtectionContainersListSamples {
/*
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureStorage/ProtectionContainers_List.json
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/AzureStorage/ProtectionContainers_List.json
*/
/**
* Sample code: List Backup Protection Containers.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/** Samples for BackupProtectionIntent List. */
public final class BackupProtectionIntentListSamples {
/*
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/AzureWorkload/BackupProtectionIntent_List.json
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/AzureWorkload/BackupProtectionIntent_List.json
*/
/**
* Sample code: List protection intent with backupManagementType filter.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/** Samples for BackupResourceEncryptionConfigs Get. */
public final class BackupResourceEncryptionConfigsGetSamples {
/*
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/BackupResourceEncryptionConfig_Get.json
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/BackupResourceEncryptionConfig_Get.json
*/
/**
* Sample code: Get Vault Encryption Configuration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/** Samples for BackupResourceEncryptionConfigs Update. */
public final class BackupResourceEncryptionConfigsUpdateSamples {
/*
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/BackupResourceEncryptionConfig_Put.json
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/BackupResourceEncryptionConfig_Put.json
*/
/**
* Sample code: Update Vault Encryption Configuration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/** Samples for BackupResourceStorageConfigsNonCrr Get. */
public final class BackupResourceStorageConfigsNonCrrGetSamples {
/*
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupStorageConfig_Get.json
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/Common/BackupStorageConfig_Get.json
*/
/**
* Sample code: Get Vault Storage Configuration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/** Samples for BackupResourceStorageConfigsNonCrr Patch. */
public final class BackupResourceStorageConfigsNonCrrPatchSamples {
/*
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Common/BackupStorageConfig_Patch.json
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-02-01/examples/Common/BackupStorageConfig_Patch.json
*/
/**
* Sample code: Update Vault Storage Configuration.
Expand Down
Loading