Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Automation] Generate Fluent Lite from netapp#package-netapp-2021-08-01 #25819

Merged
Merged
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
63 changes: 59 additions & 4 deletions sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,69 @@
# Release History

## 1.0.0-beta.7 (Unreleased)
## 1.0.0-beta.7 (2021-12-06)

### Features Added
- 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-08-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Breaking Changes

### Bugs Fixed
#### `models.BackupPolicyPatch` was modified

* `namePropertiesName()` was removed

#### `models.BackupPolicy` was modified

* `namePropertiesName()` was removed

#### `models.SubscriptionQuotaItem` was modified

* `namePropertiesName()` was removed

### Features Added

* `models.VolumeGroupDetails$Definition` was added

* `models.PlacementKeyValuePairs` was added

* `models.VolumeGroupMetadata` was added

* `models.VolumeGroupDetails` was added

* `models.VolumeGroupList` was added

* `models.VolumeGroups` was added

* `models.VolumeGroupVolumeProperties` was added

* `models.VolumeGroup` was added

* `models.VolumeGroupDetails$DefinitionStages` was added

* `models.ApplicationType` was added

#### `models.Volume` was modified

* `proximityPlacementGroup()` was added
* `capacityPoolResourceId()` was added
* `placementRules()` was added
* `volumeSpecName()` was added
* `volumeGroupName()` was added
* `t2Network()` was added

#### `models.ActiveDirectory` was modified

* `encryptDCConnections()` was added
* `withEncryptDCConnections(java.lang.Boolean)` was added

#### `NetAppFilesManager` was modified

* `volumeGroups()` was added

#### `models.Volume$Definition` was modified

### Other Changes
* `withVolumeSpecName(java.lang.String)` was added
* `withCapacityPoolResourceId(java.lang.String)` was added
* `withPlacementRules(java.util.List)` was added
* `withProximityPlacementGroup(java.lang.String)` was added

## 1.0.0-beta.6 (2021-09-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-2021-06-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-08-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.6</version>
<version>1.0.0-beta.7</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
260 changes: 204 additions & 56 deletions sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md

Large diffs are not rendered by default.

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-2021-06-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-08-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 @@ -8,6 +8,7 @@
import com.azure.core.http.HttpClient;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
Expand All @@ -33,6 +34,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.VolumeGroupsImpl;
import com.azure.resourcemanager.netapp.implementation.VolumesImpl;
import com.azure.resourcemanager.netapp.models.AccountBackups;
import com.azure.resourcemanager.netapp.models.Accounts;
Expand All @@ -45,12 +47,14 @@
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.VolumeGroups;
import com.azure.resourcemanager.netapp.models.Volumes;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;

