@@ -6840,6 +6840,120 @@ public UploadSessionFinishBatchLaunch EndUploadSessionFinishBatch(sys.IAsyncResu
68406840 return task . Result ;
68416841 }
68426842
6843+ /// <summary>
6844+ /// <para>This route helps you commit many files at once into a user's Dropbox. Use
6845+ /// <see cref="Dropbox.Api.Files.Routes.FilesUserRoutes.UploadSessionStartAsync" /> and
6846+ /// <see cref="Dropbox.Api.Files.Routes.FilesUserRoutes.UploadSessionAppendV2Async" />
6847+ /// to upload file contents. We recommend uploading many files in parallel to increase
6848+ /// throughput. Once the file contents have been uploaded, rather than calling <see
6849+ /// cref="Dropbox.Api.Files.Routes.FilesUserRoutes.UploadSessionFinishAsync" />, use
6850+ /// this route to finish all your upload sessions in a single request.</para>
6851+ /// <para><see cref="Dropbox.Api.Files.UploadSessionStartArg.Close" /> or <see
6852+ /// cref="Dropbox.Api.Files.UploadSessionAppendArg.Close" /> needs to be true for the
6853+ /// last <see cref="Dropbox.Api.Files.Routes.FilesUserRoutes.UploadSessionStartAsync"
6854+ /// /> or <see
6855+ /// cref="Dropbox.Api.Files.Routes.FilesUserRoutes.UploadSessionAppendV2Async" /> call
6856+ /// of each upload session. The maximum size of a file one can upload to an upload
6857+ /// session is 350 GB.</para>
6858+ /// <para>We allow up to 1000 entries in a single request.</para>
6859+ /// <para>Calls to this endpoint will count as data transport calls for any Dropbox
6860+ /// Business teams with a limit on the number of data transport calls allowed per
6861+ /// month. For more information, see the <a
6862+ /// href="https://www.dropbox.com/developers/reference/data-transport-limit">Data
6863+ /// transport limit page</a>.</para>
6864+ /// </summary>
6865+ /// <param name="uploadSessionFinishBatchArg">The request parameters</param>
6866+ /// <returns>The task that represents the asynchronous send operation. The TResult
6867+ /// parameter contains the response from the server.</returns>
6868+ public t . Task < UploadSessionFinishBatchResult > UploadSessionFinishBatchV2Async ( UploadSessionFinishBatchArg uploadSessionFinishBatchArg )
6869+ {
6870+ return this . Transport . SendRpcRequestAsync < UploadSessionFinishBatchArg , UploadSessionFinishBatchResult , enc . Empty > ( uploadSessionFinishBatchArg , "api" , "/files/upload_session/finish_batch_v2" , "user" , global ::Dropbox . Api . Files . UploadSessionFinishBatchArg . Encoder , global ::Dropbox . Api . Files . UploadSessionFinishBatchResult . Decoder , enc . EmptyDecoder . Instance ) ;
6871+ }
6872+
6873+ /// <summary>
6874+ /// <para>Begins an asynchronous send to the upload session finish batch route.</para>
6875+ /// </summary>
6876+ /// <param name="uploadSessionFinishBatchArg">The request parameters.</param>
6877+ /// <param name="callback">The method to be called when the asynchronous send is
6878+ /// completed.</param>
6879+ /// <param name="state">A user provided object that distinguished this send from other
6880+ /// send requests.</param>
6881+ /// <returns>An object that represents the asynchronous send request.</returns>
6882+ public sys . IAsyncResult BeginUploadSessionFinishBatchV2 ( UploadSessionFinishBatchArg uploadSessionFinishBatchArg , sys . AsyncCallback callback , object state = null )
6883+ {
6884+ var task = this . UploadSessionFinishBatchV2Async ( uploadSessionFinishBatchArg ) ;
6885+
6886+ return enc . Util . ToApm ( task , callback , state ) ;
6887+ }
6888+
6889+ /// <summary>
6890+ /// <para>This route helps you commit many files at once into a user's Dropbox. Use
6891+ /// <see cref="Dropbox.Api.Files.Routes.FilesUserRoutes.UploadSessionStartAsync" /> and
6892+ /// <see cref="Dropbox.Api.Files.Routes.FilesUserRoutes.UploadSessionAppendV2Async" />
6893+ /// to upload file contents. We recommend uploading many files in parallel to increase
6894+ /// throughput. Once the file contents have been uploaded, rather than calling <see
6895+ /// cref="Dropbox.Api.Files.Routes.FilesUserRoutes.UploadSessionFinishAsync" />, use
6896+ /// this route to finish all your upload sessions in a single request.</para>
6897+ /// <para><see cref="Dropbox.Api.Files.UploadSessionStartArg.Close" /> or <see
6898+ /// cref="Dropbox.Api.Files.UploadSessionAppendArg.Close" /> needs to be true for the
6899+ /// last <see cref="Dropbox.Api.Files.Routes.FilesUserRoutes.UploadSessionStartAsync"
6900+ /// /> or <see
6901+ /// cref="Dropbox.Api.Files.Routes.FilesUserRoutes.UploadSessionAppendV2Async" /> call
6902+ /// of each upload session. The maximum size of a file one can upload to an upload
6903+ /// session is 350 GB.</para>
6904+ /// <para>We allow up to 1000 entries in a single request.</para>
6905+ /// <para>Calls to this endpoint will count as data transport calls for any Dropbox
6906+ /// Business teams with a limit on the number of data transport calls allowed per
6907+ /// month. For more information, see the <a
6908+ /// href="https://www.dropbox.com/developers/reference/data-transport-limit">Data
6909+ /// transport limit page</a>.</para>
6910+ /// </summary>
6911+ /// <param name="entries">Commit information for each file in the batch.</param>
6912+ /// <returns>The task that represents the asynchronous send operation. The TResult
6913+ /// parameter contains the response from the server.</returns>
6914+ public t . Task < UploadSessionFinishBatchResult > UploadSessionFinishBatchV2Async ( col . IEnumerable < UploadSessionFinishArg > entries )
6915+ {
6916+ var uploadSessionFinishBatchArg = new UploadSessionFinishBatchArg ( entries ) ;
6917+
6918+ return this . UploadSessionFinishBatchV2Async ( uploadSessionFinishBatchArg ) ;
6919+ }
6920+
6921+ /// <summary>
6922+ /// <para>Begins an asynchronous send to the upload session finish batch route.</para>
6923+ /// </summary>
6924+ /// <param name="entries">Commit information for each file in the batch.</param>
6925+ /// <param name="callback">The method to be called when the asynchronous send is
6926+ /// completed.</param>
6927+ /// <param name="callbackState">A user provided object that distinguished this send
6928+ /// from other send requests.</param>
6929+ /// <returns>An object that represents the asynchronous send request.</returns>
6930+ public sys . IAsyncResult BeginUploadSessionFinishBatchV2 ( col . IEnumerable < UploadSessionFinishArg > entries ,
6931+ sys . AsyncCallback callback ,
6932+ object callbackState = null )
6933+ {
6934+ var uploadSessionFinishBatchArg = new UploadSessionFinishBatchArg ( entries ) ;
6935+
6936+ return this . BeginUploadSessionFinishBatchV2 ( uploadSessionFinishBatchArg , callback , callbackState ) ;
6937+ }
6938+
6939+ /// <summary>
6940+ /// <para>Waits for the pending asynchronous send to the upload session finish batch
6941+ /// route to complete</para>
6942+ /// </summary>
6943+ /// <param name="asyncResult">The reference to the pending asynchronous send
6944+ /// request</param>
6945+ /// <returns>The response to the send request</returns>
6946+ public UploadSessionFinishBatchResult EndUploadSessionFinishBatchV2 ( sys . IAsyncResult asyncResult )
6947+ {
6948+ var task = asyncResult as t . Task < UploadSessionFinishBatchResult > ;
6949+ if ( task == null )
6950+ {
6951+ throw new sys . InvalidOperationException ( ) ;
6952+ }
6953+
6954+ return task . Result ;
6955+ }
6956+
68436957 /// <summary>
68446958 /// <para>Returns the status of an asynchronous job for <see
68456959 /// cref="Dropbox.Api.Files.Routes.FilesUserRoutes.UploadSessionFinishBatchAsync" />.
0 commit comments