/// <summary>
 /// Create the module identified by module name.  (see
 /// http://aka.ms/azureautomationsdk/moduleoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Automation.IModuleOperations.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The create parameters for module.
 /// </param>
 /// <returns>
 /// The response model for the create module operation.
 /// </returns>
 public static ModuleCreateResponse Create(this IModuleOperations operations, string automationAccount, ModuleCreateParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IModuleOperations)s).CreateAsync(automationAccount, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
 /// <summary>
 /// Create the module identified by module name.  (see
 /// http://aka.ms/azureautomationsdk/moduleoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Automation.IModuleOperations.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The create parameters for module.
 /// </param>
 /// <returns>
 /// The response model for the create module operation.
 /// </returns>
 public static Task<ModuleCreateResponse> CreateAsync(this IModuleOperations operations, string automationAccount, ModuleCreateParameters parameters)
 {
     return operations.CreateAsync(automationAccount, parameters, CancellationToken.None);
 }