/// <summary>
 /// Updates a pet in the store with form data
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='petId'>
 /// Id of pet that needs to be updated
 /// </param>
 /// <param name='fileContent'>
 /// File to upload.
 /// </param>
 /// <param name='fileName'>
 /// Updated name of the pet
 /// </param>
 /// <param name='status'>
 /// Updated status of the pet
 /// </param>
 /// <param name='customHeaders'>
 /// Headers that will be added to request.
 /// </param>
 public static HttpOperationResponse UpdatePetWithFormWithHttpMessages(this ISwaggerPetstoreV2 operations, long petId, System.IO.Stream fileContent, string fileName = default(string), string status = default(string), Dictionary <string, List <string> > customHeaders = null)
 {
     return(operations.UpdatePetWithFormWithHttpMessagesAsync(petId, fileContent, fileName, status, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Updates a pet in the store with form data
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='petId'>
 /// Id of pet that needs to be updated
 /// </param>
 /// <param name='fileContent'>
 /// File to upload.
 /// </param>
 /// <param name='fileName'>
 /// Updated name of the pet
 /// </param>
 /// <param name='status'>
 /// Updated status of the pet
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task UpdatePetWithFormAsync(this ISwaggerPetstoreV2 operations, long petId, System.IO.Stream fileContent, string fileName = default(string), string status = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     await operations.UpdatePetWithFormWithHttpMessagesAsync(petId, fileContent, fileName, status, null, cancellationToken).ConfigureAwait(false);
 }