/// <summary>
 ///
 /// Streams a file to the 360° server, where it is checked in by the
 /// external system. This can be used on files that have been checked out
 /// with the method CheckOutAndGetFileForExternalControl.
 ///
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='uploadAndCheckInFileFromExternalControlArgs'>
 /// (See model for parameter info)
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <UploadAndCheckInFileFromExternalControlOKResponse> UploadAndCheckInFileFromExternalControlAsync(this IFileService operations, UploadAndCheckInFileFromExternalControlArgs uploadAndCheckInFileFromExternalControlArgs = default(UploadAndCheckInFileFromExternalControlArgs), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UploadAndCheckInFileFromExternalControlWithHttpMessagesAsync(uploadAndCheckInFileFromExternalControlArgs, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 ///
 /// Streams a file to the 360° server, where it is checked in by the
 /// external system. This can be used on files that have been checked out
 /// with the method CheckOutAndGetFileForExternalControl.
 ///
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='uploadAndCheckInFileFromExternalControlArgs'>
 /// (See model for parameter info)
 /// </param>
 public static UploadAndCheckInFileFromExternalControlOKResponse UploadAndCheckInFileFromExternalControl(this IFileService operations, UploadAndCheckInFileFromExternalControlArgs uploadAndCheckInFileFromExternalControlArgs = default(UploadAndCheckInFileFromExternalControlArgs))
 {
     return(Task.Factory.StartNew(s => ((IFileService)s).UploadAndCheckInFileFromExternalControlAsync(uploadAndCheckInFileFromExternalControlArgs), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }