Skip to content

Commit 973d272

Browse files
authored
[NetApp] regen 2024-07-01 from swagger for bugfix (Azure#46841)
* regen from swagger * export api * update recordings and tests * test * test
1 parent 15c3e59 commit 973d272

File tree

8 files changed

+28
-22
lines changed

8 files changed

+28
-22
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1755,6 +1755,8 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer
17551755
}
17561756
public partial class NetAppReplicationObject : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.NetApp.Models.NetAppReplicationObject>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.NetApp.Models.NetAppReplicationObject>
17571757
{
1758+
public NetAppReplicationObject() { }
1759+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
17581760
public NetAppReplicationObject(Azure.Core.ResourceIdentifier remoteVolumeResourceId) { }
17591761
public Azure.ResourceManager.NetApp.Models.NetAppEndpointType? EndpointType { get { throw null; } set { } }
17601762
public Azure.ResourceManager.NetApp.Models.RemotePath RemotePath { get { throw null; } set { } }

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_bd00fdfca2"
5+
"Tag": "net/netapp/Azure.ResourceManager.NetApp_9bec7369db"
66
}

sdk/netapp/Azure.ResourceManager.NetApp/src/Custom/Models/NetAppReplicationObject.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,16 @@ public partial class NetAppReplicationObject
1515
/// <summary> Id. </summary>
1616
[EditorBrowsable(EditorBrowsableState.Never)]
1717
public string ReplicationId { get; set; }
18+
19+
/// <param name="remoteVolumeResourceId">
20+
/// The resource ID of the remote volume.
21+
/// Serialized Name: ReplicationObject.remoteVolumeResourceId
22+
/// </param>
23+
/// <exception cref="ArgumentNullException"> <paramref name="remoteVolumeResourceId"/> is null. </exception>
24+
[EditorBrowsable(EditorBrowsableState.Never)]
25+
public NetAppReplicationObject(ResourceIdentifier remoteVolumeResourceId)
26+
{
27+
RemoteVolumeResourceId = remoteVolumeResourceId;
28+
}
1829
}
1930
}

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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppReplicationObject.Serialization.cs

Lines changed: 9 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/netapp/Azure.ResourceManager.NetApp/src/Generated/Models/NetAppReplicationObject.cs

Lines changed: 3 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/netapp/Azure.ResourceManager.NetApp/src/autorest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ azure-arm: true
88
csharp: true
99
library-name: NetApp
1010
namespace: Azure.ResourceManager.NetApp
11-
require: https://github.com/Azure/azure-rest-api-specs/blob/f37b54b187bac95237c62478a10b94e9cff236f3/specification/netapp/resource-manager/readme.md
11+
require: https://github.com/Azure/azure-rest-api-specs/blob/92e45eacb58f010293254e88a2bf1160c9a25478/specification/netapp/resource-manager/readme.md
1212
tag: package-2024-07
1313
output-folder: $(this-folder)/Generated
1414
clear-output-folder: true

sdk/netapp/Azure.ResourceManager.NetApp/tests/ResourceTests/VolumeTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,6 @@ public async Task CreateExternalMigrationVolumeNoPeering()
569569
//Update the remote volume with dataProtection for Migration (external replication)
570570
NetAppReplicationObject replication = new()
571571
{
572-
EndpointType = NetAppEndpointType.Destination,
573572
RemotePath = new RemotePath() { ExternalHostName = "hostname1", ServerName = "server1", VolumeName = "volume1" }
574573
};
575574
NetAppVolumeDataProtection dataProtectionProperties = new NetAppVolumeDataProtection() { Replication = replication };

0 commit comments

Comments
 (0)