Beispiel #1
0
 /// <summary>
 /// Get DataSet in a share.
 /// </summary>
 /// <remarks>
 /// Get a DataSet in a share
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 /// <param name='accountName'>
 /// The name of the share account.
 /// </param>
 /// <param name='shareName'>
 /// The name of the share.
 /// </param>
 /// <param name='dataSetName'>
 /// The name of the dataSet.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <DataSet> GetAsync(this IDataSetsOperations operations, string resourceGroupName, string accountName, string shareName, string dataSetName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, shareName, dataSetName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Beispiel #2
0
 /// <summary>
 /// List DataSets in a share.
 /// </summary>
 /// <remarks>
 /// List DataSets in a share
 /// </remarks>
 /// <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>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <DataSet> > ListByShareNextAsync(this IDataSetsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByShareNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Beispiel #3
0
 /// <summary>
 /// List DataSets in a share.
 /// </summary>
 /// <remarks>
 /// List DataSets in a share
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 /// <param name='accountName'>
 /// The name of the share account.
 /// </param>
 /// <param name='shareName'>
 /// The name of the share.
 /// </param>
 /// <param name='skipToken'>
 /// continuation token
 /// </param>
 /// <param name='filter'>
 /// Filters the results using OData syntax.
 /// </param>
 /// <param name='orderby'>
 /// Sorts the results using OData syntax.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <DataSet> > ListByShareAsync(this IDataSetsOperations operations, string resourceGroupName, string accountName, string shareName, string skipToken = default(string), string filter = default(string), string orderby = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByShareWithHttpMessagesAsync(resourceGroupName, accountName, shareName, skipToken, filter, orderby, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Beispiel #4
0
 /// <summary>
 /// Get DataSet in a share.
 /// </summary>
 /// <remarks>
 /// Get a DataSet in a share
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 /// <param name='accountName'>
 /// The name of the share account.
 /// </param>
 /// <param name='shareName'>
 /// The name of the share.
 /// </param>
 /// <param name='dataSetName'>
 /// The name of the dataSet.
 /// </param>
 public static DataSet Get(this IDataSetsOperations operations, string resourceGroupName, string accountName, string shareName, string dataSetName)
 {
     return(operations.GetAsync(resourceGroupName, accountName, shareName, dataSetName).GetAwaiter().GetResult());
 }
Beispiel #5
0
 /// <summary>
 /// List DataSets in a share.
 /// </summary>
 /// <remarks>
 /// List DataSets in a share
 /// </remarks>
 /// <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 <DataSet> ListByShareNext(this IDataSetsOperations operations, string nextPageLink)
 {
     return(operations.ListByShareNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Beispiel #6
0
 /// <summary>
 /// Delete DataSet in a share.
 /// </summary>
 /// <remarks>
 /// Delete a DataSet in a share
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 /// <param name='accountName'>
 /// The name of the share account.
 /// </param>
 /// <param name='shareName'>
 /// The name of the share.
 /// </param>
 /// <param name='dataSetName'>
 /// The name of the dataSet.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this IDataSetsOperations operations, string resourceGroupName, string accountName, string shareName, string dataSetName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, shareName, dataSetName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Beispiel #7
0
 /// <summary>
 /// Delete DataSet in a share.
 /// </summary>
 /// <remarks>
 /// Delete a DataSet in a share
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 /// <param name='accountName'>
 /// The name of the share account.
 /// </param>
 /// <param name='shareName'>
 /// The name of the share.
 /// </param>
 /// <param name='dataSetName'>
 /// The name of the dataSet.
 /// </param>
 public static void BeginDelete(this IDataSetsOperations operations, string resourceGroupName, string accountName, string shareName, string dataSetName)
 {
     operations.BeginDeleteAsync(resourceGroupName, accountName, shareName, dataSetName).GetAwaiter().GetResult();
 }
Beispiel #8
0
 /// <summary>
 /// List DataSets in a share.
 /// </summary>
 /// <remarks>
 /// List DataSets in a share
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 /// <param name='accountName'>
 /// The name of the share account.
 /// </param>
 /// <param name='shareName'>
 /// The name of the share.
 /// </param>
 /// <param name='skipToken'>
 /// continuation token
 /// </param>
 /// <param name='filter'>
 /// Filters the results using OData syntax.
 /// </param>
 /// <param name='orderby'>
 /// Sorts the results using OData syntax.
 /// </param>
 public static IPage <DataSet> ListByShare(this IDataSetsOperations operations, string resourceGroupName, string accountName, string shareName, string skipToken = default(string), string filter = default(string), string orderby = default(string))
 {
     return(operations.ListByShareAsync(resourceGroupName, accountName, shareName, skipToken, filter, orderby).GetAwaiter().GetResult());
 }