/// <param name='operations'>
 /// Reference to the GeneratedProxyClient.IAPIV1.
 /// </param>
 /// <param name='id'>
 /// Required.
 /// </param>
 /// <param name='value'>
 /// Optional.
 /// </param>
 public static object ApiBooksByIdPut(this IAPIV1 operations, int id, Book value = null)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IAPIV1)s).ApiBooksByIdPutAsync(id, value);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
 /// <summary>
 /// Deserialize the object
 /// </summary>
 public static IList<Book> DeserializeJson(JToken inputObject)
 {
     IList<Book> deserializedObject = new List<Book>();
     foreach (JToken iListValue in ((JArray)inputObject))
     {
         Book book = new Book();
         book.DeserializeJson(iListValue);
         deserializedObject.Add(book);
     }
     return deserializedObject;
 }
 /// <param name='operations'>
 /// Reference to the GeneratedProxyClient.IAPIV1.
 /// </param>
 /// <param name='id'>
 /// Required.
 /// </param>
 /// <param name='value'>
 /// Optional.
 /// </param>
 /// <param name='cancellationToken'>
 /// Cancellation token.
 /// </param>
 public static async Task<object> ApiBooksByIdPutAsync(this IAPIV1 operations, int id, Book value = null, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     Microsoft.Rest.HttpOperationResponse<object> result = await operations.ApiBooksByIdPutWithOperationResponseAsync(id, value, cancellationToken).ConfigureAwait(false);
     return result.Body;
 }