/// <summary>
 /// Find pet by Id
 /// </summary>
 /// Returns a single pet
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='petId'>
 /// Id of pet to return
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Pet> GetPetByIdAsync(this ISwaggerPetstoreV2 operations, long petId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetPetByIdWithHttpMessagesAsync(petId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Find pet by Id
 /// </summary>
 /// Returns a single pet
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='petId'>
 /// Id of pet to return
 /// </param>
 /// <param name='customHeaders'>
 /// Headers that will be added to request.
 /// </param>
 public static HttpOperationResponse <Pet> GetPetByIdWithHttpMessages(this ISwaggerPetstoreV2 operations, long petId, Dictionary <string, List <string> > customHeaders = null)
 {
     return(operations.GetPetByIdWithHttpMessagesAsync(petId, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult());
 }