protected PSArgument[] CreateExtensionImageUpdateParameters()
        {
            ExtensionImageUpdateParameters parameters = new ExtensionImageUpdateParameters();

            return ConvertFromObjectsToArguments(new string[] { "Parameters" }, new object[] { parameters });
        }
 /// <summary>
 /// Update a new extension. It is allowed to update an extension which
 /// had already been registered with the same identity (i.e.
 /// combination of ProviderNamespace and Type) but with different
 /// version. It will fail if the extension to update has an identity
 /// that has not been registered before, or there is already an
 /// extension with the same identity and same version.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Compute.IExtensionImageOperations.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Update Virtual Machine
 /// Extension Image operation.
 /// </param>
 /// <returns>
 /// The response body contains the status of the specified asynchronous
 /// operation, indicating whether it has succeeded, is inprogress, or
 /// has failed. Note that this status is distinct from the HTTP status
 /// code returned for the Get Operation Status operation itself. If
 /// the asynchronous operation succeeded, the response body includes
 /// the HTTP status code for the successful request. If the
 /// asynchronous operation failed, the response body includes the HTTP
 /// status code for the failed request and error information regarding
 /// the failure.
 /// </returns>
 public static OperationStatusResponse Update(this IExtensionImageOperations operations, ExtensionImageUpdateParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IExtensionImageOperations)s).UpdateAsync(parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
 /// <summary>
 /// Update a new extension. It is allowed to update an extension which
 /// had already been registered with the same identity (i.e.
 /// combination of ProviderNamespace and Type) but with different
 /// version. It will fail if the extension to update has an identity
 /// that has not been registered before, or there is already an
 /// extension with the same identity and same version.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Compute.IExtensionImageOperations.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Update Virtual Machine
 /// Extension Image operation.
 /// </param>
 /// <returns>
 /// The response body contains the status of the specified asynchronous
 /// operation, indicating whether it has succeeded, is inprogress, or
 /// has failed. Note that this status is distinct from the HTTP status
 /// code returned for the Get Operation Status operation itself. If
 /// the asynchronous operation succeeded, the response body includes
 /// the HTTP status code for the successful request. If the
 /// asynchronous operation failed, the response body includes the HTTP
 /// status code for the failed request and error information regarding
 /// the failure.
 /// </returns>
 public static Task<OperationStatusResponse> UpdateAsync(this IExtensionImageOperations operations, ExtensionImageUpdateParameters parameters)
 {
     return operations.UpdateAsync(parameters, CancellationToken.None);
 }
 /// <summary>
 /// Update a new extension. It is allowed to update an extension which
 /// had already been registered with the same identity (i.e.
 /// combination of ProviderNamespace and Type) but with different
 /// version. It will fail if the extension to update has an identity
 /// that has not been registered before, or there is already an
 /// extension with the same identity and same version.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Compute.IExtensionImageOperations.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Update Virtual Machine
 /// Extension Image operation.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task<AzureOperationResponse> BeginUpdatingAsync(this IExtensionImageOperations operations, ExtensionImageUpdateParameters parameters)
 {
     return operations.BeginUpdatingAsync(parameters, CancellationToken.None);
 }