Skip to content

Commit f3b9629

Browse files
author
SDKAuto
committed
CodeGen from PR 23600 in Azure/azure-rest-api-specs
Merge 1dfa2a6c4be1fb61693cf01242b582137766bfed into 7e295a19c5382a4df2f8101e545fed34186d83bf
1 parent f2d1c1b commit f3b9629

File tree

292 files changed

+116
-17949
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

292 files changed

+116
-17949
lines changed

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.2.0-beta.1 (Unreleased)
3+
## 1.0.0-beta.1 (2023-04-19)
4+
5+
- 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).
46

57
### Features Added
68

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-recoveryservicesbackup</artifactId>
35-
<version>1.1.0</version>
35+
<version>1.2.0-beta.1</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/SAMPLE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,6 +1384,8 @@ import com.azure.resourcemanager.recoveryservicesbackup.models.PrivateEndpointCo
13841384
import com.azure.resourcemanager.recoveryservicesbackup.models.PrivateEndpointConnectionStatus;
13851385
import com.azure.resourcemanager.recoveryservicesbackup.models.PrivateLinkServiceConnectionState;
13861386
import com.azure.resourcemanager.recoveryservicesbackup.models.ProvisioningState;
1387+
import com.azure.resourcemanager.recoveryservicesbackup.models.VaultSubResourceType;
1388+
import java.util.Arrays;
13871389

