@@ -668,11 +668,12 @@ public interface ICellsWorkbookApi : IApiAccessor
668
668
///
669
669
/// </remarks>
670
670
/// <exception cref="Aspose.Cells.Cloud.SDK.Client.ApiException">Thrown when fails to make API call</exception>
671
+ /// <param name="workbook"></param>
671
672
/// <param name="format">The format to convert. (optional)</param>
672
673
/// <param name="password">The workbook password. (optional)</param>
673
674
/// <param name="outPath">Path to save result (optional)</param>
674
675
/// <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 ) ;
676
677
677
678
/// <summary>
678
679
/// Convert workbook from request content to some format.
@@ -681,11 +682,12 @@ public interface ICellsWorkbookApi : IApiAccessor
681
682
///
682
683
/// </remarks>
683
684
/// <exception cref="Aspose.Cells.Cloud.SDK.Client.ApiException">Thrown when fails to make API call</exception>
685
+ /// <param name="workbook"></param>
684
686
/// <param name="format">The format to convert. (optional)</param>
685
687
/// <param name="password">The workbook password. (optional)</param>
686
688
/// <param name="outPath">Path to save result (optional)</param>
687
689
/// <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 ) ;
689
691
/// <summary>
690
692
/// Protect document from changes.
691
693
/// </summary>
@@ -1388,11 +1390,12 @@ public interface ICellsWorkbookApi : IApiAccessor
1388
1390
///
1389
1391
/// </remarks>
1390
1392
/// <exception cref="Aspose.Cells.Cloud.SDK.Client.ApiException">Thrown when fails to make API call</exception>
1393
+ /// <param name="workbook"></param>
1391
1394
/// <param name="format">The format to convert. (optional)</param>
1392
1395
/// <param name="password">The workbook password. (optional)</param>
1393
1396
/// <param name="outPath">Path to save result (optional)</param>
1394
1397
/// <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 ) ;
1396
1399
1397
1400
/// <summary>
1398
1401
/// Convert workbook from request content to some format.
@@ -1401,11 +1404,12 @@ public interface ICellsWorkbookApi : IApiAccessor
1401
1404
///
1402
1405
/// </remarks>
1403
1406
/// <exception cref="Aspose.Cells.Cloud.SDK.Client.ApiException">Thrown when fails to make API call</exception>
1407
+ /// <param name="workbook"></param>
1404
1408
/// <param name="format">The format to convert. (optional)</param>
1405
1409
/// <param name="password">The workbook password. (optional)</param>
1406
1410
/// <param name="outPath">Path to save result (optional)</param>
1407
1411
/// <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 ) ;
1409
1413
/// <summary>
1410
1414
/// Protect document from changes.
1411
1415
/// </summary>
@@ -5346,26 +5350,31 @@ public async System.Threading.Tasks.Task<ApiResponse<TextItemsResponse>> CellsWo
5346
5350
/// Convert workbook from request content to some format.
5347
5351
/// </summary>
5348
5352
/// <exception cref="Aspose.Cells.Cloud.SDK.Client.ApiException">Thrown when fails to make API call</exception>
5353
+ /// <param name="workbook"></param>
5349
5354
/// <param name="format">The format to convert. (optional)</param>
5350
5355
/// <param name="password">The workbook password. (optional)</param>
5351
5356
/// <param name="outPath">Path to save result (optional)</param>
5352
5357
/// <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 )
5354
5359
{
5355
- ApiResponse < System . IO . Stream > localVarResponse = CellsWorkbookPutConvertWorkbookWithHttpInfo ( format , password , outPath ) ;
5360
+ ApiResponse < System . IO . Stream > localVarResponse = CellsWorkbookPutConvertWorkbookWithHttpInfo ( workbook , format , password , outPath ) ;
5356
5361
return localVarResponse . Data ;
5357
5362
}
5358
5363
5359
5364
/// <summary>
5360
5365
/// Convert workbook from request content to some format.
5361
5366
/// </summary>
5362
5367
/// <exception cref="Aspose.Cells.Cloud.SDK.Client.ApiException">Thrown when fails to make API call</exception>
5368
+ /// <param name="workbook"></param>
5363
5369
/// <param name="format">The format to convert. (optional)</param>
5364
5370
/// <param name="password">The workbook password. (optional)</param>
5365
5371
/// <param name="outPath">Path to save result (optional)</param>
5366
5372
/// <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 )
5368
5374
{
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" ) ;
5369
5378
5370
5379
var localVarPath = "/cells/convert" ;
5371
5380
var localVarPathParams = new Dictionary < String , String > ( ) ;
@@ -5392,6 +5401,14 @@ public System.IO.Stream CellsWorkbookPutConvertWorkbook (string format = null, s
5392
5401
if ( format != null ) localVarQueryParams . Add ( "format" , Configuration . ApiClient . ParameterToString ( format ) ) ; // query parameter
5393
5402
if ( password != null ) localVarQueryParams . Add ( "password" , Configuration . ApiClient . ParameterToString ( password ) ) ; // query parameter
5394
5403
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
+ }
5395
5412
5396
5413
5397
5414
// make the HTTP request
@@ -5416,13 +5433,14 @@ public System.IO.Stream CellsWorkbookPutConvertWorkbook (string format = null, s
5416
5433
/// Convert workbook from request content to some format.
5417
5434
/// </summary>
5418
5435
/// <exception cref="Aspose.Cells.Cloud.SDK.Client.ApiException">Thrown when fails to make API call</exception>
5436
+ /// <param name="workbook"></param>
5419
5437
/// <param name="format">The format to convert. (optional)</param>
5420
5438
/// <param name="password">The workbook password. (optional)</param>
5421
5439
/// <param name="outPath">Path to save result (optional)</param>
5422
5440
/// <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 )
5424
5442
{
5425
- ApiResponse < System . IO . Stream > localVarResponse = await CellsWorkbookPutConvertWorkbookAsyncWithHttpInfo ( format , password , outPath ) ;
5443
+ ApiResponse < System . IO . Stream > localVarResponse = await CellsWorkbookPutConvertWorkbookAsyncWithHttpInfo ( workbook , format , password , outPath ) ;
5426
5444
return localVarResponse . Data ;
5427
5445
5428
5446
}
@@ -5431,12 +5449,16 @@ public System.IO.Stream CellsWorkbookPutConvertWorkbook (string format = null, s
5431
5449
/// Convert workbook from request content to some format.
5432
5450
/// </summary>
5433
5451
/// <exception cref="Aspose.Cells.Cloud.SDK.Client.ApiException">Thrown when fails to make API call</exception>
5452
+ /// <param name="workbook"></param>
5434
5453
/// <param name="format">The format to convert. (optional)</param>
5435
5454
/// <param name="password">The workbook password. (optional)</param>
5436
5455
/// <param name="outPath">Path to save result (optional)</param>
5437
5456
/// <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 )
5439
5458
{
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" ) ;
5440
5462
5441
5463
var localVarPath = "/cells/convert" ;
5442
5464
var localVarPathParams = new Dictionary < String , String > ( ) ;
@@ -5463,6 +5485,14 @@ public System.IO.Stream CellsWorkbookPutConvertWorkbook (string format = null, s
5463
5485
if ( format != null ) localVarQueryParams . Add ( "format" , Configuration . ApiClient . ParameterToString ( format ) ) ; // query parameter
5464
5486
if ( password != null ) localVarQueryParams . Add ( "password" , Configuration . ApiClient . ParameterToString ( password ) ) ; // query parameter
5465
5487
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
+ }
5466
5496
5467
5497
5468
5498
// make the HTTP request
0 commit comments