Skip to content

Commit

Permalink
CodeGen from PR 20993 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 3467e7e099c72e34769f9ec07d6704dff224fcff into c71a66dab813061f1d09982c2748a09317fe0860
  • Loading branch information
SDKAuto committed Oct 13, 2022
1 parent 2dd991e commit eb644a0
Show file tree
Hide file tree
Showing 165 changed files with 1,282 additions and 989 deletions.
4 changes: 3 additions & 1 deletion sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.12 (Unreleased)
## 1.0.0-beta.1 (2022-10-13)

- 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-2022-05-01. 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
2 changes: 1 addition & 1 deletion sdk/netapp/azure-resourcemanager-netapp/README.md
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-netapp</artifactId>
<version>1.0.0-beta.11</version>
<version>1.0.0-beta.12</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
14 changes: 7 additions & 7 deletions sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -1444,13 +1444,13 @@ public final class VolumeGroupsCreateSamples {
.withGroupDescription("Volume group")
.withApplicationType(ApplicationType.SAP_HANA)
.withApplicationIdentifier("DEV")
.withDeploymentSpecId("fb04dbeb-005d-2703-197e-6208dfadb5d9"))
.withDeploymentSpecId("20542149-bfca-5618-1879-9863dc6767f1"))
.withVolumes(
Arrays
.asList(
new VolumeGroupVolumeProperties()
.withName("testVol1")
.withCreationToken("testVol1")
.withName("test-data-mnt00001")
.withCreationToken("test-data-mnt00001")
.withServiceLevel(ServiceLevel.PREMIUM)
.withUsageThreshold(107374182400L)
.withSubnetId(
Expand All @@ -1462,8 +1462,8 @@ public final class VolumeGroupsCreateSamples {
"/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
.withVolumeSpecName("data"),
new VolumeGroupVolumeProperties()
.withName("testVol2")
.withCreationToken("testVol2")
.withName("test-log-mnt00001")
.withCreationToken("test-log-mnt00001")
.withServiceLevel(ServiceLevel.PREMIUM)
.withUsageThreshold(107374182400L)
.withSubnetId(
Expand All @@ -1475,8 +1475,8 @@ public final class VolumeGroupsCreateSamples {
"/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg")
.withVolumeSpecName("log"),
new VolumeGroupVolumeProperties()
.withName("testVol3")
.withCreationToken("testVol3")
.withName("test-shared")
.withCreationToken("test-shared")
.withServiceLevel(ServiceLevel.PREMIUM)
.withUsageThreshold(107374182400L)
.withSubnetId(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.netapp")
.append("/")
.append("1.0.0-beta.11");
.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 @@ -54,13 +54,15 @@ public interface AccountBackupsClient {
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
* @param backupName The name of the backup.
* @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 specified backup for a Netapp Account.
* @return the specified backup for a Netapp Account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BackupInner get(String resourceGroupName, String accountName, String backupName);
Response<BackupInner> getWithResponse(
String resourceGroupName, String accountName, String backupName, Context context);

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

/**
* Delete Backup for a Netapp Account
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,15 @@ public interface AccountsClient {
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
* @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 NetApp account.
* @return the NetApp account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NetAppAccountInner getByResourceGroup(String resourceGroupName, String accountName);
Response<NetAppAccountInner> getByResourceGroupWithResponse(
String resourceGroupName, String accountName, Context context);

/**
* Describe a NetApp Account
Expand All @@ -93,15 +95,13 @@ public interface AccountsClient {
*
* @param resourceGroupName The name of the resource group.
* @param accountName The name of the NetApp account.
* @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 NetApp account along with {@link Response}.
* @return the NetApp account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<NetAppAccountInner> getByResourceGroupWithResponse(
String resourceGroupName, String accountName, Context context);
NetAppAccountInner getByResourceGroup(String resourceGroupName, String accountName);

/**
* Create or update a NetApp account
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,15 @@ public interface BackupPoliciesClient {
* @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 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 a particular backup Policy.
* @return a particular backup Policy along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BackupPolicyInner get(String resourceGroupName, String accountName, String backupPolicyName);
Response<BackupPolicyInner> getWithResponse(
String resourceGroupName, String accountName, String backupPolicyName, Context context);

/**
* Get a backup Policy
Expand All @@ -71,15 +73,13 @@ public interface BackupPoliciesClient {
* @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 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 a particular backup Policy along with {@link Response}.
* @return a particular backup Policy.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<BackupPolicyInner> getWithResponse(
String resourceGroupName, String accountName, String backupPolicyName, Context context);
BackupPolicyInner get(String resourceGroupName, String accountName, String backupPolicyName);

/**
* Create a backup policy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ public interface BackupsClient {
* @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.
* @return the status of the backup for a volume along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BackupStatusInner getStatus(String resourceGroupName, String accountName, String poolName, String volumeName);
Response<BackupStatusInner> getStatusWithResponse(
String resourceGroupName, String accountName, String poolName, String volumeName, Context context);

/**
* Get volume's backup status
Expand All @@ -44,15 +46,13 @@ public interface BackupsClient {
* @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 along with {@link Response}.
* @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);
BackupStatusInner getStatus(String resourceGroupName, String accountName, String poolName, String volumeName);

/**
* Get volume's restore status
Expand All @@ -63,14 +63,15 @@ Response<BackupStatusInner> getStatusWithResponse(
* @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 restore for a volume.
* @return the status of the restore for a volume along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
RestoreStatusInner getVolumeRestoreStatus(
String resourceGroupName, String accountName, String poolName, String volumeName);
Response<RestoreStatusInner> getVolumeRestoreStatusWithResponse(
String resourceGroupName, String accountName, String poolName, String volumeName, Context context);

/**
* Get volume's restore status
Expand All @@ -81,15 +82,14 @@ RestoreStatusInner getVolumeRestoreStatus(
* @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 restore for a volume along with {@link Response}.
* @return the status of the restore for a volume.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<RestoreStatusInner> getVolumeRestoreStatusWithResponse(
String resourceGroupName, String accountName, String poolName, String volumeName, Context context);
RestoreStatusInner getVolumeRestoreStatus(
String resourceGroupName, String accountName, String poolName, String volumeName);

/**
* List Backups
Expand Down Expand Up @@ -137,14 +137,20 @@ PagedIterable<BackupInner> list(
* @param poolName The name of the capacity pool.
* @param volumeName The name of the volume.
* @param backupName The name of the backup.
* @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 specified backup of the volume.
* @return the specified backup of the volume along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BackupInner get(
String resourceGroupName, String accountName, String poolName, String volumeName, String backupName);
Response<BackupInner> getWithResponse(
String resourceGroupName,
String accountName,
String poolName,
String volumeName,
String backupName,
Context context);

/**
* Get a backup
Expand All @@ -156,20 +162,14 @@ BackupInner get(
* @param poolName The name of the capacity pool.
* @param volumeName The name of the volume.
* @param backupName The name of the backup.
* @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 specified backup of the volume along with {@link Response}.
* @return the specified backup of the volume.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<BackupInner> getWithResponse(
String resourceGroupName,
String accountName,
String poolName,
String volumeName,
String backupName,
Context context);
BackupInner get(
String resourceGroupName, String accountName, String poolName, String volumeName, String backupName);

/**
* Create a backup
Expand Down Expand Up @@ -285,20 +285,14 @@ BackupInner create(
* @param poolName The name of the capacity pool.
* @param volumeName The name of the volume.
* @param backupName The name of the backup.
* @param body Backup 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 the {@link SyncPoller} for polling of backup of a Volume.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<BackupInner>, BackupInner> beginUpdate(
String resourceGroupName,
String accountName,
String poolName,
String volumeName,
String backupName,
BackupPatch body);
String resourceGroupName, String accountName, String poolName, String volumeName, String backupName);

/**
* Patch a backup
Expand Down Expand Up @@ -327,31 +321,6 @@ SyncPoller<PollResult<BackupInner>, BackupInner> beginUpdate(
BackupPatch body,
Context context);

/**
* Patch a backup
*
* <p>Patch a backup for the 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 backupName The name of the backup.
* @param body Backup 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 of a Volume.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BackupInner update(
String resourceGroupName,
String accountName,
String poolName,
String volumeName,
String backupName,
BackupPatch body);

/**
* Patch a backup
*
Expand Down
Loading

0 comments on commit eb644a0

Please sign in to comment.