Skip to content

Commit da62c79

Browse files
[NetAppFiles] Beta bump to 2025-07-01-preview (#52652)
Co-authored-by: Arcturus Zhang <[email protected]>
1 parent efaf2d1 commit da62c79

File tree

155 files changed

+9645
-801
lines changed

Some content is hidden

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

155 files changed

+9645
-801
lines changed

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

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

3-
## 1.13.0-beta.1 (Unreleased)
3+
## 1.13.0-beta.1 (2025-10-22)
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-07-01-preview'. Tag detail available at https://github.com/Azure/azure-rest-api-specs/blob/c2c7ee70dea80830fe9ea94aed2cec6182c4e9e6/specification/netapp/resource-manager/readme.md.
7+
- Added `Bucket` resource type
8+
- Added `GetNetAppResourceQuotaLimitsAccountsAsync` to `NetAppAccountResource`
129

1310
## 1.12.0 (2025-08-25)
1411

@@ -35,7 +32,7 @@
3532
- Added `DestinationReplications` to `NetAppReplicationObject`
3633
- Added support for ANF Migration Assistant with operations `PeerExternalCluster`, `AuthorizeExternalReplication`, `FinalizeExternalReplication`, `PerformReplicationTransfer` on `NetAppVolumeResource`
3734
- Added `IsLargeVolume` to `NetAppBackupData`
38-
- `IsRestoring` in `NetAppVolumeData` and `NetAppVolumeGroupVolume` is now a read only property indicating if volume is being resored
35+
- `IsRestoring` in `NetAppVolumeData` and `NetAppVolumeGroupVolume` is now a read only property indicating if volume is being resored
3936

4037

4138
## 1.9.0 (2025-02-21)
@@ -52,7 +49,7 @@
5249

5350
- Upgraded api-version tag from 'package-2024-03' to 'package-2024-07'. Tag detail available at https://github.com/Azure/azure-rest-api-specs/blob/f37b54b187bac95237c62478a10b94e9cff236f3/specification/netapp/resource-manager/readme.md.
5451
- Added support for external migration replication volumes with operations `PeerExternalClusterAsync`, `AuthorizeExternalReplicationAsync`, `PerformReplicationTransferAsync`, `FinalizeExternalReplicationAsync`
55-
- Added `RemotePath` to `ReplicationObject`
52+
- Added `RemotePath` to `ReplicationObject`
5653
- Added `AvailabilityZone` to `FilePathAvailabilityRequest`
5754
- Added read-only property `EffectiveNetworkFeatures` to `Volume` `VolumeProperties` and `VolumeGroupVolumeProperties`
5855
- Exposed `JsonModelWriteCore` for model serialization procedure.

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

Lines changed: 438 additions & 9 deletions
Large diffs are not rendered by default.

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

Lines changed: 438 additions & 9 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_60429ef26a"
5+
"Tag": "net/netapp/Azure.ResourceManager.NetApp_f4f184ecbe"
66
}

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