/** Entry point to NetAppFilesManager. Microsoft NetApp Files Azure Resource Provider specification. */
public final class NetAppFilesManager {
Expand Down Expand Up @@ -78,6 +82,8 @@ public final class NetAppFilesManager {

private Vaults vaults;

private VolumeGroups volumeGroups;

private final NetAppManagementClient clientObject;

private NetAppFilesManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -214,7 +220,7 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.netapp")
.append("/")
.append("1.0.0-beta.6");
.append("1.0.0-beta.7");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand All @@ -237,11 +243,24 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile
List<HttpPipelinePolicy> policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
policies.add(new RequestIdPolicy());
policies
.addAll(
this
.policies
.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
.collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies);
policies
.addAll(
this
.policies
.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
Expand Down Expand Up @@ -350,6 +369,14 @@ public Vaults vaults() {
return vaults;
}

/** @return Resource collection API of VolumeGroups. */
public VolumeGroups volumeGroups() {
if (this.volumeGroups == null) {
this.volumeGroups = new VolumeGroupsImpl(clientObject.getVolumeGroups(), this);
}
return volumeGroups;
}

/**
* @return Wrapped service client NetAppManagementClient providing direct access to the underlying auto-generated
* API implementation, based on Azure REST API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Response<BackupInner> getWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String accountName, String backupName);

/**
Expand All @@ -98,7 +98,7 @@ Response<BackupInner> getWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String accountName, String backupName, Context context);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Response<NetAppAccountInner> getByResourceGroupWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return netApp account resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<NetAppAccountInner>, NetAppAccountInner> beginCreateOrUpdate(
String resourceGroupName, String accountName, NetAppAccountInner body);

Expand All @@ -118,7 +118,7 @@ SyncPoller<PollResult<NetAppAccountInner>, NetAppAccountInner> beginCreateOrUpda
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return netApp account resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<NetAppAccountInner>, NetAppAccountInner> beginCreateOrUpdate(
String resourceGroupName, String accountName, NetAppAccountInner body, Context context);

Expand Down Expand Up @@ -162,7 +162,7 @@ NetAppAccountInner createOrUpdate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String accountName);

/**
Expand All @@ -176,7 +176,7 @@ NetAppAccountInner createOrUpdate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String accountName, Context context);

/**
Expand Down Expand Up @@ -215,7 +215,7 @@ NetAppAccountInner createOrUpdate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return netApp account resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<NetAppAccountInner>, NetAppAccountInner> beginUpdate(
String resourceGroupName, String accountName, NetAppAccountPatch body);

Expand All @@ -231,7 +231,7 @@ SyncPoller<PollResult<NetAppAccountInner>, NetAppAccountInner> beginUpdate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return netApp account resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<NetAppAccountInner>, NetAppAccountInner> beginUpdate(
String resourceGroupName, String accountName, NetAppAccountPatch body, Context context);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Response<BackupPolicyInner> getWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return backup policy information.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<BackupPolicyInner>, BackupPolicyInner> beginCreate(
String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body);

Expand All @@ -102,7 +102,7 @@ SyncPoller<PollResult<BackupPolicyInner>, BackupPolicyInner> beginCreate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return backup policy information.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<BackupPolicyInner>, BackupPolicyInner> beginCreate(
String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body, Context context);

Expand Down Expand Up @@ -151,7 +151,7 @@ BackupPolicyInner create(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return backup policy information.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<BackupPolicyInner>, BackupPolicyInner> beginUpdate(
String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body);

Expand All @@ -168,7 +168,7 @@ SyncPoller<PollResult<BackupPolicyInner>, BackupPolicyInner> beginUpdate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return backup policy information.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<BackupPolicyInner>, BackupPolicyInner> beginUpdate(
String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body, Context context);

Expand Down Expand Up @@ -216,7 +216,7 @@ BackupPolicyInner update(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String accountName, String backupPolicyName);

Expand All @@ -232,7 +232,7 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String accountName, String backupPolicyName, Context context);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ Response<BackupInner> getWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return backup of a Volume.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<BackupInner>, BackupInner> beginCreate(
String resourceGroupName,
String accountName,
Expand All @@ -193,7 +193,7 @@ SyncPoller<PollResult<BackupInner>, BackupInner> beginCreate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return backup of a Volume.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<BackupInner>, BackupInner> beginCreate(
String resourceGroupName,
String accountName,
Expand Down Expand Up @@ -265,7 +265,7 @@ BackupInner create(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return backup of a Volume.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<BackupInner>, BackupInner> beginUpdate(
String resourceGroupName,
String accountName,
Expand All @@ -289,7 +289,7 @@ SyncPoller<PollResult<BackupInner>, BackupInner> beginUpdate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return backup of a Volume.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<BackupInner>, BackupInner> beginUpdate(
String resourceGroupName,
String accountName,
Expand Down Expand Up @@ -377,7 +377,7 @@ BackupInner update(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String accountName, String poolName, String volumeName, String backupName);

Expand All @@ -395,7 +395,7 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName,
String accountName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,11 @@ public interface NetAppManagementClient {
* @return the VaultsClient object.
*/
VaultsClient getVaults();

/**
* Gets the VolumeGroupsClient object to access its operations.
*
* @return the VolumeGroupsClient object.
*/
VolumeGroupsClient getVolumeGroups();
}
Loading