Skip to content

Commit d661603

Browse files
author
SDKAuto
committed
CodeGen from PR 16381 in Azure/azure-rest-api-specs
Merge 20bfdb39625ea18a0578f77c2f1c2c06d41fabe7 into 47b551f58ee1b24f4783c2e927b1673b39d87348
1 parent 7ea503b commit d661603

File tree

121 files changed

+5030
-407
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+5030
-407
lines changed

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

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

3-
## 1.0.0-beta.7 (Unreleased)
3+
## 1.0.0-beta.1 (2021-11-23)
4+
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-2021-08-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
46

57
### Features Added
68

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-2021-06-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-2021-08-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.6</version>
35+
<version>1.0.0-beta.7</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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

Lines changed: 204 additions & 56 deletions
Large diffs are not rendered by default.

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

Lines changed: 5 additions & 10 deletions
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. 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>
16+
<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>
1717
<url>https://github.com/Azure/azure-sdk-for-java</url>
1818

1919
<licenses>
@@ -38,7 +38,10 @@
3838
</developers>
3939
<properties>
4040
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41-
<legal><![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal>
41+
<jacoco.skip>true</jacoco.skip>
42+
<codesnippet.skip>false</codesnippet.skip>
43+
<javadocDoclet></javadocDoclet>
44+
<javadocDocletOptions></javadocDocletOptions>
4245
</properties>
4346
<dependencies>
4447
<dependency>
@@ -72,14 +75,6 @@
7275
</dependencies>
7376
<build>
7477
<plugins>
75-
<plugin>
76-
<groupId>org.jacoco</groupId>
77-
<artifactId>jacoco-maven-plugin</artifactId>
78-
<version>0.8.7</version> <!-- {x-version-update;org.jacoco:jacoco-maven-plugin;external_dependency} -->
79-
<configuration>
80-
<skip>true</skip>
81-
</configuration>
82-
</plugin>
8378
<plugin>
8479
<groupId>org.revapi</groupId>
8580
<artifactId>revapi-maven-plugin</artifactId>

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

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import com.azure.core.http.HttpClient;
99
import com.azure.core.http.HttpPipeline;
1010
import com.azure.core.http.HttpPipelineBuilder;
11+
import com.azure.core.http.HttpPipelinePosition;
1112
import com.azure.core.http.policy.AddDatePolicy;
1213
import com.azure.core.http.policy.HttpLogOptions;
1314
import com.azure.core.http.policy.HttpLoggingPolicy;
@@ -33,6 +34,7 @@
3334
import com.azure.resourcemanager.netapp.implementation.SnapshotPoliciesImpl;
3435
import com.azure.resourcemanager.netapp.implementation.SnapshotsImpl;
3536
import com.azure.resourcemanager.netapp.implementation.VaultsImpl;
37+
import com.azure.resourcemanager.netapp.implementation.VolumeGroupsImpl;
3638
import com.azure.resourcemanager.netapp.implementation.VolumesImpl;
3739
import com.azure.resourcemanager.netapp.models.AccountBackups;
3840
import com.azure.resourcemanager.netapp.models.Accounts;
@@ -45,12 +47,14 @@
4547
import com.azure.resourcemanager.netapp.models.SnapshotPolicies;
4648
import com.azure.resourcemanager.netapp.models.Snapshots;
4749
import com.azure.resourcemanager.netapp.models.Vaults;
50+
import com.azure.resourcemanager.netapp.models.VolumeGroups;
4851
import com.azure.resourcemanager.netapp.models.Volumes;
4952
import java.time.Duration;
5053
import java.time.temporal.ChronoUnit;
5154
import java.util.ArrayList;
5255
import java.util.List;
5356
import java.util.Objects;
57+
import java.util.stream.Collectors;
5458

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

7983
private Vaults vaults;
8084

85+
private VolumeGroups volumeGroups;
86+
8187
private final NetAppManagementClient clientObject;
8288

8389
private NetAppFilesManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -214,7 +220,7 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile
214220
.append("-")
215221
.append("com.azure.resourcemanager.netapp")
216222
.append("/")
217-
.append("1.0.0-beta.6");
223+
.append("1.0.0-beta.1");
218224
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
219225
userAgentBuilder
220226
.append(" (")
@@ -237,11 +243,24 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile
237243
List<HttpPipelinePolicy> policies = new ArrayList<>();
238244
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
239245
policies.add(new RequestIdPolicy());
246+
policies
247+
.addAll(
248+
this
249+
.policies
250+
.stream()
251+
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
252+
.collect(Collectors.toList()));
240253
HttpPolicyProviders.addBeforeRetryPolicies(policies);
241254
policies.add(retryPolicy);
242255
policies.add(new AddDatePolicy());
243256
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
244-
policies.addAll(this.policies);
257+
policies
258+
.addAll(
259+
this
260+
.policies
261+
.stream()
262+
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
263+
.collect(Collectors.toList()));
245264
HttpPolicyProviders.addAfterRetryPolicies(policies);
246265
policies.add(new HttpLoggingPolicy(httpLogOptions));
247266
HttpPipeline httpPipeline =
@@ -350,6 +369,14 @@ public Vaults vaults() {
350369
return vaults;
351370
}
352371

372+
/** @return Resource collection API of VolumeGroups. */
373+
public VolumeGroups volumeGroups() {
374+
if (this.volumeGroups == null) {
375+
this.volumeGroups = new VolumeGroupsImpl(clientObject.getVolumeGroups(), this);
376+
}
377+
return volumeGroups;
378+
}
379+
353380
/**
354381
* @return Wrapped service client NetAppManagementClient providing direct access to the underlying auto-generated
355382
* API implementation, based on Azure REST API.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Response<BackupInner> getWithResponse(
8383
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
8484
* @return the completion.
8585
*/
86-
@ServiceMethod(returns = ReturnType.SINGLE)
86+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
8787
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String accountName, String backupName);
8888

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

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Response<NetAppAccountInner> getByResourceGroupWithResponse(
102102
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
103103
* @return netApp account resource.
104104
*/
105-
@ServiceMethod(returns = ReturnType.SINGLE)
105+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
106106
SyncPoller<PollResult<NetAppAccountInner>, NetAppAccountInner> beginCreateOrUpdate(
107107
String resourceGroupName, String accountName, NetAppAccountInner body);
108108

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

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

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

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

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

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Response<BackupPolicyInner> getWithResponse(
8585
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
8686
* @return backup policy information.
8787
*/
88-
@ServiceMethod(returns = ReturnType.SINGLE)
88+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
8989
SyncPoller<PollResult<BackupPolicyInner>, BackupPolicyInner> beginCreate(
9090
String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body);
9191

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

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

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

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

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

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ Response<BackupInner> getWithResponse(
169169
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
170170
* @return backup of a Volume.
171171
*/
172-
@ServiceMethod(returns = ReturnType.SINGLE)
172+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
173173
SyncPoller<PollResult<BackupInner>, BackupInner> beginCreate(
174174
String resourceGroupName,
175175
String accountName,
@@ -193,7 +193,7 @@ SyncPoller<PollResult<BackupInner>, BackupInner> beginCreate(
193193
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
194194
* @return backup of a Volume.
195195
*/
196-
@ServiceMethod(returns = ReturnType.SINGLE)
196+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
197197
SyncPoller<PollResult<BackupInner>, BackupInner> beginCreate(
198198
String resourceGroupName,
199199
String accountName,
@@ -265,7 +265,7 @@ BackupInner create(
265265
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
266266
* @return backup of a Volume.
267267
*/
268-
@ServiceMethod(returns = ReturnType.SINGLE)
268+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
269269
SyncPoller<PollResult<BackupInner>, BackupInner> beginUpdate(
270270
String resourceGroupName,
271271
String accountName,
@@ -289,7 +289,7 @@ SyncPoller<PollResult<BackupInner>, BackupInner> beginUpdate(
289289
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
290290
* @return backup of a Volume.
291291
*/
292-
@ServiceMethod(returns = ReturnType.SINGLE)
292+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
293293
SyncPoller<PollResult<BackupInner>, BackupInner> beginUpdate(
294294
String resourceGroupName,
295295
String accountName,
@@ -377,7 +377,7 @@ BackupInner update(
377377
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
378378
* @return the completion.
379379
*/
380-
@ServiceMethod(returns = ReturnType.SINGLE)
380+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
381381
SyncPoller<PollResult<Void>, Void> beginDelete(
382382
String resourceGroupName, String accountName, String poolName, String volumeName, String backupName);
383383

@@ -395,7 +395,7 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
395395
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
396396
* @return the completion.
397397
*/
398-
@ServiceMethod(returns = ReturnType.SINGLE)
398+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
399399
SyncPoller<PollResult<Void>, Void> beginDelete(
400400
String resourceGroupName,
401401
String accountName,

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
@@ -128,4 +128,11 @@ public interface NetAppManagementClient {
128128
* @return the VaultsClient object.
129129
*/
130130
VaultsClient getVaults();
131+
132+
/**
133+
* Gets the VolumeGroupsClient object to access its operations.
134+
*
135+
* @return the VolumeGroupsClient object.
136+
*/
137+
VolumeGroupsClient getVolumeGroups();
131138
}

0 commit comments

Comments
 (0)