Lines changed: 39 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,9 @@ public static AvailabilityZoneMapping AvailabilityZoneMapping(string availabilit
104104
/// <param name="smbNonBrowsable"> Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume. </param>
105105
/// <returns> A new <see cref="Models.NetAppVolumePatch"/> instance for mocking. </returns>
106106
[EditorBrowsable(EditorBrowsableState.Never)]
107-
public static NetAppVolumePatch NetAppVolumePatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary<string, string> tags = null, AzureLocation location = default, NetAppFileServiceLevel? serviceLevel = null, long? usageThreshold = null, IEnumerable<NetAppVolumeExportPolicyRule> exportRules = null, float? throughputMibps = null, ResourceIdentifier snapshotPolicyId = null, bool? isDefaultQuotaEnabled = null, long? defaultUserQuotaInKiBs = null, long? defaultGroupQuotaInKiBs = null, string unixPermissions = null, bool? isCoolAccessEnabled = null, int? coolnessPeriod = null, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = null, bool? isSnapshotDirectoryVisible = null, SmbAccessBasedEnumeration? smbAccessBasedEnumeration = null, SmbNonBrowsable? smbNonBrowsable = null)
107+
public static NetAppVolumePatch NetAppVolumePatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary<string, string> tags, AzureLocation location, NetAppFileServiceLevel? serviceLevel, long? usageThreshold, IEnumerable<NetAppVolumeExportPolicyRule> exportRules, float? throughputMibps, ResourceIdentifier snapshotPolicyId = null, bool? isDefaultQuotaEnabled = null, long? defaultUserQuotaInKiBs = null, long? defaultGroupQuotaInKiBs = null, string unixPermissions = null, bool? isCoolAccessEnabled = null, int? coolnessPeriod = null, CoolAccessRetrievalPolicy? coolAccessRetrievalPolicy = null, bool? isSnapshotDirectoryVisible = null, SmbAccessBasedEnumeration? smbAccessBasedEnumeration = null, SmbNonBrowsable? smbNonBrowsable = null)
108108
{
109-
tags ??= new Dictionary<string, string>();
110-
exportRules ??= new List<NetAppVolumeExportPolicyRule>();
111-
112-
return new NetAppVolumePatch(
109+
return NetAppVolumePatch(
113110
id,
114111
name,
115112
resourceType,
@@ -118,7 +115,7 @@ public static NetAppVolumePatch NetAppVolumePatch(ResourceIdentifier id = null,
118115
location,
119116
serviceLevel,
120117
usageThreshold,
121-
exportRules != null ? new VolumePatchPropertiesExportPolicy(exportRules?.ToList(), serializedAdditionalRawData: null) : null,
118+
exportRules,
122119
null, //protocolTypes
123120
throughputMibps,
124121
snapshotPolicyId != null ? new NetAppVolumePatchDataProtection(null, new VolumeSnapshotProperties(snapshotPolicyId, serializedAdditionalRawData: null), serializedAdditionalRawData: null) : null,
@@ -132,8 +129,7 @@ public static NetAppVolumePatch NetAppVolumePatch(ResourceIdentifier id = null,
132129
null,
133130
isSnapshotDirectoryVisible,
134131
smbAccessBasedEnumeration,
135-
smbNonBrowsable,
136-
serializedAdditionalRawData: null);
132+
smbNonBrowsable);
137133
}
138134

139135
/// <summary> Initializes a new instance of <see cref="NetApp.NetAppBackupData"/>. </summary>
@@ -181,16 +177,45 @@ public static NetAppBackupData NetAppBackupData(ResourceIdentifier id, string na
181177
/// <param name="keyVaultResourceId"> The resource ID of KeyVault. </param>
182178
/// <param name="status"> Status of the KeyVault connection. </param>
183179
/// <returns> A new <see cref="Models.NetAppKeyVaultProperties"/> instance for mocking. </returns>
184-
public static NetAppKeyVaultProperties NetAppKeyVaultProperties(string keyVaultId = null, Uri keyVaultUri = null, string keyName = null, string keyVaultResourceId = null, NetAppKeyVaultStatus? status = null)
180+
public static NetAppKeyVaultProperties NetAppKeyVaultProperties(string keyVaultId, Uri keyVaultUri, string keyName, string keyVaultResourceId, NetAppKeyVaultStatus? status = null)
185181
{
186-
ResourceIdentifier _keyVaultResourceId = new ResourceIdentifier(keyVaultResourceId);
187-
return new NetAppKeyVaultProperties(
182+
return NetAppKeyVaultProperties(
188183
keyVaultId,
189184
keyVaultUri,
190185
keyName,
191-
_keyVaultResourceId,
192-
status,
193-
serializedAdditionalRawData: null);
186+
keyVaultResourceId != null ? new ResourceIdentifier(keyVaultResourceId) : null,
187+
status);
188+
}
189+
190+
/// <summary> Initializes a new instance of <see cref="T:Azure.ResourceManager.NetApp.Models.NetAppSubscriptionQuotaItem" />. </summary>
191+
/// <param name="id"> The id. </param>
192+
/// <param name="name"> The name. </param>
193+
/// <param name="resourceType"> The resourceType. </param>
194+
/// <param name="systemData"> The systemData. </param>
195+
/// <param name="current"> The current quota value. </param>
196+
/// <param name="default"> The default quota value. </param>
197+
/// <returns> A new <see cref="T:Azure.ResourceManager.NetApp.Models.NetAppSubscriptionQuotaItem" /> instance for mocking. </returns>
198+
[EditorBrowsable(EditorBrowsableState.Never)]
199+
public static NetAppSubscriptionQuotaItem NetAppSubscriptionQuotaItem(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, int? current, int? @default)
200+
{
201+
return NetAppSubscriptionQuotaItem(id: id, name: name, resourceType: resourceType, systemData: systemData, current: current, @default: @default, usage: null);
202+
}
203+
204+
/// <summary> Initializes a new instance of <see cref="Models.NetAppVolumeReplicationStatus"/>. </summary>
205+
/// <param name="isHealthy"> Replication health check. </param>
206+
/// <param name="relationshipStatus"> Status of the mirror relationship. </param>
207+
/// <param name="mirrorState"> The mirror state property describes the current status of data replication for a replication. 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>
208+
/// <param name="totalProgress"> The progress of the replication. </param>
209+
/// <param name="errorMessage"> Displays error message if the replication is in an error state. </param>
210+
/// <returns> A new <see cref="Models.NetAppVolumeReplicationStatus"/> instance for mocking. </returns>
211+
public static NetAppVolumeReplicationStatus NetAppVolumeReplicationStatus(bool? isHealthy, NetAppRelationshipStatus? relationshipStatus, NetAppMirrorState? mirrorState = null, string totalProgress = null, string errorMessage = null)
212+
{
213+
return NetAppVolumeReplicationStatus(
214+
isHealthy,
215+
relationshipStatus != null ? new VolumeReplicationRelationshipStatus(relationshipStatus.ToString()) : null,
216+
mirrorState,
217+
totalProgress,
218+
errorMessage);
194219
}
195220
}
196221
}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
#nullable disable
5+
6+
namespace Azure.ResourceManager.NetApp.Models
7+
{
8+
/// <summary>
9+
/// Gets the status of the VolumeQuotaRule at the time the operation was called.
10+
/// Serialized Name: ProvisioningState
11+
/// </summary>
12+
public enum NetAppProvisioningState
13+
{
14+
/// <summary>
15+
/// Accepted
16+
/// Serialized Name: ProvisioningState.Accepted
17+
/// </summary>
18+
Accepted,
19+
/// <summary>
20+
/// Creating
21+
/// Serialized Name: ProvisioningState.Creating
22+
/// </summary>
23+
Creating,
24+
/// <summary>
25+
/// Patching
26+
/// Serialized Name: ProvisioningState.Patching
27+
/// </summary>
28+
Patching,
29+
/// <summary>
30+
/// Deleting
31+
/// Serialized Name: ProvisioningState.Deleting
32+
/// </summary>
33+
Deleting,
34+
/// <summary>
35+
/// Moving
36+
/// Serialized Name: ProvisioningState.Moving
37+
/// </summary>
38+
Moving,
39+
/// <summary>
40+
/// Failed
41+
/// Serialized Name: ProvisioningState.Failed
42+
/// </summary>
43+
Failed,
44+
/// <summary>
45+
/// Succeeded
46+
/// Serialized Name: ProvisioningState.Succeeded
47+
/// </summary>
48+
Succeeded,
49+
50+
/// <summary>
51+
/// Canceled
52+
/// Serialized Name: ProvisioningState.Canceled
53+
/// </summary>
54+
Canceled,
55+
56+
/// <summary>
57+
/// Canceled
58+
/// Serialized Name: ProvisioningState.Provisioning
59+
/// </summary>
60+
Provisioning,
61+
62+
/// <summary>
63+
/// Moving
64+
/// Serialized Name: ProvisioningState.Updating
65+
/// </summary>
66+
Updating
67+
}
68+
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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.ComponentModel;
8+
9+
namespace Azure.ResourceManager.NetApp.Models
10+
{
11+
/// <summary> Status of the mirror relationship. </summary>
12+
public readonly partial struct NetAppRelationshipStatus : IEquatable<NetAppRelationshipStatus>
13+
{
14+
private readonly string _value;
15+
16+
/// <summary> Initializes a new instance of <see cref="NetAppRelationshipStatus"/>. </summary>
17+
/// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception>
18+
public NetAppRelationshipStatus(string value)
19+
{
20+
_value = value ?? throw new ArgumentNullException(nameof(value));
21+
}
22+
23+
private const string IdleValue = "Idle";
24+
private const string TransferringValue = "Transferring";
25+
private const string FailedValue = "Failed";
26+
private const string UnknownValue = "Unknown";
27+
28+
/// <summary> Idle. </summary>
29+
public static NetAppRelationshipStatus Idle { get; } = new NetAppRelationshipStatus(IdleValue);
30+
/// <summary> Transferring. </summary>
31+
public static NetAppRelationshipStatus Transferring { get; } = new NetAppRelationshipStatus(TransferringValue);
32+
/// <summary> Failed. </summary>
33+
public static NetAppRelationshipStatus Failed { get; } = new NetAppRelationshipStatus(FailedValue);
34+
/// <summary> Unknown. </summary>
35+
public static NetAppRelationshipStatus Unknown { get; } = new NetAppRelationshipStatus(UnknownValue);
36+
/// <summary> Determines if two <see cref="NetAppRelationshipStatus"/> values are the same. </summary>
37+
public static bool operator ==(NetAppRelationshipStatus left, NetAppRelationshipStatus right) => left.Equals(right);
38+
/// <summary> Determines if two <see cref="NetAppRelationshipStatus"/> values are not the same. </summary>
39+
public static bool operator !=(NetAppRelationshipStatus left, NetAppRelationshipStatus right) => !left.Equals(right);
40+
/// <summary> Converts a <see cref="string"/> to a <see cref="NetAppRelationshipStatus"/>. </summary>
41+
public static implicit operator NetAppRelationshipStatus(string value) => new NetAppRelationshipStatus(value);
42+
43+
/// <inheritdoc />
44+
[EditorBrowsable(EditorBrowsableState.Never)]
45+
public override bool Equals(object obj) => obj is NetAppRelationshipStatus other && Equals(other);
46+
/// <inheritdoc />
47+
public bool Equals(NetAppRelationshipStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
48+
49+
/// <inheritdoc />
50+
[EditorBrowsable(EditorBrowsableState.Never)]
51+
public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0;
52+
/// <inheritdoc />
53+
public override string ToString() => _value;
54+
}
55+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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 System.ComponentModel;
9+
10+
namespace Azure.ResourceManager.NetApp.Models
11+
{
12+
/// <summary>
13+
/// Replication status
14+
/// </summary>
15+
public partial class NetAppVolumeReplicationStatus
16+
{
17+
/// <summary> Status of the mirror relationship. </summary>
18+
[EditorBrowsable(EditorBrowsableState.Never)]
19+
public NetAppRelationshipStatus? RelationshipStatus { get; }
20+
}
21+
}

0 commit comments

Comments
 (0)