@@ -668,11 +668,12 @@ public interface ICellsWorkbookApi : IApiAccessor
668668 ///
669669 /// </remarks>
670670 /// <exception cref="Aspose.Cells.Cloud.SDK.Client.ApiException">Thrown when fails to make API call</exception>
671+ /// <param name="workbook"></param>
671672 /// <param name="format">The format to convert. (optional)</param>
672673 /// <param name="password">The workbook password. (optional)</param>
673674 /// <param name="outPath">Path to save result (optional)</param>
674675 /// <returns>System.IO.Stream</returns>
675- System . IO . Stream CellsWorkbookPutConvertWorkbook ( string format = null , string password = null , string outPath = null ) ;
676+ System . IO . Stream CellsWorkbookPutConvertWorkbook ( byte [ ] workbook , string format = null , string password = null , string outPath = null ) ;
676677
677678 /// <summary>
678679 /// Convert workbook from request content to some format.
@@ -681,11 +682,12 @@ public interface ICellsWorkbookApi : IApiAccessor
681682 ///
682683 /// </remarks>
683684 /// <exception cref="Aspose.Cells.Cloud.SDK.Client.ApiException">Thrown when fails to make API call</exception>
685+ /// <param name="workbook"></param>
684686 /// <param name="format">The format to convert. (optional)</param>
685687 /// <param name="password">The workbook password. (optional)</param>
686688 /// <param name="outPath">Path to save result (optional)</param>
687689 /// <returns>ApiResponse of System.IO.Stream</returns>
688- ApiResponse < System . IO . Stream > CellsWorkbookPutConvertWorkbookWithHttpInfo ( string format = null , string password = null , string outPath = null ) ;
690+ ApiResponse < System . IO . Stream > CellsWorkbookPutConvertWorkbookWithHttpInfo ( byte [ ] workbook , string format = null , string password = null , string outPath = null ) ;
689691 /// <summary>
690692 /// Protect document from changes.
691693 /// </summary>
@@ -1388,11 +1390,12 @@ public interface ICellsWorkbookApi : IApiAccessor
13881390 ///
13891391 /// </remarks>
13901392 /// <exception cref="Aspose.Cells.Cloud.SDK.Client.ApiException">Thrown when fails to make API call</exception>
1393+ /// <param name="workbook"></param>
13911394 /// <param name="format">The format to convert. (optional)</param>
13921395 /// <param name="password">The workbook password. (optional)</param>
13931396 /// <param name="outPath">Path to save result (optional)</param>
13941397 /// <returns>Task of System.IO.Stream</returns>
1395- System . Threading . Tasks . Task < System . IO . Stream > CellsWorkbookPutConvertWorkbookAsync ( string format = null , string password = null , string outPath = null ) ;
1398+ System . Threading . Tasks . Task < System . IO . Stream > CellsWorkbookPutConvertWorkbookAsync ( byte [ ] workbook , string format = null , string password = null , string outPath = null ) ;
13961399
13971400 /// <summary>
13981401 /// Convert workbook from request content to some format.
@@ -1401,11 +1404,12 @@ public interface ICellsWorkbookApi : IApiAccessor
14011404 ///
14021405 /// </remarks>
14031406 /// <exception cref="Aspose.Cells.Cloud.SDK.Client.ApiException">Thrown when fails to make API call</exception>
1407+ /// <param name="workbook"></param>
14041408 /// <param name="format">The format to convert. (optional)</param>
14051409 /// <param name="password">The workbook password. (optional)</param>
14061410 /// <param name="outPath">Path to save result (optional)</param>
14071411 /// <returns>Task of ApiResponse (System.IO.Stream)</returns>
1408- System . Threading . Tasks . Task < ApiResponse < System . IO . Stream > > CellsWorkbookPutConvertWorkbookAsyncWithHttpInfo ( string format = null , string password = null , string outPath = null ) ;
1412+ System . Threading . Tasks . Task < ApiResponse < System . IO . Stream > > CellsWorkbookPutConvertWorkbookAsyncWithHttpInfo ( byte [ ] workbook , string format = null , string password = null , string outPath = null ) ;
14091413 /// <summary>
14101414 /// Protect document from changes.
14111415 /// </summary>
@@ -5346,26 +5350,31 @@ public async System.Threading.Tasks.Task<ApiResponse<TextItemsResponse>> CellsWo
53465350 /// Convert workbook from request content to some format.
53475351 /// </summary>
53485352 /// <exception cref="Aspose.Cells.Cloud.SDK.Client.ApiException">Thrown when fails to make API call</exception>
5353+ /// <param name="workbook"></param>
53495354 /// <param name="format">The format to convert. (optional)</param>
53505355 /// <param name="password">The workbook password. (optional)</param>
53515356 /// <param name="outPath">Path to save result (optional)</param>
53525357 /// <returns>System.IO.Stream</returns>
5353- public System . IO . Stream CellsWorkbookPutConvertWorkbook ( string format = null , string password = null , string outPath = null )
5358+ public System . IO . Stream CellsWorkbookPutConvertWorkbook ( byte [ ] workbook , string format = null , string password = null , string outPath = null )
53545359 {
5355- ApiResponse < System . IO . Stream > localVarResponse = CellsWorkbookPutConvertWorkbookWithHttpInfo ( format , password , outPath ) ;
5360+ ApiResponse < System . IO . Stream > localVarResponse = CellsWorkbookPutConvertWorkbookWithHttpInfo ( workbook , format , password , outPath ) ;
53565361 return localVarResponse . Data ;
53575362 }
53585363
53595364 /// <summary>
53605365 /// Convert workbook from request content to some format.
53615366 /// </summary>
53625367 /// <exception cref="Aspose.Cells.Cloud.SDK.Client.ApiException">Thrown when fails to make API call</exception>
5368+ /// <param name="workbook"></param>
53635369 /// <param name="format">The format to convert. (optional)</param>
53645370 /// <param name="password">The workbook password. (optional)</param>
53655371 /// <param name="outPath">Path to save result (optional)</param>
53665372 /// <returns>ApiResponse of System.IO.Stream</returns>
5367- public ApiResponse < System . IO . Stream > CellsWorkbookPutConvertWorkbookWithHttpInfo ( string format = null , string password = null , string outPath = null )
5373+ public ApiResponse < System . IO . Stream > CellsWorkbookPutConvertWorkbookWithHttpInfo ( byte [ ] workbook , string format = null , string password = null , string outPath = null )
53685374 {
5375+ // verify the required parameter 'workbook' is set
5376+ if ( workbook == null )
5377+ throw new ApiException ( 400 , "Missing required parameter 'workbook' when calling CellsWorkbookApi->CellsWorkbookPutConvertWorkbook" ) ;
53695378
53705379 var localVarPath = "/cells/convert" ;
53715380 var localVarPathParams = new Dictionary < String , String > ( ) ;
@@ -5392,6 +5401,14 @@ public System.IO.Stream CellsWorkbookPutConvertWorkbook (string format = null, s
53925401 if ( format != null ) localVarQueryParams . Add ( "format" , Configuration . ApiClient . ParameterToString ( format ) ) ; // query parameter
53935402 if ( password != null ) localVarQueryParams . Add ( "password" , Configuration . ApiClient . ParameterToString ( password ) ) ; // query parameter
53945403 if ( outPath != null ) localVarQueryParams . Add ( "outPath" , Configuration . ApiClient . ParameterToString ( outPath ) ) ; // query parameter
5404+ if ( workbook != null && workbook . GetType ( ) != typeof ( byte [ ] ) )
5405+ {
5406+ localVarPostBody = Configuration . ApiClient . Serialize ( workbook ) ; // http body (model) parameter
5407+ }
5408+ else
5409+ {
5410+ localVarPostBody = workbook ; // byte array
5411+ }
53955412
53965413
53975414 // make the HTTP request
@@ -5416,13 +5433,14 @@ public System.IO.Stream CellsWorkbookPutConvertWorkbook (string format = null, s
54165433 /// Convert workbook from request content to some format.
54175434 /// </summary>
54185435 /// <exception cref="Aspose.Cells.Cloud.SDK.Client.ApiException">Thrown when fails to make API call</exception>
5436+ /// <param name="workbook"></param>
54195437 /// <param name="format">The format to convert. (optional)</param>
54205438 /// <param name="password">The workbook password. (optional)</param>
54215439 /// <param name="outPath">Path to save result (optional)</param>
54225440 /// <returns>Task of System.IO.Stream</returns>
5423- public async System . Threading . Tasks . Task < System . IO . Stream > CellsWorkbookPutConvertWorkbookAsync ( string format = null , string password = null , string outPath = null )
5441+ public async System . Threading . Tasks . Task < System . IO . Stream > CellsWorkbookPutConvertWorkbookAsync ( byte [ ] workbook , string format = null , string password = null , string outPath = null )
54245442 {
5425- ApiResponse < System . IO . Stream > localVarResponse = await CellsWorkbookPutConvertWorkbookAsyncWithHttpInfo ( format , password , outPath ) ;
5443+ ApiResponse < System . IO . Stream > localVarResponse = await CellsWorkbookPutConvertWorkbookAsyncWithHttpInfo ( workbook , format , password , outPath ) ;
54265444 return localVarResponse . Data ;
54275445
54285446 }
@@ -5431,12 +5449,16 @@ public System.IO.Stream CellsWorkbookPutConvertWorkbook (string format = null, s
54315449 /// Convert workbook from request content to some format.
54325450 /// </summary>
54335451 /// <exception cref="Aspose.Cells.Cloud.SDK.Client.ApiException">Thrown when fails to make API call</exception>
5452+ /// <param name="workbook"></param>
54345453 /// <param name="format">The format to convert. (optional)</param>
54355454 /// <param name="password">The workbook password. (optional)</param>
54365455 /// <param name="outPath">Path to save result (optional)</param>
54375456 /// <returns>Task of ApiResponse (System.IO.Stream)</returns>
5438- public async System . Threading . Tasks . Task < ApiResponse < System . IO . Stream > > CellsWorkbookPutConvertWorkbookAsyncWithHttpInfo ( string format = null , string password = null , string outPath = null )
5457+ public async System . Threading . Tasks . Task < ApiResponse < System . IO . Stream > > CellsWorkbookPutConvertWorkbookAsyncWithHttpInfo ( byte [ ] workbook , string format = null , string password = null , string outPath = null )
54395458 {
5459+ // verify the required parameter 'workbook' is set
5460+ if ( workbook == null )
5461+ throw new ApiException ( 400 , "Missing required parameter 'workbook' when calling CellsWorkbookApi->CellsWorkbookPutConvertWorkbook" ) ;
54405462
54415463 var localVarPath = "/cells/convert" ;
54425464 var localVarPathParams = new Dictionary < String , String > ( ) ;
@@ -5463,6 +5485,14 @@ public System.IO.Stream CellsWorkbookPutConvertWorkbook (string format = null, s
54635485 if ( format != null ) localVarQueryParams . Add ( "format" , Configuration . ApiClient . ParameterToString ( format ) ) ; // query parameter
54645486 if ( password != null ) localVarQueryParams . Add ( "password" , Configuration . ApiClient . ParameterToString ( password ) ) ; // query parameter
54655487 if ( outPath != null ) localVarQueryParams . Add ( "outPath" , Configuration . ApiClient . ParameterToString ( outPath ) ) ; // query parameter
5488+ if ( workbook != null && workbook . GetType ( ) != typeof ( byte [ ] ) )
5489+ {
5490+ localVarPostBody = Configuration . ApiClient . Serialize ( workbook ) ; // http body (model) parameter
5491+ }
5492+ else
5493+ {
5494+ localVarPostBody = workbook ; // byte array
5495+ }
54665496
54675497
54685498 // make the HTTP request
0 commit comments