Example #1
0
 /// <summary>
 /// Update a snapshot
 /// </summary>
 /// <remarks>
 /// Patch a snapshot
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// Snapshot object supplied in the body of the operation.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='accountName'>
 /// The name of the NetApp account
 /// </param>
 /// <param name='poolName'>
 /// The name of the capacity pool
 /// </param>
 /// <param name='volumeName'>
 /// The name of the volume
 /// </param>
 /// <param name='snapshotName'>
 /// The name of the snapshot
 /// </param>
 public static Snapshot BeginUpdate(this ISnapshotsOperations operations, object body, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName)
 {
     return(operations.BeginUpdateAsync(body, resourceGroupName, accountName, poolName, volumeName, snapshotName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Updates (patches) a snapshot.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='snapshotName'>
 /// The name of the snapshot that is being created. The name can't be changed
 /// after the snapshot is created. Supported characters for the name are a-z,
 /// A-Z, 0-9 and _. The max name length is 80 characters.
 /// </param>
 /// <param name='snapshot'>
 /// Snapshot object supplied in the body of the Patch snapshot operation.
 /// </param>
 public static Snapshot BeginUpdate(this ISnapshotsOperations operations, string resourceGroupName, string snapshotName, SnapshotUpdate snapshot)
 {
     return(operations.BeginUpdateAsync(resourceGroupName, snapshotName, snapshot).GetAwaiter().GetResult());
 }