13881390
/** Samples for PrivateEndpointConnection Put. */
13891391
public final class PrivateEndpointConnectionPutSamples {
@@ -1415,6 +1417,7 @@ public final class PrivateEndpointConnectionPutSamples {
14151417
new PrivateEndpoint()
14161418
.withId(
14171419
"/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/gaallaRG/providers/Microsoft.Network/privateEndpoints/gaallatestpe3"))
1420+
.withGroupIds(Arrays.asList(VaultSubResourceType.AZURE_BACKUP_SECONDARY))
14181421
.withPrivateLinkServiceConnectionState(
14191422
new PrivateLinkServiceConnectionState()
14201423
.withStatus(PrivateEndpointConnectionStatus.APPROVED)

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/RecoveryServicesBackupManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ public RecoveryServicesBackupManager authenticate(TokenCredential credential, Az
401401
.append("-")
402402
.append("com.azure.resourcemanager.recoveryservicesbackup")
403403
.append("/")
404-
.append("1.1.0");
404+
.append("1.0.0-beta.1");
405405
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
406406
userAgentBuilder
407407
.append(" (")

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadProtectableItem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
@JsonSubTypes.Type(name = "SAPHanaDatabase", value = AzureVmWorkloadSapHanaDatabaseProtectableItem.class),
2323
@JsonSubTypes.Type(name = "SAPHanaSystem", value = AzureVmWorkloadSapHanaSystemProtectableItem.class),
2424
@JsonSubTypes.Type(name = "SAPHanaDBInstance", value = AzureVmWorkloadSapHanaDBInstance.class),
25-
@JsonSubTypes.Type(name = "SAPHanaHSR", value = AzureVmWorkloadSapHanaHsr.class),
25+
@JsonSubTypes.Type(name = "HanaHSRContainer", value = AzureVmWorkloadSapHanaHsrProtectableItem.class),
2626
@JsonSubTypes.Type(
2727
name = "SQLAvailabilityGroupContainer",
2828
value = AzureVmWorkloadSqlAvailabilityGroupProtectableItem.class),
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,95 +8,95 @@
88
import com.fasterxml.jackson.annotation.JsonTypeInfo;
99
import com.fasterxml.jackson.annotation.JsonTypeName;
1010

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

2020
/** {@inheritDoc} */
2121
@Override
22-
public AzureVmWorkloadSapHanaHsr withParentName(String parentName) {
22+
public AzureVmWorkloadSapHanaHsrProtectableItem withParentName(String parentName) {
2323
super.withParentName(parentName);
2424
return this;
2525
}
2626

2727
/** {@inheritDoc} */
2828
@Override
29-
public AzureVmWorkloadSapHanaHsr withParentUniqueName(String parentUniqueName) {
29+
public AzureVmWorkloadSapHanaHsrProtectableItem withParentUniqueName(String parentUniqueName) {
3030
super.withParentUniqueName(parentUniqueName);
3131
return this;
3232
}
3333

3434
/** {@inheritDoc} */
3535
@Override
36-
public AzureVmWorkloadSapHanaHsr withServerName(String serverName) {
36+
public AzureVmWorkloadSapHanaHsrProtectableItem withServerName(String serverName) {
3737
super.withServerName(serverName);
3838
return this;
3939
}
4040

4141
/** {@inheritDoc} */
4242
@Override
43-
public AzureVmWorkloadSapHanaHsr withIsAutoProtectable(Boolean isAutoProtectable) {
43+
public AzureVmWorkloadSapHanaHsrProtectableItem withIsAutoProtectable(Boolean isAutoProtectable) {
4444
super.withIsAutoProtectable(isAutoProtectable);
4545
return this;
4646
}
4747

4848
/** {@inheritDoc} */
4949
@Override
50-
public AzureVmWorkloadSapHanaHsr withIsAutoProtected(Boolean isAutoProtected) {
50+
public AzureVmWorkloadSapHanaHsrProtectableItem withIsAutoProtected(Boolean isAutoProtected) {
5151
super.withIsAutoProtected(isAutoProtected);
5252
return this;
5353
}
5454

5555
/** {@inheritDoc} */
5656
@Override
57-
public AzureVmWorkloadSapHanaHsr withSubinquireditemcount(Integer subinquireditemcount) {
57+
public AzureVmWorkloadSapHanaHsrProtectableItem withSubinquireditemcount(Integer subinquireditemcount) {
5858
super.withSubinquireditemcount(subinquireditemcount);
5959
return this;
6060
}
6161

6262
/** {@inheritDoc} */
6363
@Override
64-
public AzureVmWorkloadSapHanaHsr withSubprotectableitemcount(Integer subprotectableitemcount) {
64+
public AzureVmWorkloadSapHanaHsrProtectableItem withSubprotectableitemcount(Integer subprotectableitemcount) {
6565
super.withSubprotectableitemcount(subprotectableitemcount);
6666
return this;
6767
}
6868

6969
/** {@inheritDoc} */
7070
@Override
71-
public AzureVmWorkloadSapHanaHsr withPrebackupvalidation(PreBackupValidation prebackupvalidation) {
71+
public AzureVmWorkloadSapHanaHsrProtectableItem withPrebackupvalidation(PreBackupValidation prebackupvalidation) {
7272
super.withPrebackupvalidation(prebackupvalidation);
7373
return this;
7474
}
7575

7676
/** {@inheritDoc} */
7777
@Override
78-
public AzureVmWorkloadSapHanaHsr withBackupManagementType(String backupManagementType) {
78+
public AzureVmWorkloadSapHanaHsrProtectableItem withBackupManagementType(String backupManagementType) {
7979
super.withBackupManagementType(backupManagementType);
8080
return this;
8181
}
8282

8383
/** {@inheritDoc} */
8484
@Override
85-
public AzureVmWorkloadSapHanaHsr withWorkloadType(String workloadType) {
85+
public AzureVmWorkloadSapHanaHsrProtectableItem withWorkloadType(String workloadType) {
8686
super.withWorkloadType(workloadType);
8787
return this;
8888
}
8989

9090
/** {@inheritDoc} */
9191
@Override
92-
public AzureVmWorkloadSapHanaHsr withFriendlyName(String friendlyName) {
92+
public AzureVmWorkloadSapHanaHsrProtectableItem withFriendlyName(String friendlyName) {
9393
super.withFriendlyName(friendlyName);
9494
return this;
9595
}
9696

9797
/** {@inheritDoc} */
9898
@Override
99-
public AzureVmWorkloadSapHanaHsr withProtectionState(ProtectionStatus protectionState) {
99+
public AzureVmWorkloadSapHanaHsrProtectableItem withProtectionState(ProtectionStatus protectionState) {
100100
super.withProtectionState(protectionState);
101101
return this;
102102
}

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PrivateEndpointConnection.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import com.azure.core.annotation.Fluent;
88
import com.fasterxml.jackson.annotation.JsonProperty;
9+
import java.util.List;
910

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

26+
/*
27+
* Group Ids for the Private Endpoint
28+
*/
29+
@JsonProperty(value = "groupIds")
30+
private List<VaultSubResourceType> groupIds;
31+
2532
/*
2633
* Gets or sets private link service connection state
2734
*/
@@ -72,6 +79,26 @@ public PrivateEndpointConnection withPrivateEndpoint(PrivateEndpoint privateEndp
7279
return this;
7380
}
7481

82+
/**
83+
* Get the groupIds property: Group Ids for the Private Endpoint.
84+
*
85+
* @return the groupIds value.
86+
*/
87+
public List<VaultSubResourceType> groupIds() {
88+
return this.groupIds;
89+
}
90+
91+
/**
92+
* Set the groupIds property: Group Ids for the Private Endpoint.
93+
*
94+
* @param groupIds the groupIds value to set.
95+
* @return the PrivateEndpointConnection object itself.
96+
*/
97+
public PrivateEndpointConnection withGroupIds(List<VaultSubResourceType> groupIds) {
98+
this.groupIds = groupIds;
99+
return this;
100+
}
101+
75102
/**
76103
* Get the privateLinkServiceConnectionState property: Gets or sets private link service connection state.
77104
*

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PrivateLinkServiceConnectionState.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public final class PrivateLinkServiceConnectionState {
2525
/*
2626
* Gets or sets actions required
2727
*/
28-
@JsonProperty(value = "actionRequired")
29-
private String actionRequired;
28+
@JsonProperty(value = "actionsRequired")
29+
private String actionsRequired;
3030

3131
/** Creates an instance of PrivateLinkServiceConnectionState class. */
3232
public PrivateLinkServiceConnectionState() {
@@ -73,22 +73,22 @@ public PrivateLinkServiceConnectionState withDescription(String description) {
7373
}
7474

7575
/**
76-
* Get the actionRequired property: Gets or sets actions required.
76+
* Get the actionsRequired property: Gets or sets actions required.
7777
*
78-
* @return the actionRequired value.
78+
* @return the actionsRequired value.
7979
*/
80-
public String actionRequired() {
81-
return this.actionRequired;
80+
public String actionsRequired() {
81+
return this.actionsRequired;
8282
}
8383

8484
/**
85-
* Set the actionRequired property: Gets or sets actions required.
85+
* Set the actionsRequired property: Gets or sets actions required.
8686
*
87-
* @param actionRequired the actionRequired value to set.
87+
* @param actionsRequired the actionsRequired value to set.
8888
* @return the PrivateLinkServiceConnectionState object itself.
8989
*/
90-
public PrivateLinkServiceConnectionState withActionRequired(String actionRequired) {
91-
this.actionRequired = actionRequired;
90+
public PrivateLinkServiceConnectionState withActionsRequired(String actionsRequired) {
91+
this.actionsRequired = actionsRequired;
9292
return this;
9393
}
9494

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.resourcemanager.recoveryservicesbackup.models;
6+
7+
import com.azure.core.util.ExpandableStringEnum;
8+
import com.fasterxml.jackson.annotation.JsonCreator;
9+
import java.util.Collection;
10+
11+
/** GroupId for the PrivateEndpointConnection - AzureBackup, AzureBackup_secondary or AzureSiteRecovery. */
12+
public final class VaultSubResourceType extends ExpandableStringEnum<VaultSubResourceType> {
13+
/** Static value AzureBackup for VaultSubResourceType. */
14+
public static final VaultSubResourceType AZURE_BACKUP = fromString("AzureBackup");
15+
16+
/** Static value AzureBackup_secondary for VaultSubResourceType. */
17+
public static final VaultSubResourceType AZURE_BACKUP_SECONDARY = fromString("AzureBackup_secondary");
18+
19+
/** Static value AzureSiteRecovery for VaultSubResourceType. */
20+
public static final VaultSubResourceType AZURE_SITE_RECOVERY = fromString("AzureSiteRecovery");
21+
22+
/**
23+
* Creates a new instance of VaultSubResourceType value.
24+
*
25+
* @deprecated Use the {@link #fromString(String)} factory method.
26+
*/
27+
@Deprecated
28+
public VaultSubResourceType() {
29+
}
30+
31+
/**
32+
* Creates or finds a VaultSubResourceType from its string representation.
33+
*
34+
* @param name a name to look for.
35+
* @return the corresponding VaultSubResourceType.
36+
*/
37+
@JsonCreator
38+
public static VaultSubResourceType fromString(String name) {
39+
return fromString(name, VaultSubResourceType.class);
40+
}
41+
42+
/**
43+
* Gets known VaultSubResourceType values.
44+
*
45+
* @return known VaultSubResourceType values.
46+
*/
47+
public static Collection<VaultSubResourceType> values() {
48+
return values(VaultSubResourceType.class);
49+
}
50+
}

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionPutSamples.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
import com.azure.resourcemanager.recoveryservicesbackup.models.PrivateEndpointConnectionStatus;
1111
import com.azure.resourcemanager.recoveryservicesbackup.models.PrivateLinkServiceConnectionState;
1212
import com.azure.resourcemanager.recoveryservicesbackup.models.ProvisioningState;
13+
import com.azure.resourcemanager.recoveryservicesbackup.models.VaultSubResourceType;
14+
import java.util.Arrays;
1315

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

0 commit comments

Comments
 (0)