Skip to content

Commit ebacaab

Browse files
author
SDKAuto
committed
CodeGen from PR 33247 in Azure/azure-rest-api-specs
Merge 58807b9de3912e503613f6076311979e2808d548 into 3db6867b8e524ea6d1bc7a3bbb989fe50dd2f184
1 parent 656cfa9 commit ebacaab

File tree

303 files changed

+2454
-7831
lines changed

Some content is hidden

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

303 files changed

+2454
-7831
lines changed

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

Lines changed: 66 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,76 @@
11
# Release History
22

3-
## 1.7.0-beta.1 (Unreleased)
3+
## 1.0.0-beta.1 (2025-04-01)
44

5-
### Features Added
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-2025-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
### Breaking Changes
88

9-
### Bugs Fixed
9+
#### `models.Volume$Definition` was modified
10+
11+
* `withIsRestoring(java.lang.Boolean)` was removed
1012

11-
### Other Changes
13+
#### `models.VolumeGroupVolumeProperties` was modified
14+
15+
* `withIsRestoring(java.lang.Boolean)` was removed
16+
17+
### Features Added
18+
19+
* `models.UsageName` was added
20+
21+
* `models.NetAppResourceUsages` was added
22+
23+
* `models.UsagesListResult` was added
24+
25+
* `models.MultiAdStatus` was added
26+
27+
* `models.DestinationReplication` was added
28+
29+
* `models.UsageResult` was added
30+
31+
* `models.ReplicationType` was added
32+
33+
#### `models.NetAppAccount$Definition` was modified
34+
35+
* `withNfsV4IdDomain(java.lang.String)` was added
36+
37+
#### `NetAppFilesManager` was modified
38+
39+
* `netAppResourceUsages()` was added
40+
41+
#### `models.Backup` was modified
42+
43+
* `isLargeVolume()` was added
44+
* `completionDate()` was added
45+
* `snapshotCreationDate()` was added
46+
47+
#### `models.EncryptionIdentity` was modified
48+
49+
* `federatedClientId()` was added
50+
* `withFederatedClientId(java.lang.String)` was added
51+
52+
#### `models.OperationListResult` was modified
53+
54+
* `nextLink()` was added
55+
56+
#### `models.ReplicationObject` was modified
57+
58+
* `destinationReplications()` was added
59+
60+
#### `models.NetAppAccountPatch` was modified
61+
62+
* `multiAdStatus()` was added
63+
* `nfsV4IdDomain()` was added
64+
* `withNfsV4IdDomain(java.lang.String)` was added
65+
66+
#### `models.NetAppAccount$Update` was modified
67+
68+
* `withNfsV4IdDomain(java.lang.String)` was added
69+
70+
#### `models.NetAppAccount` was modified
71+
72+
* `multiAdStatus()` was added
73+
* `nfsV4IdDomain()` was added
1274

1375
## 1.6.0 (2025-02-21)
1476

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

Lines changed: 1 addition & 1 deletion
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-2024-09-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-2025-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

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

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

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<packaging>jar</packaging>
1919

