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.3 (Unreleased)
## 1.0.0-beta.1 (2021-05-10)

- 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-2021-02-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.2 (2021-03-15)

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-12-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-2021-02-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.2</version>
<version>1.0.0-beta.3</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. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2020-12-01.</description>
<description>This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2021-02-01.</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,7 +32,6 @@
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 @@ -44,7 +43,6 @@
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 @@ -68,12 +66,10 @@ public final class NetAppFilesManager {

private SnapshotPolicies snapshotPolicies;

private VolumeBackupStatus volumeBackupStatus;
private Backups backups;

private AccountBackups accountBackups;

private Backups backups;

private BackupPolicies backupPolicies;

private Vaults vaults;
Expand Down Expand Up @@ -202,7 +198,7 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.netapp")
.append("/")
.append("1.0.0-beta.2");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand All @@ -229,6 +225,7 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile
.add(
new BearerTokenAuthenticationPolicy(
credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
policies.addAll(this.policies);
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
Expand Down Expand Up @@ -296,12 +293,12 @@ 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 Resource collection API of Backups. */
public Backups backups() {
if (this.backups == null) {
this.backups = new BackupsImpl(clientObject.getBackups(), this);
}
return volumeBackupStatus;
return backups;
}

/** @return Resource collection API of AccountBackups. */
Expand All @@ -312,14 +309,6 @@ public AccountBackups accountBackups() {
return accountBackups;
}

/** @return Resource collection API of Backups. */
public Backups backups() {
if (this.backups == null) {
this.backups = new BackupsImpl(clientObject.getBackups(), this);
}
return backups;
}

/** @return Resource collection API of BackupPolicies. */
public BackupPolicies backupPolicies() {
if (this.backupPolicies == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.netapp.fluent.models.BackupInner;
import com.azure.resourcemanager.netapp.fluent.models.BackupsListInner;

/** An instance of this class provides access to all the operations defined in AccountBackupsClient. */
public interface AccountBackupsClient {
Expand All @@ -25,8 +25,8 @@ public interface AccountBackupsClient {
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of Backups.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BackupsListInner list(String resourceGroupName, String accountName);
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<BackupInner> list(String resourceGroupName, String accountName);

/**
* List all Backups for a Netapp Account.
Expand All @@ -39,25 +39,25 @@ public interface AccountBackupsClient {
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of Backups.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<BackupsListInner> listWithResponse(String resourceGroupName, String accountName, Context context);
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<BackupInner> list(String resourceGroupName, String accountName, Context context);

/**
* Get Backup for a Netapp Account.
* Gets the specified backup for a Netapp Account.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
* @param backupName The name of the backup.
* @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 backup for a Netapp Account.
* @return the specified backup for a Netapp Account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BackupInner get(String resourceGroupName, String accountName, String backupName);

/**
* Get Backup for a Netapp Account.
* Gets the specified backup for a Netapp Account.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
Expand All @@ -66,14 +66,14 @@ public interface AccountBackupsClient {
* @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 backup for a Netapp Account.
* @return the specified backup for a Netapp Account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<BackupInner> getWithResponse(
String resourceGroupName, String accountName, String backupName, Context context);

/**
* Delete Backup for a Netapp Account.
* Delete the specified Backup for a Netapp Account.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
Expand All @@ -87,7 +87,7 @@ Response<BackupInner> getWithResponse(
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String accountName, String backupName);

/**
* Delete Backup for a Netapp Account.
* Delete the specified Backup for a Netapp Account.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
Expand All @@ -103,7 +103,7 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String accountName, String backupName, Context context);

/**
* Delete Backup for a Netapp Account.
* Delete the specified Backup for a Netapp Account.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
Expand All @@ -116,7 +116,7 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
void delete(String resourceGroupName, String accountName, String backupName);

/**
* Delete Backup for a Netapp Account.
* Delete the specified Backup for a Netapp Account.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,39 @@ BackupPolicyInner create(
BackupPolicyInner create(
String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body, Context context);

/**
* Patch a backup policy for Netapp Account.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
* @param backupPolicyName Backup policy Name which uniquely identify backup policy.
* @param body Backup policy object supplied in the body of the 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 backup policy information.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller<PollResult<BackupPolicyInner>, BackupPolicyInner> beginUpdate(
String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body);

/**
* Patch a backup policy for Netapp Account.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
* @param backupPolicyName Backup policy Name which uniquely identify backup policy.
* @param body Backup policy object supplied in the body of the operation.
* @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 backup policy information.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller<PollResult<BackupPolicyInner>, BackupPolicyInner> beginUpdate(
String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body, Context context);

/**
* Patch a backup policy for Netapp Account.
*
Expand Down Expand Up @@ -169,7 +202,7 @@ BackupPolicyInner update(
* @return backup policy information.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<BackupPolicyInner> updateWithResponse(
BackupPolicyInner update(
String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body, Context context);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,43 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.netapp.fluent.models.BackupInner;
import com.azure.resourcemanager.netapp.fluent.models.BackupStatusInner;
import com.azure.resourcemanager.netapp.models.BackupPatch;

/** An instance of this class provides access to all the operations defined in BackupsClient. */
public interface BackupsClient {
/**
* 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 getStatus(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> getStatusWithResponse(
String resourceGroupName, String accountName, String poolName, String volumeName, Context context);

/**
* List all backups for a volume.
*
Expand Down Expand Up @@ -49,7 +82,7 @@ PagedIterable<BackupInner> list(
String resourceGroupName, String accountName, String poolName, String volumeName, Context context);

/**
* Get a particular backup of the volume.
* Gets the specified backup of the volume.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
Expand All @@ -59,14 +92,14 @@ PagedIterable<BackupInner> list(
* @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 a particular backup of the volume.
* @return the specified backup of the volume.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BackupInner get(
String resourceGroupName, String accountName, String poolName, String volumeName, String backupName);

/**
* Get a particular backup of the volume.
* Gets the specified backup of the volume.
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
Expand All @@ -77,7 +110,7 @@ BackupInner get(
* @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 a particular backup of the volume.
* @return the specified backup of the volume.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<BackupInner> getWithResponse(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ public interface NetAppManagementClient {
SnapshotPoliciesClient getSnapshotPolicies();

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

/**
* Gets the AccountBackupsClient object to access its operations.
Expand All @@ -108,13 +108,6 @@ public interface NetAppManagementClient {
*/
AccountBackupsClient getAccountBackups();

/**
* Gets the BackupsClient object to access its operations.
*
* @return the BackupsClient object.
*/
BackupsClient getBackups();

/**
* Gets the BackupPoliciesClient object to access its operations.
*
Expand Down
Loading