コード例 #1
0
 /// <summary>
 /// Get Big Data pool
 /// </summary>
 /// <remarks>
 /// Get a Big Data pool.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace
 /// </param>
 /// <param name='bigDataPoolName'>
 /// Big Data pool name
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <BigDataPoolResourceInfo> GetAsync(this IBigDataPools operations, string resourceGroupName, string workspaceName, string bigDataPoolName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, workspaceName, bigDataPoolName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// Update a Big Data pool.
 /// </summary>
 /// <remarks>
 /// Patch a Big Data pool.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace
 /// </param>
 /// <param name='bigDataPoolName'>
 /// Big Data pool name
 /// </param>
 /// <param name='bigDataPoolPatchInfo'>
 /// The updated Big Data pool properties
 /// </param>
 public static BigDataPoolResourceInfo Update(this IBigDataPools operations, string resourceGroupName, string workspaceName, string bigDataPoolName, BigDataPoolPatchInfo bigDataPoolPatchInfo)
 {
     return(operations.UpdateAsync(resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolPatchInfo).GetAwaiter().GetResult());
 }
コード例 #3
0
 /// <summary>
 /// Delete a Big Data pool.
 /// </summary>
 /// <remarks>
 /// Delete a Big Data pool from the workspace.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace
 /// </param>
 /// <param name='bigDataPoolName'>
 /// Big Data pool name
 /// </param>
 public static object Delete(this IBigDataPools operations, string resourceGroupName, string workspaceName, string bigDataPoolName)
 {
     return(operations.DeleteAsync(resourceGroupName, workspaceName, bigDataPoolName).GetAwaiter().GetResult());
 }
コード例 #4
0
 /// <summary>
 /// Get Big Data pool
 /// </summary>
 /// <remarks>
 /// Get a Big Data pool.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace
 /// </param>
 /// <param name='bigDataPoolName'>
 /// Big Data pool name
 /// </param>
 public static BigDataPoolResourceInfo Get(this IBigDataPools operations, string resourceGroupName, string workspaceName, string bigDataPoolName)
 {
     return(operations.GetAsync(resourceGroupName, workspaceName, bigDataPoolName).GetAwaiter().GetResult());
 }
コード例 #5
0
 /// <summary>
 /// Create a Big Data pool.
 /// </summary>
 /// <remarks>
 /// Create a new Big Data pool.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace
 /// </param>
 /// <param name='bigDataPoolName'>
 /// Big Data pool name
 /// </param>
 /// <param name='bigDataPoolInfo'>
 /// The Big Data pool to create.
 /// </param>
 /// <param name='force'>
 /// Whether to stop any running jobs in the Big Data pool
 /// </param>
 public static BigDataPoolResourceInfo CreateOrUpdate(this IBigDataPools operations, string resourceGroupName, string workspaceName, string bigDataPoolName, BigDataPoolResourceInfo bigDataPoolInfo, bool?force = false)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolInfo, force).GetAwaiter().GetResult());
 }