Skip to content

Commit 7afa820

Browse files
author
SDKAuto
committed
CodeGen from PR 18516 in Azure/azure-rest-api-specs
Merge 77e7ac959fd580aa463d059b45302fcbfdfc90a5 into 49f003bd7b06f60a7be792d6b38a20678c7610cc
1 parent 8bfecc2 commit 7afa820

File tree

227 files changed

+7559
-1171
lines changed

Some content is hidden

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

227 files changed

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

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

Lines changed: 331 additions & 68 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-10-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-2022-01-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: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import com.azure.resourcemanager.netapp.implementation.SubvolumesImpl;
3737
import com.azure.resourcemanager.netapp.implementation.VaultsImpl;
3838
import com.azure.resourcemanager.netapp.implementation.VolumeGroupsImpl;
39+
import com.azure.resourcemanager.netapp.implementation.VolumeQuotaRulesImpl;
3940
import com.azure.resourcemanager.netapp.implementation.VolumesImpl;
4041
import com.azure.resourcemanager.netapp.models.AccountBackups;
4142
import com.azure.resourcemanager.netapp.models.Accounts;
@@ -50,6 +51,7 @@
5051
import com.azure.resourcemanager.netapp.models.Subvolumes;
5152
import com.azure.resourcemanager.netapp.models.Vaults;
5253
import com.azure.resourcemanager.netapp.models.VolumeGroups;
54+
import com.azure.resourcemanager.netapp.models.VolumeQuotaRules;
5355
import com.azure.resourcemanager.netapp.models.Volumes;
5456
import java.time.Duration;
5557
import java.time.temporal.ChronoUnit;
@@ -82,6 +84,8 @@ public final class NetAppFilesManager {
8284

8385
private BackupPolicies backupPolicies;
8486

87+
private VolumeQuotaRules volumeQuotaRules;
88+
8589
private Vaults vaults;
8690

8791
private VolumeGroups volumeGroups;
@@ -126,7 +130,7 @@ public static Configurable configure() {
126130

127131
/** The Configurable allowing configurations to be set. */
128132
public static final class Configurable {
129-
private final ClientLogger logger = new ClientLogger(Configurable.class);
133+
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
130134

131135
private HttpClient httpClient;
132136
private HttpLogOptions httpLogOptions;
@@ -200,9 +204,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
200204
* @return the configurable object itself.
201205
*/
202206
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
203-
this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
207+
this.defaultPollInterval =
208+
Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
204209
if (this.defaultPollInterval.isNegative()) {
205-
throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
210+
throw LOGGER
211+
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
206212
}
207213
return this;
208214
}
@@ -224,7 +230,7 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile
224230
.append("-")
225231
.append("com.azure.resourcemanager.netapp")
226232
.append("/")
227-
.append("1.0.0-beta.8");
233+
.append("1.0.0-beta.1");
228234
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
229235
userAgentBuilder
230236
.append(" (")
@@ -365,6 +371,14 @@ public BackupPolicies backupPolicies() {
365371
return backupPolicies;
366372
}
367373

374+
/** @return Resource collection API of VolumeQuotaRules. */
375+
public VolumeQuotaRules volumeQuotaRules() {
376+
if (this.volumeQuotaRules == null) {
377+
this.volumeQuotaRules = new VolumeQuotaRulesImpl(clientObject.getVolumeQuotaRules(), this);
378+
}
379+
return volumeQuotaRules;
380+
}
381+
368382
/** @return Resource collection API of Vaults. */
369383
public Vaults vaults() {
370384
if (this.vaults == null) {

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
@@ -122,6 +122,13 @@ public interface NetAppManagementClient {
122122
*/
123123
BackupPoliciesClient getBackupPolicies();
124124

125+
/**
126+
* Gets the VolumeQuotaRulesClient object to access its operations.
127+
*
128+
* @return the VolumeQuotaRulesClient object.
129+
*/
130+
VolumeQuotaRulesClient getVolumeQuotaRules();
131+
125132
/**
126133
* Gets the VaultsClient object to access its operations.
127134
*

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import com.azure.core.http.rest.Response;
1010
import com.azure.core.util.Context;
1111
import com.azure.resourcemanager.netapp.fluent.models.CheckAvailabilityResponseInner;
12+
import com.azure.resourcemanager.netapp.fluent.models.RegionInfoInner;
1213
import com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest;
1314
import com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest;
1415
import com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest;
@@ -98,4 +99,29 @@ Response<CheckAvailabilityResponseInner> checkFilePathAvailabilityWithResponse(
9899
@ServiceMethod(returns = ReturnType.SINGLE)
99100
Response<CheckAvailabilityResponseInner> checkQuotaAvailabilityWithResponse(
100101
String location, QuotaAvailabilityRequest body, Context context);
102+
103+
/**
104+
* Provides storage to network proximity and logical zone mapping information.
105+
*
106+
* @param location The location.
107+
* @throws IllegalArgumentException thrown if parameters fail the validation.
108+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
109+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
110+
* @return provides region specific information.
111+
*/
112+
@ServiceMethod(returns = ReturnType.SINGLE)
113+
RegionInfoInner queryRegionInfo(String location);
114+
115+
/**
116+
* Provides storage to network proximity and logical zone mapping information.
117+
*
118+
* @param location The location.
119+
* @param context The context to associate with this operation.
120+
* @throws IllegalArgumentException thrown if parameters fail the validation.
121+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
122+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
123+
* @return provides region specific information along with {@link Response}.
124+
*/
125+
@ServiceMethod(returns = ReturnType.SINGLE)
126+
Response<RegionInfoInner> queryRegionInfoWithResponse(String location, Context context);
101127
}

0 commit comments

Comments
 (0)