Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ namespace Microsoft.AzureStack.Management.Fabric.Admin
using System.Threading.Tasks;

/// <summary>
/// Extension methods for StorageSubSystemsOperations.
/// Extension methods for ApplicationOperationResultsOperations.
/// </summary>
public static partial class StorageSubSystemsOperationsExtensions
public static partial class ApplicationOperationResultsOperationsExtensions
{
/// <summary>
/// Return the requested storage subsystem.
/// Returns the status of an application operation.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -34,19 +34,16 @@ public static partial class StorageSubSystemsOperationsExtensions
/// <param name='location'>
/// Location of the resource.
/// </param>
/// <param name='scaleUnit'>
/// Name of the scale units.
/// <param name='operation'>
/// Operation identifier.
/// </param>
/// <param name='storageSubSystem'>
/// Name of the storage system.
/// </param>
public static StorageSubSystem Get(this IStorageSubSystemsOperations operations, string resourceGroupName, string location, string scaleUnit, string storageSubSystem)
public static ApplicationOperationResult Get(this IApplicationOperationResultsOperations operations, string resourceGroupName, string location, string operation)
{
return operations.GetAsync(resourceGroupName, location, scaleUnit, storageSubSystem).GetAwaiter().GetResult();
return operations.GetAsync(resourceGroupName, location, operation).GetAwaiter().GetResult();
}

/// <summary>
/// Return the requested storage subsystem.
/// Returns the status of an application operation.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -57,25 +54,22 @@ public static StorageSubSystem Get(this IStorageSubSystemsOperations operations,
/// <param name='location'>
/// Location of the resource.
/// </param>
/// <param name='scaleUnit'>
/// Name of the scale units.
/// </param>
/// <param name='storageSubSystem'>
/// Name of the storage system.
/// <param name='operation'>
/// Operation identifier.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<StorageSubSystem> GetAsync(this IStorageSubSystemsOperations operations, string resourceGroupName, string location, string scaleUnit, string storageSubSystem, CancellationToken cancellationToken = default(CancellationToken))
public static async Task<ApplicationOperationResult> GetAsync(this IApplicationOperationResultsOperations operations, string resourceGroupName, string location, string operation, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, location, scaleUnit, storageSubSystem, null, cancellationToken).ConfigureAwait(false))
using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, location, operation, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

/// <summary>
/// Returns a list of all storage subsystems for a location.
/// Returns a list of all application operation results at a location.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -86,19 +80,16 @@ public static StorageSubSystem Get(this IStorageSubSystemsOperations operations,
/// <param name='location'>
/// Location of the resource.
/// </param>
/// <param name='scaleUnit'>
/// Name of the scale units.
/// </param>
/// <param name='odataQuery'>
/// OData parameters to apply to the operation.
/// </param>
public static IPage<StorageSubSystem> List(this IStorageSubSystemsOperations operations, string resourceGroupName, string location, string scaleUnit, ODataQuery<StorageSubSystem> odataQuery = default(ODataQuery<StorageSubSystem>))
public static IPage<ApplicationOperationResult> List(this IApplicationOperationResultsOperations operations, string resourceGroupName, string location, ODataQuery<ApplicationOperationResult> odataQuery = default(ODataQuery<ApplicationOperationResult>))
{
return operations.ListAsync(resourceGroupName, location, scaleUnit, odataQuery).GetAwaiter().GetResult();
return operations.ListAsync(resourceGroupName, location, odataQuery).GetAwaiter().GetResult();
}

/// <summary>
/// Returns a list of all storage subsystems for a location.
/// Returns a list of all application operation results at a location.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -109,39 +100,36 @@ public static StorageSubSystem Get(this IStorageSubSystemsOperations operations,
/// <param name='location'>
/// Location of the resource.
/// </param>
/// <param name='scaleUnit'>
/// Name of the scale units.
/// </param>
/// <param name='odataQuery'>
/// OData parameters to apply to the operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<StorageSubSystem>> ListAsync(this IStorageSubSystemsOperations operations, string resourceGroupName, string location, string scaleUnit, ODataQuery<StorageSubSystem> odataQuery = default(ODataQuery<StorageSubSystem>), CancellationToken cancellationToken = default(CancellationToken))
public static async Task<IPage<ApplicationOperationResult>> ListAsync(this IApplicationOperationResultsOperations operations, string resourceGroupName, string location, ODataQuery<ApplicationOperationResult> odataQuery = default(ODataQuery<ApplicationOperationResult>), CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, location, scaleUnit, odataQuery, null, cancellationToken).ConfigureAwait(false))
using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, location, odataQuery, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

/// <summary>
/// Returns a list of all storage subsystems for a location.
/// Returns a list of all application operation results at a location.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<StorageSubSystem> ListNext(this IStorageSubSystemsOperations operations, string nextPageLink)
public static IPage<ApplicationOperationResult> ListNext(this IApplicationOperationResultsOperations operations, string nextPageLink)
{
return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult();
}

/// <summary>
/// Returns a list of all storage subsystems for a location.
/// Returns a list of all application operation results at a location.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -152,7 +140,7 @@ public static IPage<StorageSubSystem> ListNext(this IStorageSubSystemsOperations
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<StorageSubSystem>> ListNextAsync(this IStorageSubSystemsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
public static async Task<IPage<ApplicationOperationResult>> ListNextAsync(this IApplicationOperationResultsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
Expand Down
Loading