Skip to content

Commit 7a91fe5

Browse files
audunnNickcandy
andauthored
[NetAppFiles] Anf 42834 net app files 2024 07 01 (#26346)
* update to 2024-07-01 * update to 2024-07-01 * update recordings and tests * changelog * regen sdk updated swagger * singular parameter name * add checkavailability * suppress example check * remove suppress example check * suppress example check 2 * remove suppress example check * Update ChangeLog.md --------- Co-authored-by: NanxiangLiu <[email protected]>
1 parent 8f791ba commit 7a91fe5

File tree

172 files changed

+61306
-24635
lines changed

Some content is hidden

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

172 files changed

+61306
-24635
lines changed

src/NetAppFiles/NetAppFiles.Management.Sdk/Generated/INetAppResourceOperations.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ public partial interface INetAppResourceOperations
6161
/// The Azure Resource URI for a delegated subnet. Must have the delegation
6262
/// Microsoft.NetApp/volumes
6363
/// </param>
64+
/// <param name='availabilityZone'>
65+
/// The Azure Resource logical availability zone which is used within zone
66+
/// mapping lookup for the subscription and region. The lookup will retrieve
67+
/// the physical zone where volume is placed.
68+
/// </param>
6469
/// <param name='customHeaders'>
6570
/// The headers that will be added to request.
6671
/// </param>
@@ -73,7 +78,7 @@ public partial interface INetAppResourceOperations
7378
/// <exception cref="Microsoft.Rest.SerializationException">
7479
/// Thrown when unable to deserialize the response
7580
/// </exception>
76-
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<CheckAvailabilityResponse>> CheckFilePathAvailabilityWithHttpMessagesAsync(string location, string name, string subnetId, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
81+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<CheckAvailabilityResponse>> CheckFilePathAvailabilityWithHttpMessagesAsync(string location, string name, string subnetId, string availabilityZone = default(string), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
7782

7883
/// <summary>
7984
/// Check if a quota is available.

src/NetAppFiles/NetAppFiles.Management.Sdk/Generated/IVolumesOperations.cs

Lines changed: 262 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,137 @@ public partial interface IVolumesOperations
593593
/// </exception>
594594
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> ReInitializeReplicationWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
595595

596+
/// <summary>
597+
/// Starts peering the external cluster for this migration volume
598+
/// </summary>
599+
/// <remarks>
600+
/// Starts peering the external cluster for this migration volume
601+
/// </remarks>
602+
/// <param name='resourceGroupName'>
603+
/// The name of the resource group. The name is case insensitive.
604+
/// </param>
605+
/// <param name='accountName'>
606+
/// The name of the NetApp account
607+
/// </param>
608+
/// <param name='poolName'>
609+
/// The name of the capacity pool
610+
/// </param>
611+
/// <param name='volumeName'>
612+
/// The name of the volume
613+
/// </param>
614+
/// <param name='body'>
615+
/// Cluster peer request object supplied in the body of the operation.
616+
/// </param>
617+
/// <param name='customHeaders'>
618+
/// The headers that will be added to request.
619+
/// </param>
620+
/// <param name='cancellationToken'>
621+
/// The cancellation token.
622+
/// </param>
623+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
624+
/// Thrown when the operation returned an invalid status code
625+
/// </exception>
626+
/// <exception cref="Microsoft.Rest.SerializationException">
627+
/// Thrown when unable to deserialize the response
628+
/// </exception>
629+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<ClusterPeerCommandResponse,VolumesPeerExternalClusterHeaders>> PeerExternalClusterWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, PeerClusterForVolumeMigrationRequest body, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
630+
631+
/// <summary>
632+
/// Starts SVM peering and returns a command to be run on the external ONTAP to
633+
/// accept it. Once the SVM have been peered a SnapMirror will be created
634+
/// </summary>
635+
/// <remarks>
636+
/// Starts SVM peering and returns a command to be run on the external ONTAP to
637+
/// accept it. Once the SVM have been peered a SnapMirror will be created
638+
/// </remarks>
639+
/// <param name='resourceGroupName'>
640+
/// The name of the resource group. The name is case insensitive.
641+
/// </param>
642+
/// <param name='accountName'>
643+
/// The name of the NetApp account
644+
/// </param>
645+
/// <param name='poolName'>
646+
/// The name of the capacity pool
647+
/// </param>
648+
/// <param name='volumeName'>
649+
/// The name of the volume
650+
/// </param>
651+
/// <param name='customHeaders'>
652+
/// The headers that will be added to request.
653+
/// </param>
654+
/// <param name='cancellationToken'>
655+
/// The cancellation token.
656+
/// </param>
657+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
658+
/// Thrown when the operation returned an invalid status code
659+
/// </exception>
660+
/// <exception cref="Microsoft.Rest.SerializationException">
661+
/// Thrown when unable to deserialize the response
662+
/// </exception>
663+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<SvmPeerCommandResponse,VolumesAuthorizeExternalReplicationHeaders>> AuthorizeExternalReplicationWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
664+
665+
/// <summary>
666+
/// Finalizes the migration of an external volume by releasing the replication
667+
/// and breaking the external cluster peering if no other migration is active.
668+
/// </summary>
669+
/// <remarks>
670+
/// Finalizes the migration of an external volume by releasing the replication
671+
/// and breaking the external cluster peering if no other migration is active.
672+
/// </remarks>
673+
/// <param name='resourceGroupName'>
674+
/// The name of the resource group. The name is case insensitive.
675+
/// </param>
676+
/// <param name='accountName'>
677+
/// The name of the NetApp account
678+
/// </param>
679+
/// <param name='poolName'>
680+
/// The name of the capacity pool
681+
/// </param>
682+
/// <param name='volumeName'>
683+
/// The name of the volume
684+
/// </param>
685+
/// <param name='customHeaders'>
686+
/// The headers that will be added to request.
687+
/// </param>
688+
/// <param name='cancellationToken'>
689+
/// The cancellation token.
690+
/// </param>
691+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
692+
/// Thrown when the operation returned an invalid status code
693+
/// </exception>
694+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<VolumesFinalizeExternalReplicationHeaders>> FinalizeExternalReplicationWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
695+
696+
/// <summary>
697+
/// Performs an adhoc replication transfer on a volume with volumeType
698+
/// Migration
699+
/// </summary>
700+
/// <remarks>
701+
/// Performs an adhoc replication transfer on a volume with volumeType
702+
/// Migration
703+
/// </remarks>
704+
/// <param name='resourceGroupName'>
705+
/// The name of the resource group. The name is case insensitive.
706+
/// </param>
707+
/// <param name='accountName'>
708+
/// The name of the NetApp account
709+
/// </param>
710+
/// <param name='poolName'>
711+
/// The name of the capacity pool
712+
/// </param>
713+
/// <param name='volumeName'>
714+
/// The name of the volume
715+
/// </param>
716+
/// <param name='customHeaders'>
717+
/// The headers that will be added to request.
718+
/// </param>
719+
/// <param name='cancellationToken'>
720+
/// The cancellation token.
721+
/// </param>
722+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
723+
/// Thrown when the operation returned an invalid status code
724+
/// </exception>
725+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<VolumesPerformReplicationTransferHeaders>> PerformReplicationTransferWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
726+
596727
/// <summary>
597728
/// Moves volume to another pool
598729
/// </summary>
@@ -1172,6 +1303,137 @@ public partial interface IVolumesOperations
11721303
/// </exception>
11731304
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> BeginReInitializeReplicationWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
11741305

1306+
/// <summary>
1307+
/// Starts peering the external cluster for this migration volume
1308+
/// </summary>
1309+
/// <remarks>
1310+
/// Starts peering the external cluster for this migration volume
1311+
/// </remarks>
1312+
/// <param name='resourceGroupName'>
1313+
/// The name of the resource group. The name is case insensitive.
1314+
/// </param>
1315+
/// <param name='accountName'>
1316+
/// The name of the NetApp account
1317+
/// </param>
1318+
/// <param name='poolName'>
1319+
/// The name of the capacity pool
1320+
/// </param>
1321+
/// <param name='volumeName'>
1322+
/// The name of the volume
1323+
/// </param>
1324+
/// <param name='body'>
1325+
/// Cluster peer request object supplied in the body of the operation.
1326+
/// </param>
1327+
/// <param name='customHeaders'>
1328+
/// The headers that will be added to request.
1329+
/// </param>
1330+
/// <param name='cancellationToken'>
1331+
/// The cancellation token.
1332+
/// </param>
1333+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
1334+
/// Thrown when the operation returned an invalid status code
1335+
/// </exception>
1336+
/// <exception cref="Microsoft.Rest.SerializationException">
1337+
/// Thrown when unable to deserialize the response
1338+
/// </exception>
1339+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<ClusterPeerCommandResponse,VolumesPeerExternalClusterHeaders>> BeginPeerExternalClusterWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, PeerClusterForVolumeMigrationRequest body, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
1340+
1341+
/// <summary>
1342+
/// Starts SVM peering and returns a command to be run on the external ONTAP to
1343+
/// accept it. Once the SVM have been peered a SnapMirror will be created
1344+
/// </summary>
1345+
/// <remarks>
1346+
/// Starts SVM peering and returns a command to be run on the external ONTAP to
1347+
/// accept it. Once the SVM have been peered a SnapMirror will be created
1348+
/// </remarks>
1349+
/// <param name='resourceGroupName'>
1350+
/// The name of the resource group. The name is case insensitive.
1351+
/// </param>
1352+
/// <param name='accountName'>
1353+
/// The name of the NetApp account
1354+
/// </param>
1355+
/// <param name='poolName'>
1356+
/// The name of the capacity pool
1357+
/// </param>
1358+
/// <param name='volumeName'>
1359+
/// The name of the volume
1360+
/// </param>
1361+
/// <param name='customHeaders'>
1362+
/// The headers that will be added to request.
1363+
/// </param>
1364+
/// <param name='cancellationToken'>
1365+
/// The cancellation token.
1366+
/// </param>
1367+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
1368+
/// Thrown when the operation returned an invalid status code
1369+
/// </exception>
1370+
/// <exception cref="Microsoft.Rest.SerializationException">
1371+
/// Thrown when unable to deserialize the response
1372+
/// </exception>
1373+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<SvmPeerCommandResponse,VolumesAuthorizeExternalReplicationHeaders>> BeginAuthorizeExternalReplicationWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
1374+
1375+
/// <summary>
1376+
/// Finalizes the migration of an external volume by releasing the replication
1377+
/// and breaking the external cluster peering if no other migration is active.
1378+
/// </summary>
1379+
/// <remarks>
1380+
/// Finalizes the migration of an external volume by releasing the replication
1381+
/// and breaking the external cluster peering if no other migration is active.
1382+
/// </remarks>
1383+
/// <param name='resourceGroupName'>
1384+
/// The name of the resource group. The name is case insensitive.
1385+
/// </param>
1386+
/// <param name='accountName'>
1387+
/// The name of the NetApp account
1388+
/// </param>
1389+
/// <param name='poolName'>
1390+
/// The name of the capacity pool
1391+
/// </param>
1392+
/// <param name='volumeName'>
1393+
/// The name of the volume
1394+
/// </param>
1395+
/// <param name='customHeaders'>
1396+
/// The headers that will be added to request.
1397+
/// </param>
1398+
/// <param name='cancellationToken'>
1399+
/// The cancellation token.
1400+
/// </param>
1401+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
1402+
/// Thrown when the operation returned an invalid status code
1403+
/// </exception>
1404+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<VolumesFinalizeExternalReplicationHeaders>> BeginFinalizeExternalReplicationWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
1405+
1406+
/// <summary>
1407+
/// Performs an adhoc replication transfer on a volume with volumeType
1408+
/// Migration
1409+
/// </summary>
1410+
/// <remarks>
1411+
/// Performs an adhoc replication transfer on a volume with volumeType
1412+
/// Migration
1413+
/// </remarks>
1414+
/// <param name='resourceGroupName'>
1415+
/// The name of the resource group. The name is case insensitive.
1416+
/// </param>
1417+
/// <param name='accountName'>
1418+
/// The name of the NetApp account
1419+
/// </param>
1420+
/// <param name='poolName'>
1421+
/// The name of the capacity pool
1422+
/// </param>
1423+
/// <param name='volumeName'>
1424+
/// The name of the volume
1425+
/// </param>
1426+
/// <param name='customHeaders'>
1427+
/// The headers that will be added to request.
1428+
/// </param>
1429+
/// <param name='cancellationToken'>
1430+
/// The cancellation token.
1431+
/// </param>
1432+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
1433+
/// Thrown when the operation returned an invalid status code
1434+
/// </exception>
1435+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<VolumesPerformReplicationTransferHeaders>> BeginPerformReplicationTransferWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
1436+
11751437
/// <summary>
11761438
/// Moves volume to another pool
11771439
/// </summary>

src/NetAppFiles/NetAppFiles.Management.Sdk/Generated/Models/ActiveDirectory.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public ActiveDirectory()
6666
/// list of unique usernames without domain specifier
6767
/// </param>
6868

69-
/// <param name="kdcIP">kdc server IP addresses for the active directory machine. This optional
69+
/// <param name="kdcIP">kdc server IP address for the active directory machine. This optional
7070
/// parameter is used only while creating kerberos volume.
7171
/// </param>
7272

@@ -224,7 +224,7 @@ public ActiveDirectory()
224224
public System.Collections.Generic.IList<string> Administrators {get; set; }
225225

226226
/// <summary>
227-
/// Gets or sets kdc server IP addresses for the active directory machine. This
227+
/// Gets or sets kdc server IP address for the active directory machine. This
228228
/// optional parameter is used only while creating kerberos volume.
229229
/// </summary>
230230
[Newtonsoft.Json.JsonProperty(PropertyName = "kdcIP")]
@@ -334,9 +334,9 @@ public virtual void Validate()
334334

335335
if (this.KdcIP != null)
336336
{
337-
if (!System.Text.RegularExpressions.Regex.IsMatch(this.KdcIP, "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$"))
337+
if (!System.Text.RegularExpressions.Regex.IsMatch(this.KdcIP, "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$"))
338338
{
339-
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "KdcIP", "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$");
339+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "KdcIP", "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$");
340340
}
341341
}
342342
if (this.AdName != null)

0 commit comments

Comments
 (0)