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
3 changes: 2 additions & 1 deletion sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Release History

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

- 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).

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

Expand Down
4 changes: 2 additions & 2 deletions sdk/netapp/azure-resourcemanager-netapp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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-11-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 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).

## 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-netapp</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
2 changes: 1 addition & 1 deletion sdk/netapp/azure-resourcemanager-netapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for NetAppFiles Management</name>
<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>
<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>
<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 @@ -32,6 +32,7 @@
import com.azure.resourcemanager.netapp.implementation.SnapshotPoliciesImpl;
import com.azure.resourcemanager.netapp.implementation.SnapshotsImpl;
import com.azure.resourcemanager.netapp.implementation.VaultsImpl;
import com.azure.resourcemanager.netapp.implementation.VolumeBackupStatusImpl;
import com.azure.resourcemanager.netapp.implementation.VolumesImpl;
import com.azure.resourcemanager.netapp.models.AccountBackups;
import com.azure.resourcemanager.netapp.models.Accounts;
Expand All @@ -43,6 +44,7 @@
import com.azure.resourcemanager.netapp.models.SnapshotPolicies;
import com.azure.resourcemanager.netapp.models.Snapshots;
import com.azure.resourcemanager.netapp.models.Vaults;
import com.azure.resourcemanager.netapp.models.VolumeBackupStatus;
import com.azure.resourcemanager.netapp.models.Volumes;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
Expand All @@ -66,6 +68,8 @@ public final class NetAppFilesManager {

private SnapshotPolicies snapshotPolicies;

private VolumeBackupStatus volumeBackupStatus;

private AccountBackups accountBackups;

private Backups backups;
Expand Down Expand Up @@ -292,6 +296,14 @@ public SnapshotPolicies snapshotPolicies() {
return snapshotPolicies;
}

/** @return Resource collection API of VolumeBackupStatus. */
public VolumeBackupStatus volumeBackupStatus() {
if (this.volumeBackupStatus == null) {
this.volumeBackupStatus = new VolumeBackupStatusImpl(clientObject.getVolumeBackupStatus(), this);
}
return volumeBackupStatus;
}

/** @return Resource collection API of AccountBackups. */
public AccountBackups accountBackups() {
if (this.accountBackups == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ public interface NetAppManagementClient {
*/
SnapshotPoliciesClient getSnapshotPolicies();

/**
* Gets the VolumeBackupStatusClient object to access its operations.
*
* @return the VolumeBackupStatusClient object.
*/
VolumeBackupStatusClient getVolumeBackupStatus();

/**
* Gets the AccountBackupsClient object to access its operations.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.netapp.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.netapp.fluent.models.BackupStatusInner;

/** An instance of this class provides access to all the operations defined in VolumeBackupStatusClient. */
public interface VolumeBackupStatusClient {
/**
* Get the status of the backup for a volume.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
* @param poolName The name of the capacity pool.
* @param volumeName The name of the volume.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the status of the backup for a volume.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BackupStatusInner get(String resourceGroupName, String accountName, String poolName, String volumeName);

/**
* Get the status of the backup for a volume.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
* @param poolName The name of the capacity pool.
* @param volumeName The name of the volume.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the status of the backup for a volume.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<BackupStatusInner> getWithResponse(
String resourceGroupName, String accountName, String poolName, String volumeName, Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ public class BackupInner extends ProxyResource {
@JsonProperty(value = "properties.failureReason", access = JsonProperty.Access.WRITE_ONLY)
private String failureReason;

/*
* Volume name
*/
@JsonProperty(value = "properties.volumeName", access = JsonProperty.Access.WRITE_ONLY)
private String volumeName;

/**
* Get the location property: Resource location.
*
Expand Down Expand Up @@ -160,6 +166,15 @@ public String failureReason() {
return this.failureReason;
}

/**
* Get the volumeName property: Volume name.
*
* @return the volumeName value.
*/
public String volumeName() {
return this.volumeName;
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.netapp.fluent.models;

import com.azure.core.annotation.Immutable;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.MirrorState;
import com.azure.resourcemanager.netapp.models.RelationshipStatus;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Backup status. */
@Immutable
public final class BackupStatusInner {
@JsonIgnore private final ClientLogger logger = new ClientLogger(BackupStatusInner.class);

/*
* Backup health status
*/
@JsonProperty(value = "healthy", access = JsonProperty.Access.WRITE_ONLY)
private Boolean healthy;

/*
* Status of the backup mirror relationship
*/
@JsonProperty(value = "relationshipStatus", access = JsonProperty.Access.WRITE_ONLY)
private RelationshipStatus relationshipStatus;

/*
* The status of the backup
*/
@JsonProperty(value = "mirrorState", access = JsonProperty.Access.WRITE_ONLY)
private MirrorState mirrorState;

/*
* Reason for the unhealthy backup relationship
*/
@JsonProperty(value = "unhealthyReason", access = JsonProperty.Access.WRITE_ONLY)
private String unhealthyReason;

/*
* Displays error message if the backup is in an error state
*/
@JsonProperty(value = "errorMessage", access = JsonProperty.Access.WRITE_ONLY)
private String errorMessage;

/**
* Get the healthy property: Backup health status.
*
* @return the healthy value.
*/
public Boolean healthy() {
return this.healthy;
}

/**
* Get the relationshipStatus property: Status of the backup mirror relationship.
*
* @return the relationshipStatus value.
*/
public RelationshipStatus relationshipStatus() {
return this.relationshipStatus;
}

/**
* Get the mirrorState property: The status of the backup.
*
* @return the mirrorState value.
*/
public MirrorState mirrorState() {
return this.mirrorState;
}

/**
* Get the unhealthyReason property: Reason for the unhealthy backup relationship.
*
* @return the unhealthyReason value.
*/
public String unhealthyReason() {
return this.unhealthyReason;
}

/**
* Get the errorMessage property: Displays error message if the backup is in an error state.
*
* @return the errorMessage value.
*/
public String errorMessage() {
return this.errorMessage;
}

/**
* 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 @@ -167,6 +167,12 @@ public class VolumeInner extends Resource {
@JsonProperty(value = "properties.encryptionKeySource")
private String encryptionKeySource;

/*
* Specifies whether LDAP is enabled or not for a given NFS volume.
*/
@JsonProperty(value = "properties.ldapEnabled")
private Boolean ldapEnabled;

/**
* Get the fileSystemId property: Unique FileSystem Identifier.
*
Expand Down Expand Up @@ -579,6 +585,26 @@ public VolumeInner withEncryptionKeySource(String encryptionKeySource) {
return this;
}

/**
* Get the ldapEnabled property: Specifies whether LDAP is enabled or not for a given NFS volume.
*
* @return the ldapEnabled value.
*/
public Boolean ldapEnabled() {
return this.ldapEnabled;
}

/**
* Set the ldapEnabled property: Specifies whether LDAP is enabled or not for a given NFS volume.
*
* @param ldapEnabled the ldapEnabled value to set.
* @return the VolumeInner object itself.
*/
public VolumeInner withLdapEnabled(Boolean ldapEnabled) {
this.ldapEnabled = ldapEnabled;
return this;
}

/** {@inheritDoc} */
@Override
public VolumeInner withLocation(String location) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ public String failureReason() {
return this.innerModel().failureReason();
}

public String volumeName() {
return this.innerModel().volumeName();
}

public Region region() {
return Region.fromName(this.regionName());
}
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.netapp.implementation;

import com.azure.resourcemanager.netapp.NetAppFilesManager;
import com.azure.resourcemanager.netapp.fluent.models.BackupStatusInner;
import com.azure.resourcemanager.netapp.models.BackupStatus;
import com.azure.resourcemanager.netapp.models.MirrorState;
import com.azure.resourcemanager.netapp.models.RelationshipStatus;

public final class BackupStatusImpl implements BackupStatus {
private BackupStatusInner innerObject;

private final NetAppFilesManager serviceManager;

BackupStatusImpl(BackupStatusInner innerObject, NetAppFilesManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}

public Boolean healthy() {
return this.innerModel().healthy();
}

public RelationshipStatus relationshipStatus() {
return this.innerModel().relationshipStatus();
}

public MirrorState mirrorState() {
return this.innerModel().mirrorState();
}

public String unhealthyReason() {
return this.innerModel().unhealthyReason();
}

public String errorMessage() {
return this.innerModel().errorMessage();
}

public BackupStatusInner innerModel() {
return this.innerObject;
}

private NetAppFilesManager manager() {
return this.serviceManager;
}
}
Loading