/// <summary> /// Delete a snapshot /// </summary> /// <remarks> /// Delete snapshot /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </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 void Delete(this ISnapshotsOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName) { operations.DeleteAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName).GetAwaiter().GetResult(); }
/// <summary> /// Deletes 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> public static OperationStatusResponse Delete(this ISnapshotsOperations operations, string resourceGroupName, string snapshotName) { return(operations.DeleteAsync(resourceGroupName, snapshotName).GetAwaiter().GetResult()); }