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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.1.0-beta.1 (Unreleased)
## 1.0.0-beta.1 (2023-03-07)

- 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</version>
<version>1.1.0-beta.1</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 @@ -18,7 +18,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");
.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 @@ -109,12 +109,24 @@ public final class IaasVMRecoveryPoint extends RecoveryPoint {
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map<String, RecoveryPointMoveReadinessInfo> recoveryPointMoveReadinessInfo;

/*
* Security Type of the Disk
*/
@JsonProperty(value = "securityType")
private String securityType;

/*
* Properties of Recovery Point
*/
@JsonProperty(value = "recoveryPointProperties")
private RecoveryPointProperties recoveryPointProperties;

/*
* This flag denotes if any of the disks in the VM are using Private access network setting
*/
@JsonProperty(value = "isPrivateAccessEnabledOnAnyDisk")
private Boolean isPrivateAccessEnabledOnAnyDisk;

/** Creates an instance of IaasVMRecoveryPoint class. */
public IaasVMRecoveryPoint() {
}
Expand Down Expand Up @@ -424,6 +436,26 @@ public IaasVMRecoveryPoint withRecoveryPointMoveReadinessInfo(
return this;
}

/**
* Get the securityType property: Security Type of the Disk.
*
* @return the securityType value.
*/
public String securityType() {
return this.securityType;
}

/**
* Set the securityType property: Security Type of the Disk.
*
* @param securityType the securityType value to set.
* @return the IaasVMRecoveryPoint object itself.
*/
public IaasVMRecoveryPoint withSecurityType(String securityType) {
this.securityType = securityType;
return this;
}

/**
* Get the recoveryPointProperties property: Properties of Recovery Point.
*
Expand All @@ -444,6 +476,28 @@ public IaasVMRecoveryPoint withRecoveryPointProperties(RecoveryPointProperties r
return this;
}

/**
* Get the isPrivateAccessEnabledOnAnyDisk property: This flag denotes if any of the disks in the VM are using
* Private access network setting.
*
* @return the isPrivateAccessEnabledOnAnyDisk value.
*/
public Boolean isPrivateAccessEnabledOnAnyDisk() {
return this.isPrivateAccessEnabledOnAnyDisk;
}

/**
* Set the isPrivateAccessEnabledOnAnyDisk property: This flag denotes if any of the disks in the VM are using
* Private access network setting.
*
* @param isPrivateAccessEnabledOnAnyDisk the isPrivateAccessEnabledOnAnyDisk value to set.
* @return the IaasVMRecoveryPoint object itself.
*/
public IaasVMRecoveryPoint withIsPrivateAccessEnabledOnAnyDisk(Boolean isPrivateAccessEnabledOnAnyDisk) {
this.isPrivateAccessEnabledOnAnyDisk = isPrivateAccessEnabledOnAnyDisk;
return this;
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,25 @@ 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;

/*
* Stores Secured VM Details
*/
@JsonProperty(value = "securedVMDetails")
private SecuredVMDetails securedVMDetails;

/*
* Specifies target network access settings for disks of VM to be restored,
*/
@JsonProperty(value = "targetDiskNetworkAccessSettings")
private TargetDiskNetworkAccessSettings targetDiskNetworkAccessSettings;

/** Creates an instance of IaasVMRestoreRequest class. */
public IaasVMRestoreRequest() {
}
Expand Down Expand Up @@ -582,6 +601,71 @@ 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;
}

/**
* Get the securedVMDetails property: Stores Secured VM Details.
*
* @return the securedVMDetails value.
*/
public SecuredVMDetails securedVMDetails() {
return this.securedVMDetails;
}

/**
* Set the securedVMDetails property: Stores Secured VM Details.
*
* @param securedVMDetails the securedVMDetails value to set.
* @return the IaasVMRestoreRequest object itself.
*/
public IaasVMRestoreRequest withSecuredVMDetails(SecuredVMDetails securedVMDetails) {
this.securedVMDetails = securedVMDetails;
return this;
}

/**
* Get the targetDiskNetworkAccessSettings property: Specifies target network access settings for disks of VM to be
* restored,.
*
* @return the targetDiskNetworkAccessSettings value.
*/
public TargetDiskNetworkAccessSettings targetDiskNetworkAccessSettings() {
return this.targetDiskNetworkAccessSettings;
}

/**
* Set the targetDiskNetworkAccessSettings property: Specifies target network access settings for disks of VM to be
* restored,.
*
* @param targetDiskNetworkAccessSettings the targetDiskNetworkAccessSettings value to set.
* @return the IaasVMRestoreRequest object itself.
*/
public IaasVMRestoreRequest withTargetDiskNetworkAccessSettings(
TargetDiskNetworkAccessSettings targetDiskNetworkAccessSettings) {
this.targetDiskNetworkAccessSettings = targetDiskNetworkAccessSettings;
return this;
}

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

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

/** {@inheritDoc} */
@Override
public IaasVMRestoreWithRehydrationRequest withSecuredVMDetails(SecuredVMDetails securedVMDetails) {
super.withSecuredVMDetails(securedVMDetails);
return this;
}

/** {@inheritDoc} */
@Override
public IaasVMRestoreWithRehydrationRequest withTargetDiskNetworkAccessSettings(
TargetDiskNetworkAccessSettings targetDiskNetworkAccessSettings) {
super.withTargetDiskNetworkAccessSettings(targetDiskNetworkAccessSettings);
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
Loading