Ejemplo n.º 1
0
 /// <summary>
 /// Updates the specified compute policy.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the Azure resource group.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Data Lake Analytics account.
 /// </param>
 /// <param name='computePolicyName'>
 /// The name of the compute policy to update.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to update the compute policy.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ComputePolicy> UpdateAsync(this IComputePoliciesOperations operations, string resourceGroupName, string accountName, string computePolicyName, UpdateComputePolicyParameters parameters = default(UpdateComputePolicyParameters), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, accountName, computePolicyName, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Lists the Data Lake Analytics compute policies within the specified Data
 /// Lake Analytics account. An account supports, at most, 50 policies
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the Azure resource group.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Data Lake Analytics account.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <ComputePolicy> > ListByAccountAsync(this IComputePoliciesOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByAccountWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Creates or updates the specified compute policy. During update, the compute
 /// policy with the specified name will be replaced with this new compute
 /// policy. An account supports, at most, 50 policies
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the Azure resource group.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Data Lake Analytics account.
 /// </param>
 /// <param name='computePolicyName'>
 /// The name of the compute policy to create or update.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to create or update the compute policy. The max degree
 /// of parallelism per job property, min priority per job property, or both
 /// must be present.
 /// </param>
 public static ComputePolicy CreateOrUpdate(this IComputePoliciesOperations operations, string resourceGroupName, string accountName, string computePolicyName, CreateOrUpdateComputePolicyParameters parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, accountName, computePolicyName, parameters).GetAwaiter().GetResult());
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Lists the Data Lake Analytics compute policies within the specified Data
 /// Lake Analytics account. An account supports, at most, 50 policies
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the Azure resource group.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Data Lake Analytics account.
 /// </param>
 public static IPage <ComputePolicy> ListByAccount(this IComputePoliciesOperations operations, string resourceGroupName, string accountName)
 {
     return(operations.ListByAccountAsync(resourceGroupName, accountName).GetAwaiter().GetResult());
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Lists the Data Lake Analytics compute policies within the specified Data
 /// Lake Analytics account. An account supports, at most, 50 policies
 /// </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 <ComputePolicy> ListByAccountNext(this IComputePoliciesOperations operations, string nextPageLink)
 {
     return(operations.ListByAccountNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Deletes the specified compute policy from the specified Data Lake Analytics
 /// account
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the Azure resource group.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Data Lake Analytics account.
 /// </param>
 /// <param name='computePolicyName'>
 /// The name of the compute policy to delete.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IComputePoliciesOperations operations, string resourceGroupName, string accountName, string computePolicyName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, computePolicyName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Deletes the specified compute policy from the specified Data Lake Analytics
 /// account
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the Azure resource group.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Data Lake Analytics account.
 /// </param>
 /// <param name='computePolicyName'>
 /// The name of the compute policy to delete.
 /// </param>
 public static void Delete(this IComputePoliciesOperations operations, string resourceGroupName, string accountName, string computePolicyName)
 {
     operations.DeleteAsync(resourceGroupName, accountName, computePolicyName).GetAwaiter().GetResult();
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Gets the specified Data Lake Analytics compute policy.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the Azure resource group.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Data Lake Analytics account.
 /// </param>
 /// <param name='computePolicyName'>
 /// The name of the compute policy to retrieve.
 /// </param>
 public static ComputePolicy Get(this IComputePoliciesOperations operations, string resourceGroupName, string accountName, string computePolicyName)
 {
     return(operations.GetAsync(resourceGroupName, accountName, computePolicyName).GetAwaiter().GetResult());
 }