/// <summary>
 /// Update a credential.  (see
 /// http://aka.ms/azureautomationsdk/credentialoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Automation.ICredentialOperations.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters supplied to the update credential
 /// operation.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task<AzureOperationResponse> UpdateAsync(this ICredentialOperations operations, string automationAccount, CredentialUpdateParameters parameters)
 {
     return operations.UpdateAsync(automationAccount, parameters, CancellationToken.None);
 }
 /// <summary>
 /// Update a credential.  (see
 /// http://aka.ms/azureautomationsdk/credentialoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Automation.ICredentialOperations.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters supplied to the update credential
 /// operation.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static AzureOperationResponse Update(this ICredentialOperations operations, string automationAccount, CredentialUpdateParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((ICredentialOperations)s).UpdateAsync(automationAccount, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }