Skip to content

Commit f228de1

Browse files
author
SDKAuto
committed
CodeGen from PR 17296 in Azure/azure-rest-api-specs
Merge 2eb4e1550d9ac239e0d4c5e1aba978c61c24f32a into aa777ae5b161aba4ea4536b22aea9d1462f08aed
1 parent eda4dac commit f228de1

File tree

156 files changed

+7232
-639
lines changed

Some content is hidden

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

156 files changed

+7232
-639
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.8 (Unreleased)
3+
## 1.0.0-beta.1 (2022-02-08)
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-10-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-08-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-10-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.7</version>
35+
<version>1.0.0-beta.8</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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

Lines changed: 265 additions & 62 deletions
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 1 deletion
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-08-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-10-01.</description>
1717
<url>https://github.com/Azure/azure-sdk-for-java</url>
1818

1919
<licenses>

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import com.azure.resourcemanager.netapp.implementation.PoolsImpl;
3434
import com.azure.resourcemanager.netapp.implementation.SnapshotPoliciesImpl;
3535
import com.azure.resourcemanager.netapp.implementation.SnapshotsImpl;
36+
import com.azure.resourcemanager.netapp.implementation.SubvolumesImpl;
3637
import com.azure.resourcemanager.netapp.implementation.VaultsImpl;
3738
import com.azure.resourcemanager.netapp.implementation.VolumeGroupsImpl;
3839
import com.azure.resourcemanager.netapp.implementation.VolumesImpl;
@@ -46,6 +47,7 @@
4647
import com.azure.resourcemanager.netapp.models.Pools;
4748
import com.azure.resourcemanager.netapp.models.SnapshotPolicies;
4849
import com.azure.resourcemanager.netapp.models.Snapshots;
50+
import com.azure.resourcemanager.netapp.models.Subvolumes;
4951
import com.azure.resourcemanager.netapp.models.Vaults;
5052
import com.azure.resourcemanager.netapp.models.VolumeGroups;
5153
import com.azure.resourcemanager.netapp.models.Volumes;
@@ -84,6 +86,8 @@ public final class NetAppFilesManager {
8486

8587
private VolumeGroups volumeGroups;
8688

89+
private Subvolumes subvolumes;
90+
8791
private final NetAppManagementClient clientObject;
8892

8993
private NetAppFilesManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -220,7 +224,7 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile
220224
.append("-")
221225
.append("com.azure.resourcemanager.netapp")
222226
.append("/")
223-
.append("1.0.0-beta.7");
227+
.append("1.0.0-beta.1");
224228
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
225229
userAgentBuilder
226230
.append(" (")
@@ -377,6 +381,14 @@ public VolumeGroups volumeGroups() {
377381
return volumeGroups;
378382
}
379383

384+
/** @return Resource collection API of Subvolumes. */
385+
public Subvolumes subvolumes() {
386+
if (this.subvolumes == null) {
387+
this.subvolumes = new SubvolumesImpl(clientObject.getSubvolumes(), this);
388+
}
389+
return subvolumes;
390+
}
391+
380392
/**
381393
* @return Wrapped service client NetAppManagementClient providing direct access to the underlying auto-generated
382394
* API implementation, based on Azure REST API.

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import com.azure.core.util.Context;
1313
import com.azure.core.util.polling.SyncPoller;
1414
import com.azure.resourcemanager.netapp.fluent.models.BackupInner;
15+
import reactor.core.publisher.Mono;
1516

1617
/** An instance of this class provides access to all the operations defined in AccountBackupsClient. */
1718
public interface AccountBackupsClient {
@@ -66,7 +67,7 @@ public interface AccountBackupsClient {
6667
* @throws IllegalArgumentException thrown if parameters fail the validation.
6768
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
6869
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
69-
* @return the specified backup for a Netapp Account.
70+
* @return the specified backup for a Netapp Account along with {@link Response}.
7071
*/
7172
@ServiceMethod(returns = ReturnType.SINGLE)
7273
Response<BackupInner> getWithResponse(
@@ -81,7 +82,7 @@ Response<BackupInner> getWithResponse(
8182
* @throws IllegalArgumentException thrown if parameters fail the validation.
8283
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
8384
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
84-
* @return the completion.
85+
* @return the {@link Response} on successful completion of {@link Mono}.
8586
*/
8687
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
8788
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String accountName, String backupName);
@@ -96,7 +97,7 @@ Response<BackupInner> getWithResponse(
9697
* @throws IllegalArgumentException thrown if parameters fail the validation.
9798
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
9899
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
99-
* @return the completion.
100+
* @return the {@link Response} on successful completion of {@link Mono}.
100101
*/
101102
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
102103
SyncPoller<PollResult<Void>, Void> beginDelete(

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import com.azure.core.util.polling.SyncPoller;
1414
import com.azure.resourcemanager.netapp.fluent.models.NetAppAccountInner;
1515
import com.azure.resourcemanager.netapp.models.NetAppAccountPatch;
16+
import reactor.core.publisher.Mono;
1617

1718
/** An instance of this class provides access to all the operations defined in AccountsClient. */
1819
public interface AccountsClient {
@@ -85,7 +86,7 @@ public interface AccountsClient {
8586
* @throws IllegalArgumentException thrown if parameters fail the validation.
8687
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
8788
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
88-
* @return the NetApp account.
89+
* @return the NetApp account along with {@link Response}.
8990
*/
9091
@ServiceMethod(returns = ReturnType.SINGLE)
9192
Response<NetAppAccountInner> getByResourceGroupWithResponse(
@@ -100,7 +101,7 @@ Response<NetAppAccountInner> getByResourceGroupWithResponse(
100101
* @throws IllegalArgumentException thrown if parameters fail the validation.
101102
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
102103
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
103-
* @return netApp account resource.
104+
* @return netApp account resource along with {@link Response} on successful completion of {@link Mono}.
104105
*/
105106
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
106107
SyncPoller<PollResult<NetAppAccountInner>, NetAppAccountInner> beginCreateOrUpdate(
@@ -116,7 +117,7 @@ SyncPoller<PollResult<NetAppAccountInner>, NetAppAccountInner> beginCreateOrUpda
116117
* @throws IllegalArgumentException thrown if parameters fail the validation.
117118
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
118119
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
119-
* @return netApp account resource.
120+
* @return netApp account resource along with {@link Response} on successful completion of {@link Mono}.
120121
*/
121122
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
122123
SyncPoller<PollResult<NetAppAccountInner>, NetAppAccountInner> beginCreateOrUpdate(
@@ -160,7 +161,7 @@ NetAppAccountInner createOrUpdate(
160161
* @throws IllegalArgumentException thrown if parameters fail the validation.
161162
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
162163
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
163-
* @return the completion.
164+
* @return the {@link Response} on successful completion of {@link Mono}.
164165
*/
165166
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
166167
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String accountName);
@@ -174,7 +175,7 @@ NetAppAccountInner createOrUpdate(
174175
* @throws IllegalArgumentException thrown if parameters fail the validation.
175176
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
176177
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
177-
* @return the completion.
178+
* @return the {@link Response} on successful completion of {@link Mono}.
178179
*/
179180
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
180181
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String accountName, Context context);
@@ -213,7 +214,7 @@ NetAppAccountInner createOrUpdate(
213214
* @throws IllegalArgumentException thrown if parameters fail the validation.
214215
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
215216
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
216-
* @return netApp account resource.
217+
* @return netApp account resource along with {@link Response} on successful completion of {@link Mono}.
217218
*/
218219
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
219220
SyncPoller<PollResult<NetAppAccountInner>, NetAppAccountInner> beginUpdate(
@@ -229,7 +230,7 @@ SyncPoller<PollResult<NetAppAccountInner>, NetAppAccountInner> beginUpdate(
229230
* @throws IllegalArgumentException thrown if parameters fail the validation.
230231
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
231232
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
232-
* @return netApp account resource.
233+
* @return netApp account resource along with {@link Response} on successful completion of {@link Mono}.
233234
*/
234235
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
235236
SyncPoller<PollResult<NetAppAccountInner>, NetAppAccountInner> beginUpdate(

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import com.azure.core.util.polling.SyncPoller;
1414
import com.azure.resourcemanager.netapp.fluent.models.BackupPolicyInner;
1515
import com.azure.resourcemanager.netapp.models.BackupPolicyPatch;
16+
import reactor.core.publisher.Mono;
1617

1718
/** An instance of this class provides access to all the operations defined in BackupPoliciesClient. */
1819
public interface BackupPoliciesClient {
@@ -67,7 +68,7 @@ public interface BackupPoliciesClient {
6768
* @throws IllegalArgumentException thrown if parameters fail the validation.
6869
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
6970
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
70-
* @return a particular backup Policy.
71+
* @return a particular backup Policy along with {@link Response}.
7172
*/
7273
@ServiceMethod(returns = ReturnType.SINGLE)
7374
Response<BackupPolicyInner> getWithResponse(
@@ -83,7 +84,7 @@ Response<BackupPolicyInner> getWithResponse(
8384
* @throws IllegalArgumentException thrown if parameters fail the validation.
8485
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
8586
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
86-
* @return backup policy information.
87+
* @return backup policy information along with {@link Response} on successful completion of {@link Mono}.
8788
*/
8889
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
8990
SyncPoller<PollResult<BackupPolicyInner>, BackupPolicyInner> beginCreate(
@@ -100,7 +101,7 @@ SyncPoller<PollResult<BackupPolicyInner>, BackupPolicyInner> beginCreate(
100101
* @throws IllegalArgumentException thrown if parameters fail the validation.
101102
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
102103
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
103-
* @return backup policy information.
104+
* @return backup policy information along with {@link Response} on successful completion of {@link Mono}.
104105
*/
105106
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
106107
SyncPoller<PollResult<BackupPolicyInner>, BackupPolicyInner> beginCreate(
@@ -149,7 +150,7 @@ BackupPolicyInner create(
149150
* @throws IllegalArgumentException thrown if parameters fail the validation.
150151
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
151152
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
152-
* @return backup policy information.
153+
* @return backup policy information along with {@link Response} on successful completion of {@link Mono}.
153154
*/
154155
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
155156
SyncPoller<PollResult<BackupPolicyInner>, BackupPolicyInner> beginUpdate(
@@ -166,7 +167,7 @@ SyncPoller<PollResult<BackupPolicyInner>, BackupPolicyInner> beginUpdate(
166167
* @throws IllegalArgumentException thrown if parameters fail the validation.
167168
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
168169
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
169-
* @return backup policy information.
170+
* @return backup policy information along with {@link Response} on successful completion of {@link Mono}.
170171
*/
171172
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
172173
SyncPoller<PollResult<BackupPolicyInner>, BackupPolicyInner> beginUpdate(
@@ -214,7 +215,7 @@ BackupPolicyInner update(
214215
* @throws IllegalArgumentException thrown if parameters fail the validation.
215216
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
216217
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
217-
* @return the completion.
218+
* @return the {@link Response} on successful completion of {@link Mono}.
218219
*/
219220
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
220221
SyncPoller<PollResult<Void>, Void> beginDelete(
@@ -230,7 +231,7 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
230231
* @throws IllegalArgumentException thrown if parameters fail the validation.
231232
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
232233
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
233-
* @return the completion.
234+
* @return the {@link Response} on successful completion of {@link Mono}.
234235
*/
235236
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
236237
SyncPoller<PollResult<Void>, Void> beginDelete(

0 commit comments

Comments
 (0)