Skip to content

Commit e37ffdc

Browse files
author
SDKAuto
committed
CodeGen from PR 13061 in Azure/azure-rest-api-specs
Merge 80c62687650e204206cafdc7ee5ed23a72aef93f into 04d3607db5a71d02e90cd60b6c353ca740c8ed75
1 parent 6af12fd commit e37ffdc

24 files changed

+767
-55
lines changed

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

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

3-
## 1.0.0-beta.2 (Unreleased)
3+
## 1.0.0-beta.1 (2021-03-04)
44

5+
- Azure Resource Manager NetAppFiles client library for Java. This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2020-12-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
56

67
## 1.0.0-beta.1 (2021-02-22)
78

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager NetAppFiles client library for Java.
44

5-
This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2020-11-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
5+
This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2020-12-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

77
## We'd love to hear your feedback
88

@@ -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-netapp</artifactId>
35-
<version>1.0.0-beta.1</version>
35+
<version>1.0.0-beta.2</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/netapp/azure-resourcemanager-netapp/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<packaging>jar</packaging>
1414

1515
<name>Microsoft Azure SDK for NetAppFiles Management</name>
16-
<description>This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2020-11-01. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt</description>
16+
<description>This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2020-12-01. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt</description>
1717
<url>https://github.com/Azure/azure-sdk-for-java</url>
1818

1919
<licenses>

sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import com.azure.resourcemanager.netapp.implementation.SnapshotPoliciesImpl;
3333
import com.azure.resourcemanager.netapp.implementation.SnapshotsImpl;
3434
import com.azure.resourcemanager.netapp.implementation.VaultsImpl;
35+
import com.azure.resourcemanager.netapp.implementation.VolumeBackupStatusImpl;
3536
import com.azure.resourcemanager.netapp.implementation.VolumesImpl;
3637
import com.azure.resourcemanager.netapp.models.AccountBackups;
3738
import com.azure.resourcemanager.netapp.models.Accounts;
@@ -43,6 +44,7 @@
4344
import com.azure.resourcemanager.netapp.models.SnapshotPolicies;
4445
import com.azure.resourcemanager.netapp.models.Snapshots;
4546
import com.azure.resourcemanager.netapp.models.Vaults;
47+
import com.azure.resourcemanager.netapp.models.VolumeBackupStatus;
4648
import com.azure.resourcemanager.netapp.models.Volumes;
4749
import java.time.Duration;
4850
import java.time.temporal.ChronoUnit;
@@ -66,6 +68,8 @@ public final class NetAppFilesManager {
6668

6769
private SnapshotPolicies snapshotPolicies;
6870

71+
private VolumeBackupStatus volumeBackupStatus;
72+
6973
private AccountBackups accountBackups;
7074

7175
private Backups backups;
@@ -292,6 +296,14 @@ public SnapshotPolicies snapshotPolicies() {
292296
return snapshotPolicies;
293297
}
294298

299+
/** @return Resource collection API of VolumeBackupStatus. */
300+
public VolumeBackupStatus volumeBackupStatus() {
301+
if (this.volumeBackupStatus == null) {
302+
this.volumeBackupStatus = new VolumeBackupStatusImpl(clientObject.getVolumeBackupStatus(), this);
303+
}
304+
return volumeBackupStatus;
305+
}
306+
295307
/** @return Resource collection API of AccountBackups. */
296308
public AccountBackups accountBackups() {
297309
if (this.accountBackups == null) {

sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,13 @@ public interface NetAppManagementClient {
9494
*/
9595
SnapshotPoliciesClient getSnapshotPolicies();
9696

97+
/**
98+
* Gets the VolumeBackupStatusClient object to access its operations.
99+
*
100+
* @return the VolumeBackupStatusClient object.
101+
*/
102+
VolumeBackupStatusClient getVolumeBackupStatus();
103+
97104
/**
98105
* Gets the AccountBackupsClient object to access its operations.
99106
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.netapp.fluent;
6+
7+
import com.azure.core.annotation.ReturnType;
8+
import com.azure.core.annotation.ServiceMethod;
9+
import com.azure.core.http.rest.Response;
10+
import com.azure.core.util.Context;
11+
import com.azure.resourcemanager.netapp.fluent.models.BackupStatusInner;
12+
13+
/** An instance of this class provides access to all the operations defined in VolumeBackupStatusClient. */
14+
public interface VolumeBackupStatusClient {
15+
/**
16+
* Get the status of the backup for a volume.
17+
*
18+
* @param resourceGroupName The name of the resource group.
19+
* @param accountName The name of the NetApp account.
20+
* @param poolName The name of the capacity pool.
21+
* @param volumeName The name of the volume.
22+
* @throws IllegalArgumentException thrown if parameters fail the validation.
23+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
24+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
25+
* @return the status of the backup for a volume.
26+
*/
27+
@ServiceMethod(returns = ReturnType.SINGLE)
28+
BackupStatusInner get(String resourceGroupName, String accountName, String poolName, String volumeName);
29+
30+
/**
31+
* Get the status of the backup for a volume.
32+
*
33+
* @param resourceGroupName The name of the resource group.
34+
* @param accountName The name of the NetApp account.
35+
* @param poolName The name of the capacity pool.
36+
* @param volumeName The name of the volume.
37+
* @param context The context to associate with this operation.
38+
* @throws IllegalArgumentException thrown if parameters fail the validation.
39+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
40+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
41+
* @return the status of the backup for a volume.
42+
*/
43+
@ServiceMethod(returns = ReturnType.SINGLE)
44+
Response<BackupStatusInner> getWithResponse(
45+
String resourceGroupName, String accountName, String poolName, String volumeName, Context context);
46+
}

sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ public class BackupInner extends ProxyResource {
6666
@JsonProperty(value = "properties.failureReason", access = JsonProperty.Access.WRITE_ONLY)
6767
private String failureReason;
6868

69+
/*
70+
* Volume name
71+
*/
72+
@JsonProperty(value = "properties.volumeName", access = JsonProperty.Access.WRITE_ONLY)
73+
private String volumeName;
74+
6975
/**
7076
* Get the location property: Resource location.
7177
*
@@ -160,6 +166,15 @@ public String failureReason() {
160166
return this.failureReason;
161167
}
162168

169+
/**
170+
* Get the volumeName property: Volume name.
171+
*
172+
* @return the volumeName value.
173+
*/
174+
public String volumeName() {
175+
return this.volumeName;
176+
}
177+
163178
/**
164179
* Validates the instance.
165180
*
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
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.netapp.fluent.models;
6+
7+
import com.azure.core.annotation.Immutable;
8+
import com.azure.core.util.logging.ClientLogger;
9+
import com.azure.resourcemanager.netapp.models.MirrorState;
10+
import com.azure.resourcemanager.netapp.models.RelationshipStatus;
11+
import com.fasterxml.jackson.annotation.JsonIgnore;
12+
import com.fasterxml.jackson.annotation.JsonProperty;
13+
14+
/** Backup status. */
15+
@Immutable
16+
public final class BackupStatusInner {
17+
@JsonIgnore private final ClientLogger logger = new ClientLogger(BackupStatusInner.class);
18+
19+
/*
20+
* Backup health status
21+
*/
22+
@JsonProperty(value = "healthy", access = JsonProperty.Access.WRITE_ONLY)
23+
private Boolean healthy;
24+
25+
/*
26+
* Status of the backup mirror relationship
27+
*/
28+
@JsonProperty(value = "relationshipStatus", access = JsonProperty.Access.WRITE_ONLY)
29+
private RelationshipStatus relationshipStatus;
30+
31+
/*
32+
* The status of the backup
33+
*/
34+
@JsonProperty(value = "mirrorState", access = JsonProperty.Access.WRITE_ONLY)
35+
private MirrorState mirrorState;
36+
37+
/*
38+
* Reason for the unhealthy backup relationship
39+
*/
40+
@JsonProperty(value = "unhealthyReason", access = JsonProperty.Access.WRITE_ONLY)
41+
private String unhealthyReason;
42+
43+
/*
44+
* Displays error message if the backup is in an error state
45+
*/
46+
@JsonProperty(value = "errorMessage", access = JsonProperty.Access.WRITE_ONLY)
47+
private String errorMessage;
48+
49+
/**
50+
* Get the healthy property: Backup health status.
51+
*
52+
* @return the healthy value.
53+
*/
54+
public Boolean healthy() {
55+
return this.healthy;
56+
}
57+
58+
/**
59+
* Get the relationshipStatus property: Status of the backup mirror relationship.
60+
*
61+
* @return the relationshipStatus value.
62+
*/
63+
public RelationshipStatus relationshipStatus() {
64+
return this.relationshipStatus;
65+
}
66+
67+
/**
68+
* Get the mirrorState property: The status of the backup.
69+
*
70+
* @return the mirrorState value.
71+
*/
72+
public MirrorState mirrorState() {
73+
return this.mirrorState;
74+
}
75+
76+
/**
77+
* Get the unhealthyReason property: Reason for the unhealthy backup relationship.
78+
*
79+
* @return the unhealthyReason value.
80+
*/
81+
public String unhealthyReason() {
82+
return this.unhealthyReason;
83+
}
84+
85+
/**
86+
* Get the errorMessage property: Displays error message if the backup is in an error state.
87+
*
88+
* @return the errorMessage value.
89+
*/
90+
public String errorMessage() {
91+
return this.errorMessage;
92+
}
93+
94+
/**
95+
* Validates the instance.
96+
*
97+
* @throws IllegalArgumentException thrown if the instance is not valid.
98+
*/
99+
public void validate() {
100+
}
101+
}

sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,12 @@ public class VolumeInner extends Resource {
167167
@JsonProperty(value = "properties.encryptionKeySource")
168168
private String encryptionKeySource;
169169

170+
/*
171+
* Specifies whether LDAP is enabled or not for a given NFS volume.
172+
*/
173+
@JsonProperty(value = "properties.ldapEnabled")
174+
private Boolean ldapEnabled;
175+
170176
/**
171177
* Get the fileSystemId property: Unique FileSystem Identifier.
172178
*
@@ -579,6 +585,26 @@ public VolumeInner withEncryptionKeySource(String encryptionKeySource) {
579585
return this;
580586
}
581587

588+
/**
589+
* Get the ldapEnabled property: Specifies whether LDAP is enabled or not for a given NFS volume.
590+
*
591+
* @return the ldapEnabled value.
592+
*/
593+
public Boolean ldapEnabled() {
594+
return this.ldapEnabled;
595+
}
596+
597+
/**
598+
* Set the ldapEnabled property: Specifies whether LDAP is enabled or not for a given NFS volume.
599+
*
600+
* @param ldapEnabled the ldapEnabled value to set.
601+
* @return the VolumeInner object itself.
602+
*/
603+
public VolumeInner withLdapEnabled(Boolean ldapEnabled) {
604+
this.ldapEnabled = ldapEnabled;
605+
return this;
606+
}
607+
582608
/** {@inheritDoc} */
583609
@Override
584610
public VolumeInner withLocation(String location) {

sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupImpl.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ public String failureReason() {
6262
return this.innerModel().failureReason();
6363
}
6464

65+
public String volumeName() {
66+
return this.innerModel().volumeName();
67+
}
68+
6569
public Region region() {
6670
return Region.fromName(this.regionName());
6771
}

0 commit comments

Comments
 (0)