Skip to content

Commit 7dc4d2a

Browse files
authored
[NetAppFiles] Bump ANF to 2025-09-01 (#53954)
1 parent cb575a8 commit 7dc4d2a

File tree

201 files changed

+5520
-11525
lines changed

Some content is hidden

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

201 files changed

+5520
-11525
lines changed

sdk/netapp/Azure.ResourceManager.NetApp/CHANGELOG.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
# Release History
22

3-
## 1.13.0-beta.2 (Unreleased)
3+
## 1.14.0 (2025-11-26)
44

55
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
6+
- Upgraded api-version tag from 'package-2025-06-01' to 'package-2025-09-01'. Tag detail available at https://github.com/Azure/azure-rest-api-specs/blob/1da0ccefea2127820defac6496bf4710c0902d78/specification/netapp/resource-manager/Microsoft.NetApp/NetApp/readme.md.
7+
- Added `ExcludeReplicationsFilter` to `GetReplicationsAsync` to filter out replications
128

139
## 1.13.0-beta.1 (2025-10-22)
1410

sdk/netapp/Azure.ResourceManager.NetApp/api/Azure.ResourceManager.NetApp.net8.0.cs

Lines changed: 105 additions & 394 deletions
Large diffs are not rendered by default.

sdk/netapp/Azure.ResourceManager.NetApp/api/Azure.ResourceManager.NetApp.netstandard2.0.cs

Lines changed: 105 additions & 394 deletions
Large diffs are not rendered by default.

sdk/netapp/Azure.ResourceManager.NetApp/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "net",
44
"TagPrefix": "net/netapp/Azure.ResourceManager.NetApp",
5-
"Tag": "net/netapp/Azure.ResourceManager.NetApp_f4f184ecbe"
5+
"Tag": "net/netapp/Azure.ResourceManager.NetApp_09461a0154"
66
}

sdk/netapp/Azure.ResourceManager.NetApp/src/Azure.ResourceManager.NetApp.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<Version>1.13.0-beta.2</Version>
3+
<Version>1.14.0</Version>
44
<!--The ApiCompatVersion is managed automatically and should not generally be modified manually.-->
55
<ApiCompatVersion>1.12.0</ApiCompatVersion>
66
<PackageId>Azure.ResourceManager.NetApp</PackageId>

sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/ArmNetAppModelFactory.cs

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,5 +217,138 @@ public static NetAppVolumeReplicationStatus NetAppVolumeReplicationStatus(bool?
217217
totalProgress,
218218
errorMessage);
219219
}
220+
221+
/// <summary> Initializes a new instance of <see cref="NetApp.CapacityPoolData"/>. </summary>
222+
/// <param name="id"> The id. </param>
223+
/// <param name="name"> The name. </param>
224+
/// <param name="resourceType"> The resourceType. </param>
225+
/// <param name="systemData"> The systemData. </param>
226+
/// <param name="tags"> The tags. </param>
227+
/// <param name="location"> The location. </param>
228+
/// <param name="etag"> A unique read-only string that changes whenever the resource is updated. </param>
229+
/// <param name="poolId"> UUID v4 used to identify the Pool. </param>
230+
/// <param name="size"> Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776). </param>
231+
/// <param name="serviceLevel"> The service level of the file system. </param>
232+
/// <param name="provisioningState"> Azure lifecycle management. </param>
233+
/// <param name="totalThroughputMibps"> Total throughput of pool in MiB/s. </param>
234+
/// <param name="utilizedThroughputMibps"> Utilized throughput of pool in MiB/s. </param>
235+
/// <param name="customThroughputMibps"> Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level. </param>
236+
/// <param name="qosType"> The qos type of the pool. </param>
237+
/// <param name="isCoolAccessEnabled"> If enabled (true) the pool can contain cool Access enabled volumes. </param>
238+
/// <param name="encryptionType"> Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. This value can only be set when creating new pool. </param>
239+
/// <returns> A new <see cref="NetApp.CapacityPoolData"/> instance for mocking. </returns>
240+
public static CapacityPoolData CapacityPoolData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary<string, string> tags = null, AzureLocation location = default, ETag? etag = null, Guid? poolId = null, long size = default, NetAppFileServiceLevel serviceLevel = default, string provisioningState = null, float? totalThroughputMibps = null, float? utilizedThroughputMibps = null, float? customThroughputMibps = null, CapacityPoolQosType? qosType = null, bool? isCoolAccessEnabled = null, CapacityPoolEncryptionType? encryptionType = null)
241+
{
242+
tags ??= new Dictionary<string, string>();
243+
244+
return ArmNetAppModelFactory.CapacityPoolData(
245+
id,
246+
name,
247+
resourceType,
248+
systemData,
249+
tags,
250+
location,
251+
etag,
252+
poolId,
253+
size,
254+
serviceLevel,
255+
provisioningState,
256+
totalThroughputMibps,
257+
utilizedThroughputMibps,
258+
customThroughputMibpsInt: customThroughputMibps.HasValue ? (int?)Convert.ToInt32(customThroughputMibps.Value) : null,
259+
qosType,
260+
isCoolAccessEnabled,
261+
encryptionType);
262+
}
263+
264+
/// <summary> Initializes a new instance of <see cref="Models.CapacityPoolPatch"/>. </summary>
265+
/// <param name="id"> The id. </param>
266+
/// <param name="name"> The name. </param>
267+
/// <param name="resourceType"> The resourceType. </param>
268+
/// <param name="systemData"> The systemData. </param>
269+
/// <param name="tags"> The tags. </param>
270+
/// <param name="location"> The location. </param>
271+
/// <param name="size"> Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776). </param>
272+
/// <param name="qosType"> The qos type of the pool. </param>
273+
/// <param name="isCoolAccessEnabled"> If enabled (true) the pool can contain cool Access enabled volumes. </param>
274+
/// <param name="customThroughputMibps"> Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level. </param>
275+
/// <returns> A new <see cref="Models.CapacityPoolPatch"/> instance for mocking. </returns>
276+
public static CapacityPoolPatch CapacityPoolPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary<string, string> tags = null, AzureLocation location = default, long? size = null, CapacityPoolQosType? qosType = null, bool? isCoolAccessEnabled = null, float? customThroughputMibps = null)
277+
{
278+
tags ??= new Dictionary<string, string>();
279+
280+
return CapacityPoolPatch(
281+
id,
282+
name,
283+
resourceType,
284+
systemData,
285+
tags,
286+
location,
287+
size,
288+
qosType,
289+
isCoolAccessEnabled,
290+
customThroughputMibpsInt: customThroughputMibps.HasValue ? (int?)Convert.ToInt32(customThroughputMibps.Value) : null);
291+
}
292+
293+
/// <summary> Initializes a new instance of <see cref="Models.NetAppVolumeBackupStatus"/>. </summary>
294+
/// <param name="isHealthy"> Backup health status. </param>
295+
/// <param name="relationshipStatus"> Status of the backup mirror relationship. </param>
296+
/// <param name="mirrorState"> The mirror state property describes the current status of data replication for a backup. It provides insight into whether the data is actively being mirrored, if the replication process has been paused, or if it has yet to be initialized. </param>
297+
/// <param name="unhealthyReason"> Reason for the unhealthy backup relationship. </param>
298+
/// <param name="errorMessage"> Displays error message if the backup is in an error state. </param>
299+
/// <param name="lastTransferSize"> Displays the last transfer size. </param>
300+
/// <param name="lastTransferType"> Displays the last transfer type. </param>
301+
/// <param name="totalTransferBytes"> Displays the total bytes transferred. </param>
302+
/// <param name="transferProgressBytes"> Displays the total number of bytes transferred for the ongoing operation. </param>
303+
/// <returns> A new <see cref="Models.NetAppVolumeBackupStatus"/> instance for mocking. </returns>
304+
public static NetAppVolumeBackupStatus NetAppVolumeBackupStatus(bool? isHealthy = null, NetAppRelationshipStatus? relationshipStatus = null, NetAppMirrorState? mirrorState = null, string unhealthyReason = null, string errorMessage = null, long? lastTransferSize = null, string lastTransferType = null, long? totalTransferBytes = null, long? transferProgressBytes = null)
305+
{
306+
VolumeBackupRelationshipStatus VolumeBackupRelationshipStatus = relationshipStatus.Value != null ? new VolumeBackupRelationshipStatus(relationshipStatus.ToString()) : null;
307+
return ArmNetAppModelFactory.NetAppVolumeBackupStatus(
308+
isHealthy,
309+
VolumeBackupRelationshipStatus,
310+
mirrorState,
311+
unhealthyReason,
312+
errorMessage,
313+
lastTransferSize,
314+
lastTransferType,
315+
totalTransferBytes,
316+
transferProgressBytes);
317+
}
318+
319+
/// <summary> Initializes a new instance of NetAppVolumeBackupStatus. </summary>
320+
/// <param name="isHealthy"> Backup health status. </param>
321+
/// <param name="relationshipStatus"> Status of the backup mirror relationship. </param>
322+
/// <param name="mirrorState"> The status of the backup. </param>
323+
/// <param name="unhealthyReason"> Reason for the unhealthy backup relationship. </param>
324+
/// <param name="errorMessage"> Displays error message if the backup is in an error state. </param>
325+
/// <param name="lastTransferSize"> Displays the last transfer size. </param>
326+
/// <param name="lastTransferType"> Displays the last transfer type. </param>
327+
/// <param name="totalTransferBytes"> Displays the total bytes transferred. </param>
328+
/// <returns> A new <see cref="T:Azure.ResourceManager.NetApp.Models.NetAppVolumeBackupStatus" /> instance for mocking. </returns>
329+
[EditorBrowsable(EditorBrowsableState.Never)]
330+
public static NetAppVolumeBackupStatus NetAppVolumeBackupStatus(bool? isHealthy, NetAppRelationshipStatus? relationshipStatus, NetAppMirrorState? mirrorState, string unhealthyReason, string errorMessage, long? lastTransferSize, string lastTransferType, long? totalTransferBytes)
331+
{
332+
return NetAppVolumeBackupStatus(isHealthy: isHealthy, relationshipStatus: relationshipStatus, mirrorState: mirrorState, unhealthyReason: unhealthyReason, errorMessage: errorMessage, lastTransferSize: lastTransferSize, lastTransferType: lastTransferType, totalTransferBytes: totalTransferBytes, transferProgressBytes: default);
333+
}
334+
335+
/// <summary> Initializes a new instance of <see cref="Models.NetAppRestoreStatus"/>. </summary>
336+
/// <param name="isHealthy"> Restore health status. </param>
337+
/// <param name="relationshipStatus"> Status of the restore SnapMirror relationship. </param>
338+
/// <param name="mirrorState"> The mirror state property describes the current status of data replication for a restore. It provides insight into whether the data is actively being mirrored, if the replication process has been paused, or if it has yet to be initialized. </param>
339+
/// <param name="unhealthyReason"> Reason for the unhealthy restore relationship. </param>
340+
/// <param name="errorMessage"> Displays error message if the restore is in an error state. </param>
341+
/// <param name="totalTransferBytes"> Displays the total bytes transferred. </param>
342+
/// <returns> A new <see cref="Models.NetAppRestoreStatus"/> instance for mocking. </returns>
343+
public static NetAppRestoreStatus NetAppRestoreStatus(bool? isHealthy = null, NetAppRelationshipStatus? relationshipStatus = null, NetAppMirrorState? mirrorState = null, string unhealthyReason = null, string errorMessage = null, long? totalTransferBytes = null)
344+
{
345+
return ArmNetAppModelFactory.NetAppRestoreStatus(
346+
isHealthy,
347+
relationshipStatus,
348+
mirrorState,
349+
unhealthyReason,
350+
errorMessage,
351+
totalTransferBytes);
352+
}
220353
}
221354
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
#nullable disable
5+
6+
using System;
7+
using System.Collections.Generic;
8+
using Azure.Core;
9+
using Azure.ResourceManager.Models;
10+
using Azure.ResourceManager.NetApp.Models;
11+
12+
namespace Azure.ResourceManager.NetApp
13+
{
14+
/// <summary>
15+
/// A class representing the CapacityPool data model.
16+
/// Capacity pool resource
17+
/// </summary>
18+
public partial class CapacityPoolData : TrackedResourceData
19+
{
20+
/// <summary> Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level. </summary>
21+
public float? CustomThroughputMibps
22+
{
23+
get
24+
{
25+
return CustomThroughputMibpsInt.HasValue ? (float?)CustomThroughputMibpsInt.Value : null;
26+
}
27+
set
28+
{
29+
CustomThroughputMibpsInt = value.HasValue ? (int)value.Value : null;
30+
}
31+
}
32+
}
33+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
#nullable disable
5+
6+
using System;
7+
using System.Collections.Generic;
8+
using Azure.Core;
9+
using Azure.ResourceManager.Models;
10+
11+
namespace Azure.ResourceManager.NetApp.Models
12+
{
13+
/// <summary> Capacity pool patch resource. </summary>
14+
public partial class CapacityPoolPatch : TrackedResourceData
15+
{
16+
/// <summary> Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level. </summary>
17+
public float? CustomThroughputMibps
18+
{
19+
get
20+
{
21+
return CustomThroughputMibpsInt.HasValue ? (float?)CustomThroughputMibpsInt.Value : null;
22+
}
23+
set
24+
{
25+
CustomThroughputMibpsInt = value.HasValue ? (int)value.Value : null;
26+
}
27+
}
28+
}
29+
}
Lines changed: 18 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,23 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
//#nullable disable
4+
#nullable disable
55

6-
//using System.Collections.Generic;
7-
//using System;
8-
//using System.ComponentModel;
6+
using System.Collections.Generic;
7+
using System;
8+
using System.ComponentModel;
99

10-
//namespace Azure.ResourceManager.NetApp.Models
11-
//{
12-
// /// <summary> Backup status. </summary>
13-
// [EditorBrowsable(EditorBrowsableState.Never)]
14-
// public partial class NetAppVolumeBackupStatus
15-
// {
16-
// /// <summary>
17-
// /// Keeps track of any properties unknown to the library.
18-
// /// <para>
19-
// /// To assign an object to the value of this property use <see cref="BinaryData.FromObjectAsJson{T}(T, System.Text.Json.JsonSerializerOptions?)"/>.
20-
// /// </para>
21-
// /// <para>
22-
// /// To assign an already formatted json string to this property use <see cref="BinaryData.FromString(string)"/>.
23-
// /// </para>
24-
// /// <para>
25-
// /// Examples:
26-
// /// <list type="bullet">
27-
// /// <item>
28-
// /// <term>BinaryData.FromObjectAsJson("foo")</term>
29-
// /// <description>Creates a payload of "foo".</description>
30-
// /// </item>
31-
// /// <item>
32-
// /// <term>BinaryData.FromString("\"foo\"")</term>
33-
// /// <description>Creates a payload of "foo".</description>
34-
// /// </item>
35-
// /// <item>
36-
// /// <term>BinaryData.FromObjectAsJson(new { key = "value" })</term>
37-
// /// <description>Creates a payload of { "key": "value" }.</description>
38-
// /// </item>
39-
// /// <item>
40-
// /// <term>BinaryData.FromString("{\"key\": \"value\"}")</term>
41-
// /// <description>Creates a payload of { "key": "value" }.</description>
42-
// /// </item>
43-
// /// </list>
44-
// /// </para>
45-
// /// </summary>
46-
// private IDictionary<string, BinaryData> _serializedAdditionalRawData;
47-
48-
// /// <summary> Initializes a new instance of <see cref="NetAppVolumeBackupStatus"/>. </summary>
49-
// internal NetAppVolumeBackupStatus()
50-
// {
51-
// }
52-
53-
// /// <summary> Initializes a new instance of <see cref="NetAppVolumeBackupStatus"/>. </summary>
54-
// /// <param name="isHealthy"> Backup health status. </param>
55-
// /// <param name="relationshipStatus"> Status of the backup mirror relationship. </param>
56-
// /// <param name="mirrorState"> The status of the backup. </param>
57-
// /// <param name="unhealthyReason"> Reason for the unhealthy backup relationship. </param>
58-
// /// <param name="errorMessage"> Displays error message if the backup is in an error state. </param>
59-
// /// <param name="lastTransferSize"> Displays the last transfer size. </param>
60-
// /// <param name="lastTransferType"> Displays the last transfer type. </param>
61-
// /// <param name="totalTransferBytes"> Displays the total bytes transferred. </param>
62-
// /// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
63-
// internal NetAppVolumeBackupStatus(bool? isHealthy, NetAppRelationshipStatus? relationshipStatus, NetAppMirrorState? mirrorState, string unhealthyReason, string errorMessage, long? lastTransferSize, string lastTransferType, long? totalTransferBytes, IDictionary<string, BinaryData> serializedAdditionalRawData)
64-
// {
65-
// IsHealthy = isHealthy;
66-
// RelationshipStatus = relationshipStatus;
67-
// MirrorState = mirrorState;
68-
// UnhealthyReason = unhealthyReason;
69-
// ErrorMessage = errorMessage;
70-
// LastTransferSize = lastTransferSize;
71-
// LastTransferType = lastTransferType;
72-
// TotalTransferBytes = totalTransferBytes;
73-
// _serializedAdditionalRawData = serializedAdditionalRawData;
74-
// }
75-
76-
// /// <summary> Backup health status. </summary>
77-
// public bool? IsHealthy { get; }
78-
// /// <summary> Status of the backup mirror relationship. </summary>
79-
// public NetAppRelationshipStatus? RelationshipStatus { get; }
80-
// /// <summary> The status of the backup. </summary>
81-
// public NetAppMirrorState? MirrorState { get; }
82-
// /// <summary> Reason for the unhealthy backup relationship. </summary>
83-
// public string UnhealthyReason { get; }
84-
// /// <summary> Displays error message if the backup is in an error state. </summary>
85-
// public string ErrorMessage { get; }
86-
// /// <summary> Displays the last transfer size. </summary>
87-
// public long? LastTransferSize { get; }
88-
// /// <summary> Displays the last transfer type. </summary>
89-
// public string LastTransferType { get; }
90-
// /// <summary> Displays the total bytes transferred. </summary>
91-
// public long? TotalTransferBytes { get; }
92-
// }
93-
//}
10+
namespace Azure.ResourceManager.NetApp.Models
11+
{
12+
/// <summary> Backup status. </summary>
13+
public partial class NetAppVolumeBackupStatus
14+
{
15+
/// <summary> Gets or sets the relationship status. </summary>
16+
public virtual NetAppRelationshipStatus? RelationshipStatus
17+
{
18+
get => VolumeBackupRelationshipStatus.HasValue
19+
? new NetAppRelationshipStatus(VolumeBackupRelationshipStatus.Value.ToString())
20+
: null;
21+
}
22+
}
23+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
#nullable disable
5+
6+
using System;
7+
using System.Collections.Generic;
8+
9+
namespace Azure.ResourceManager.NetApp.Models
10+
{
11+
/// <summary> Restore status. </summary>
12+
public partial class NetAppRestoreStatus
13+
{
14+
/// <summary> Gets or sets the relationship status. </summary>
15+
public virtual NetAppRelationshipStatus? RelationshipStatus
16+
{
17+
get => VolumeRestoreRelationshipStatus.HasValue
18+
? new NetAppRelationshipStatus(VolumeRestoreRelationshipStatus.Value.ToString())
19+
: null;
20+
}
21+
}
22+
}

0 commit comments

Comments
 (0)