Skip to content

[AutoPR azure-resourcemanager-recoveryservicesbackup] Fixing live validation correctness error for BackupProtectableItems_List #4944

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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.2.0-beta.1 (Unreleased)
## 1.0.0-beta.1 (2023-04-19)

- 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 @@ -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.1.0</version>
<version>1.2.0-beta.1</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1384,6 +1384,8 @@ import com.azure.resourcemanager.recoveryservicesbackup.models.PrivateEndpointCo
import com.azure.resourcemanager.recoveryservicesbackup.models.PrivateEndpointConnectionStatus;
import com.azure.resourcemanager.recoveryservicesbackup.models.PrivateLinkServiceConnectionState;
import com.azure.resourcemanager.recoveryservicesbackup.models.ProvisioningState;
import com.azure.resourcemanager.recoveryservicesbackup.models.VaultSubResourceType;
import java.util.Arrays;

/** Samples for PrivateEndpointConnection Put. */
public final class PrivateEndpointConnectionPutSamples {
Expand Down Expand Up @@ -1415,6 +1417,7 @@ public final class PrivateEndpointConnectionPutSamples {
new PrivateEndpoint()
.withId(
"/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/gaallaRG/providers/Microsoft.Network/privateEndpoints/gaallatestpe3"))
.withGroupIds(Arrays.asList(VaultSubResourceType.AZURE_BACKUP_SECONDARY))
.withPrivateLinkServiceConnectionState(
new PrivateLinkServiceConnectionState()
.withStatus(PrivateEndpointConnectionStatus.APPROVED)
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.1.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 @@ -22,7 +22,7 @@
@JsonSubTypes.Type(name = "SAPHanaDatabase", value = AzureVmWorkloadSapHanaDatabaseProtectableItem.class),
@JsonSubTypes.Type(name = "SAPHanaSystem", value = AzureVmWorkloadSapHanaSystemProtectableItem.class),
@JsonSubTypes.Type(name = "SAPHanaDBInstance", value = AzureVmWorkloadSapHanaDBInstance.class),
@JsonSubTypes.Type(name = "SAPHanaHSR", value = AzureVmWorkloadSapHanaHsr.class),
@JsonSubTypes.Type(name = "HanaHSRContainer", value = AzureVmWorkloadSapHanaHsrProtectableItem.class),
@JsonSubTypes.Type(
name = "SQLAvailabilityGroupContainer",
value = AzureVmWorkloadSqlAvailabilityGroupProtectableItem.class),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,95 +8,95 @@
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** Azure VM workload-specific protectable item representing SAP HANA Dbinstance. */
/** Azure VM workload-specific protectable item representing HANA HSR. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "protectableItemType")
@JsonTypeName("SAPHanaHSR")
@JsonTypeName("HanaHSRContainer")
@Fluent
public final class AzureVmWorkloadSapHanaHsr extends AzureVmWorkloadProtectableItem {
/** Creates an instance of AzureVmWorkloadSapHanaHsr class. */
public AzureVmWorkloadSapHanaHsr() {
public final class AzureVmWorkloadSapHanaHsrProtectableItem extends AzureVmWorkloadProtectableItem {
/** Creates an instance of AzureVmWorkloadSapHanaHsrProtectableItem class. */
public AzureVmWorkloadSapHanaHsrProtectableItem() {
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaHsr withParentName(String parentName) {
public AzureVmWorkloadSapHanaHsrProtectableItem withParentName(String parentName) {
super.withParentName(parentName);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaHsr withParentUniqueName(String parentUniqueName) {
public AzureVmWorkloadSapHanaHsrProtectableItem withParentUniqueName(String parentUniqueName) {
super.withParentUniqueName(parentUniqueName);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaHsr withServerName(String serverName) {
public AzureVmWorkloadSapHanaHsrProtectableItem withServerName(String serverName) {
super.withServerName(serverName);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaHsr withIsAutoProtectable(Boolean isAutoProtectable) {
public AzureVmWorkloadSapHanaHsrProtectableItem withIsAutoProtectable(Boolean isAutoProtectable) {
super.withIsAutoProtectable(isAutoProtectable);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaHsr withIsAutoProtected(Boolean isAutoProtected) {
public AzureVmWorkloadSapHanaHsrProtectableItem withIsAutoProtected(Boolean isAutoProtected) {
super.withIsAutoProtected(isAutoProtected);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaHsr withSubinquireditemcount(Integer subinquireditemcount) {
public AzureVmWorkloadSapHanaHsrProtectableItem withSubinquireditemcount(Integer subinquireditemcount) {
super.withSubinquireditemcount(subinquireditemcount);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaHsr withSubprotectableitemcount(Integer subprotectableitemcount) {
public AzureVmWorkloadSapHanaHsrProtectableItem withSubprotectableitemcount(Integer subprotectableitemcount) {
super.withSubprotectableitemcount(subprotectableitemcount);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaHsr withPrebackupvalidation(PreBackupValidation prebackupvalidation) {
public AzureVmWorkloadSapHanaHsrProtectableItem withPrebackupvalidation(PreBackupValidation prebackupvalidation) {
super.withPrebackupvalidation(prebackupvalidation);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaHsr withBackupManagementType(String backupManagementType) {
public AzureVmWorkloadSapHanaHsrProtectableItem withBackupManagementType(String backupManagementType) {
super.withBackupManagementType(backupManagementType);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaHsr withWorkloadType(String workloadType) {
public AzureVmWorkloadSapHanaHsrProtectableItem withWorkloadType(String workloadType) {
super.withWorkloadType(workloadType);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaHsr withFriendlyName(String friendlyName) {
public AzureVmWorkloadSapHanaHsrProtectableItem withFriendlyName(String friendlyName) {
super.withFriendlyName(friendlyName);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaHsr withProtectionState(ProtectionStatus protectionState) {
public AzureVmWorkloadSapHanaHsrProtectableItem withProtectionState(ProtectionStatus protectionState) {
super.withProtectionState(protectionState);
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Private Endpoint Connection Response Properties. */
@Fluent
Expand All @@ -22,6 +23,12 @@ public final class PrivateEndpointConnection {
@JsonProperty(value = "privateEndpoint")
private PrivateEndpoint privateEndpoint;

/*
* Group Ids for the Private Endpoint
*/
@JsonProperty(value = "groupIds")
private List<VaultSubResourceType> groupIds;

/*
* Gets or sets private link service connection state
*/
Expand Down Expand Up @@ -72,6 +79,26 @@ public PrivateEndpointConnection withPrivateEndpoint(PrivateEndpoint privateEndp
return this;
}

/**
* Get the groupIds property: Group Ids for the Private Endpoint.
*
* @return the groupIds value.
*/
public List<VaultSubResourceType> groupIds() {
return this.groupIds;
}

/**
* Set the groupIds property: Group Ids for the Private Endpoint.
*
* @param groupIds the groupIds value to set.
* @return the PrivateEndpointConnection object itself.
*/
public PrivateEndpointConnection withGroupIds(List<VaultSubResourceType> groupIds) {
this.groupIds = groupIds;
return this;
}

/**
* Get the privateLinkServiceConnectionState property: Gets or sets private link service connection state.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public final class PrivateLinkServiceConnectionState {
/*
* Gets or sets actions required
*/
@JsonProperty(value = "actionRequired")
private String actionRequired;
@JsonProperty(value = "actionsRequired")
private String actionsRequired;

/** Creates an instance of PrivateLinkServiceConnectionState class. */
public PrivateLinkServiceConnectionState() {
Expand Down Expand Up @@ -73,22 +73,22 @@ public PrivateLinkServiceConnectionState withDescription(String description) {
}

/**
* Get the actionRequired property: Gets or sets actions required.
* Get the actionsRequired property: Gets or sets actions required.
*
* @return the actionRequired value.
* @return the actionsRequired value.
*/
public String actionRequired() {
return this.actionRequired;
public String actionsRequired() {
return this.actionsRequired;
}

/**
* Set the actionRequired property: Gets or sets actions required.
* Set the actionsRequired property: Gets or sets actions required.
*
* @param actionRequired the actionRequired value to set.
* @param actionsRequired the actionsRequired value to set.
* @return the PrivateLinkServiceConnectionState object itself.
*/
public PrivateLinkServiceConnectionState withActionRequired(String actionRequired) {
this.actionRequired = actionRequired;
public PrivateLinkServiceConnectionState withActionsRequired(String actionsRequired) {
this.actionsRequired = actionsRequired;
return this;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// 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.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** GroupId for the PrivateEndpointConnection - AzureBackup, AzureBackup_secondary or AzureSiteRecovery. */
public final class VaultSubResourceType extends ExpandableStringEnum<VaultSubResourceType> {
/** Static value AzureBackup for VaultSubResourceType. */
public static final VaultSubResourceType AZURE_BACKUP = fromString("AzureBackup");

/** Static value AzureBackup_secondary for VaultSubResourceType. */
public static final VaultSubResourceType AZURE_BACKUP_SECONDARY = fromString("AzureBackup_secondary");

/** Static value AzureSiteRecovery for VaultSubResourceType. */
public static final VaultSubResourceType AZURE_SITE_RECOVERY = fromString("AzureSiteRecovery");

/**
* Creates a new instance of VaultSubResourceType value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public VaultSubResourceType() {
}

/**
* Creates or finds a VaultSubResourceType from its string representation.
*
* @param name a name to look for.
* @return the corresponding VaultSubResourceType.
*/
@JsonCreator
public static VaultSubResourceType fromString(String name) {
return fromString(name, VaultSubResourceType.class);
}

/**
* Gets known VaultSubResourceType values.
*
* @return known VaultSubResourceType values.
*/
public static Collection<VaultSubResourceType> values() {
return values(VaultSubResourceType.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import com.azure.resourcemanager.recoveryservicesbackup.models.PrivateEndpointConnectionStatus;
import com.azure.resourcemanager.recoveryservicesbackup.models.PrivateLinkServiceConnectionState;
import com.azure.resourcemanager.recoveryservicesbackup.models.ProvisioningState;
import com.azure.resourcemanager.recoveryservicesbackup.models.VaultSubResourceType;
import java.util.Arrays;

/** Samples for PrivateEndpointConnection Put. */
public final class PrivateEndpointConnectionPutSamples {
Expand Down Expand Up @@ -41,6 +43,7 @@ public static void updatePrivateEndpointConnection(
new PrivateEndpoint()
.withId(
"/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/gaallaRG/providers/Microsoft.Network/privateEndpoints/gaallatestpe3"))
.withGroupIds(Arrays.asList(VaultSubResourceType.AZURE_BACKUP_SECONDARY))
.withPrivateLinkServiceConnectionState(
new PrivateLinkServiceConnectionState()
.withStatus(PrivateEndpointConnectionStatus.APPROVED)
Expand Down

This file was deleted.

Loading