2020
<name>Microsoft Azure SDK for NetAppFiles Management</name>
21-
<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-2024-09-01.</description>
21+
<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-2025-01-01.</description>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>
@@ -45,6 +45,7 @@
4545
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4646
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
4747
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
48+
<revapi.skip>true</revapi.skip>
4849
<spotless.skip>false</spotless.skip>
4950
</properties>
5051
<dependencies>

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import com.azure.resourcemanager.netapp.implementation.NetAppManagementClientBuilder;
3636
import com.azure.resourcemanager.netapp.implementation.NetAppResourceQuotaLimitsImpl;
3737
import com.azure.resourcemanager.netapp.implementation.NetAppResourceRegionInfosImpl;
38+
import com.azure.resourcemanager.netapp.implementation.NetAppResourceUsagesImpl;
3839
import com.azure.resourcemanager.netapp.implementation.NetAppResourcesImpl;
3940
import com.azure.resourcemanager.netapp.implementation.OperationsImpl;
4041
import com.azure.resourcemanager.netapp.implementation.PoolsImpl;
@@ -53,6 +54,7 @@
5354
import com.azure.resourcemanager.netapp.models.BackupsUnderVolumes;
5455
import com.azure.resourcemanager.netapp.models.NetAppResourceQuotaLimits;
5556
import com.azure.resourcemanager.netapp.models.NetAppResourceRegionInfos;
57+
import com.azure.resourcemanager.netapp.models.NetAppResourceUsages;
5658
import com.azure.resourcemanager.netapp.models.NetAppResources;
5759
import com.azure.resourcemanager.netapp.models.Operations;
5860
import com.azure.resourcemanager.netapp.models.Pools;
@@ -79,6 +81,8 @@ public final class NetAppFilesManager {
7981

8082
private NetAppResources netAppResources;
8183

84+
private NetAppResourceUsages netAppResourceUsages;
85+
8286
private NetAppResourceQuotaLimits netAppResourceQuotaLimits;
8387

8488
private NetAppResourceRegionInfos netAppResourceRegionInfos;
@@ -350,6 +354,18 @@ public NetAppResources netAppResources() {
350354
return netAppResources;
351355
}
352356

357+
/**
358+
* Gets the resource collection API of NetAppResourceUsages.
359+
*
360+
* @return Resource collection API of NetAppResourceUsages.
361+
*/
362+
public NetAppResourceUsages netAppResourceUsages() {
363+
if (this.netAppResourceUsages == null) {
364+
this.netAppResourceUsages = new NetAppResourceUsagesImpl(clientObject.getNetAppResourceUsages(), this);
365+
}
366+
return netAppResourceUsages;
367+
}
368+
353369
/**
354370
* Gets the resource collection API of NetAppResourceQuotaLimits.
355371
*

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
@@ -60,6 +60,13 @@ public interface NetAppManagementClient {
6060
*/
6161
NetAppResourcesClient getNetAppResources();
6262

63+
/**
64+
* Gets the NetAppResourceUsagesClient object to access its operations.
65+
*
66+
* @return the NetAppResourceUsagesClient object.
67+
*/
68+
NetAppResourceUsagesClient getNetAppResourceUsages();
69+
6370
/**
6471
* Gets the NetAppResourceQuotaLimitsClient object to access its operations.
6572
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.resourcemanager.netapp.fluent;
6+
7+
import com.azure.core.annotation.ReturnType;
8+
import com.azure.core.annotation.ServiceMethod;
9+
import com.azure.core.http.rest.PagedIterable;
10+
import com.azure.core.http.rest.Response;
11+
import com.azure.core.util.Context;
12+
import com.azure.resourcemanager.netapp.fluent.models.UsageResultInner;
13+
14+
/**
15+
* An instance of this class provides access to all the operations defined in NetAppResourceUsagesClient.
16+
*/
17+
public interface NetAppResourceUsagesClient {
18+
/**
19+
* Get usages
20+
*
21+
* Get current subscription usages.
22+
*
23+
* @param location The name of the Azure region.
24+
* @throws IllegalArgumentException thrown if parameters fail the validation.
25+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
26+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
27+
* @return current subscription usages as paginated response with {@link PagedIterable}.
28+
*/
29+
@ServiceMethod(returns = ReturnType.COLLECTION)
30+
PagedIterable<UsageResultInner> list(String location);
31+
32+
/**
33+
* Get usages
34+
*
35+
* Get current subscription usages.
36+
*
37+
* @param location The name of the Azure region.
38+
* @param context The context to associate with this operation.
39+
* @throws IllegalArgumentException thrown if parameters fail the validation.
40+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
41+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
42+
* @return current subscription usages as paginated response with {@link PagedIterable}.
43+
*/
44+
@ServiceMethod(returns = ReturnType.COLLECTION)
45+
PagedIterable<UsageResultInner> list(String location, Context context);
46+
47+
/**
48+
* Get specific type of usage
49+
*
50+
* Get current subscription usage of the specific type.
51+
*
52+
* @param location The name of the Azure region.
53+
* @param usageType The type of usage.
54+
* @param context The context to associate with this operation.
55+
* @throws IllegalArgumentException thrown if parameters fail the validation.
56+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
57+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
58+
* @return current subscription usage of the specific type along with {@link Response}.
59+
*/
60+
@ServiceMethod(returns = ReturnType.SINGLE)
61+
Response<UsageResultInner> getWithResponse(String location, String usageType, Context context);
62+
63+
/**
64+
* Get specific type of usage
65+
*
66+
* Get current subscription usage of the specific type.
67+
*
68+
* @param location The name of the Azure region.
69+
* @param usageType The type of usage.
70+
* @throws IllegalArgumentException thrown if parameters fail the validation.
71+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
72+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
73+
* @return current subscription usage of the specific type.
74+
*/
75+
@ServiceMethod(returns = ReturnType.SINGLE)
76+
UsageResultInner get(String location, String usageType);
77+
}

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

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import com.azure.json.JsonWriter;
1212
import com.azure.resourcemanager.netapp.models.AccountEncryption;
1313
import com.azure.resourcemanager.netapp.models.ActiveDirectory;
14+
import com.azure.resourcemanager.netapp.models.MultiAdStatus;
1415
import java.io.IOException;
1516
import java.util.List;
1617

@@ -39,6 +40,17 @@ public final class AccountProperties implements JsonSerializable<AccountProperti
3940
*/
4041
private Boolean disableShowmount;
4142

43+
/*
44+
* Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and
45+
* region and only affect non ldap NFSv4 volumes.
46+
*/
47+
private String nfsV4IdDomain;
48+
49+
/*
50+
* MultiAD Status for the account
51+
*/
52+
private MultiAdStatus multiAdStatus;
53+
4254
/**
4355
* Creates an instance of AccountProperties class.
4456
*/
@@ -104,6 +116,37 @@ public Boolean disableShowmount() {
104116
return this.disableShowmount;
105117
}
106118

119+
/**
120+
* Get the nfsV4IdDomain property: Domain for NFSv4 user ID mapping. This property will be set for all NetApp
121+
* accounts in the subscription and region and only affect non ldap NFSv4 volumes.
122+
*
123+
* @return the nfsV4IdDomain value.
124+
*/
125+
public String nfsV4IdDomain() {
126+
return this.nfsV4IdDomain;
127+
}
128+
129+
/**
130+
* Set the nfsV4IdDomain property: Domain for NFSv4 user ID mapping. This property will be set for all NetApp
131+
* accounts in the subscription and region and only affect non ldap NFSv4 volumes.
132+
*
133+
* @param nfsV4IdDomain the nfsV4IdDomain value to set.
134+
* @return the AccountProperties object itself.
135+
*/
136+
public AccountProperties withNfsV4IdDomain(String nfsV4IdDomain) {
137+
this.nfsV4IdDomain = nfsV4IdDomain;
138+
return this;
139+
}
140+
141+
/**
142+
* Get the multiAdStatus property: MultiAD Status for the account.
143+
*
144+
* @return the multiAdStatus value.
145+
*/
146+
public MultiAdStatus multiAdStatus() {
147+
return this.multiAdStatus;
148+
}
149+
107150
/**
108151
* Validates the instance.
109152
*
@@ -127,6 +170,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
127170
jsonWriter.writeArrayField("activeDirectories", this.activeDirectories,
128171
(writer, element) -> writer.writeJson(element));
129172
jsonWriter.writeJsonField("encryption", this.encryption);
173+
jsonWriter.writeStringField("nfsV4IDDomain", this.nfsV4IdDomain);
130174
return jsonWriter.writeEndObject();
131175
}
132176

@@ -155,6 +199,10 @@ public static AccountProperties fromJson(JsonReader jsonReader) throws IOExcepti
155199
deserializedAccountProperties.encryption = AccountEncryption.fromJson(reader);
156200
} else if ("disableShowmount".equals(fieldName)) {
157201
deserializedAccountProperties.disableShowmount = reader.getNullable(JsonReader::getBoolean);
202+
} else if ("nfsV4IDDomain".equals(fieldName)) {
203+
deserializedAccountProperties.nfsV4IdDomain = reader.getString();
204+
} else if ("multiAdStatus".equals(fieldName)) {
205+
deserializedAccountProperties.multiAdStatus = MultiAdStatus.fromString(reader.getString());
158206
} else {
159207
reader.skipChildren();
160208
}

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,24 @@ public OffsetDateTime creationDate() {
117117
return this.innerProperties() == null ? null : this.innerProperties().creationDate();
118118
}
119119

120+
/**
121+
* Get the snapshotCreationDate property: The snapshot creation date of the backup.
122+
*
123+
* @return the snapshotCreationDate value.
124+
*/
125+
public OffsetDateTime snapshotCreationDate() {
126+
return this.innerProperties() == null ? null : this.innerProperties().snapshotCreationDate();
127+
}
128+
129+
/**
130+
* Get the completionDate property: The completion date of the backup.
131+
*
132+
* @return the completionDate value.
133+
*/
134+
public OffsetDateTime completionDate() {
135+
return this.innerProperties() == null ? null : this.innerProperties().completionDate();
136+
}
137+
120138
/**
121139
* Get the provisioningState property: Azure lifecycle management.
122140
*
@@ -256,6 +274,15 @@ public String backupPolicyResourceId() {
256274
return this.innerProperties() == null ? null : this.innerProperties().backupPolicyResourceId();
257275
}
258276

277+
/**
278+
* Get the isLargeVolume property: Specifies if the backup is for a large volume.
279+
*
280+
* @return the isLargeVolume value.
281+
*/
282+
public Boolean isLargeVolume() {
283+
return this.innerProperties() == null ? null : this.innerProperties().isLargeVolume();
284+
}
285+
259286
/**
260287
* Validates the instance.
261288
*

0 commit comments

Comments
 (0)