Skip to content

Commit bf25384

Browse files
committed
Develop Cells Cloud SDK 24.4.
1 parent 81d4db0 commit bf25384

37 files changed

+4168
-26
lines changed

Examples/Example_PostWorkbookImportXML.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
$dataXML = "data.xml";
1212
$remoteName = "Template.xlsx";
1313

14-
$importXMLRequestXMLFileSource = new \Aspose\Cells\Cloud\Model\FileSource();
15-
$importXMLRequestXMLFileSource->setFileSourceType("CloudFileSystem" );
16-
$importXMLRequestXMLFileSource->setFilePath($remoteFolder . "/data.xml" );
14+
$importXMLRequestXMLFileSource = new \Aspose\Cells\Cloud\Model\DataSource();
15+
$importXMLRequestXMLFileSource->setDataSourceType("CloudFileSystem" );
16+
$importXMLRequestXMLFileSource->setDataPath($remoteFolder . "/data.xml" );
1717
$importXMLRequestImportPosition = new \Aspose\Cells\Cloud\Model\ImportPosition();
1818
$importXMLRequestImportPosition->setSheetName("Sheet1" );
1919
$importXMLRequestImportPosition->setRowIndex(3 );

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"chart",
1111
"pivot table",
1212
"aspose cells",
13+
"REST API",
1314
"cloud"
1415
],
1516
"homepage" : "https://github.com/aspose-cells-cloud/aspose-cells-cloud-php",

lib/Api/CellsApi.php

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@
160160
use Aspose\Cells\Cloud\Request\PostWorkbookDataFillRequest;
161161
use Aspose\Cells\Cloud\Request\PostDataFillRequest;
162162
use Aspose\Cells\Cloud\Request\PostDeleteIncompleteRowsRequest;
163+
use Aspose\Cells\Cloud\Request\PostDataTransformationRequest;
163164
use Aspose\Cells\Cloud\Request\GetWorksheetHyperlinksRequest;
164165
use Aspose\Cells\Cloud\Request\GetWorksheetHyperlinkRequest;
165166
use Aspose\Cells\Cloud\Request\DeleteWorksheetHyperlinkRequest;
@@ -416,12 +417,15 @@
416417
use Aspose\Cells\Cloud\Model\DataColumnFillValue;
417418
use Aspose\Cells\Cloud\Model\DataFill;
418419
use Aspose\Cells\Cloud\Model\DataFillValue;
420+
use Aspose\Cells\Cloud\Model\DataItem;
419421
use Aspose\Cells\Cloud\Model\DataSorter;
420422
use Aspose\Cells\Cloud\Model\DataSorterKey;
423+
use Aspose\Cells\Cloud\Model\DataSource;
421424
use Aspose\Cells\Cloud\Model\DateTimeGroupItem;
422425
use Aspose\Cells\Cloud\Model\DeduplicationRegion;
423426
use Aspose\Cells\Cloud\Model\DynamicFilter;
424427
use Aspose\Cells\Cloud\Model\FileInfo;
428+
use Aspose\Cells\Cloud\Model\FileSource;
425429
use Aspose\Cells\Cloud\Model\FilesResult;
426430
use Aspose\Cells\Cloud\Model\FilterColumn;
427431
use Aspose\Cells\Cloud\Model\Font;
@@ -452,7 +456,6 @@
452456
use Aspose\Cells\Cloud\Model\PdfSecurityOptions;
453457
use Aspose\Cells\Cloud\Model\Protection;
454458
use Aspose\Cells\Cloud\Model\ProtectSheetParameter;
455-
use Aspose\Cells\Cloud\Model\QueryTable;
456459
use Aspose\Cells\Cloud\Model\Range;
457460
use Aspose\Cells\Cloud\Model\Ranges;
458461
use Aspose\Cells\Cloud\Model\Row;
@@ -488,7 +491,6 @@
488491
use Aspose\Cells\Cloud\Model\CellsObjectOperateTaskParameter;
489492
use Aspose\Cells\Cloud\Model\ConvertTaskParameter;
490493
use Aspose\Cells\Cloud\Model\ConvertWorksheetTaskParameter;
491-
use Aspose\Cells\Cloud\Model\FileSource;
492494
use Aspose\Cells\Cloud\Model\ImportDataTaskParameter;
493495
use Aspose\Cells\Cloud\Model\ResultDestination;
494496
use Aspose\Cells\Cloud\Model\SaveFilesToCloudResult;
@@ -657,6 +659,7 @@
657659
use Aspose\Cells\Cloud\Model\DataCleansingRequest;
658660
use Aspose\Cells\Cloud\Model\DataDeduplicationRequest;
659661
use Aspose\Cells\Cloud\Model\DataFillRequest;
662+
use Aspose\Cells\Cloud\Model\DataTransformationRequest;
660663
use Aspose\Cells\Cloud\Model\DeleteIncompleteRowsRequest;
661664
use Aspose\Cells\Cloud\Model\ImportJsonRequest;
662665
use Aspose\Cells\Cloud\Model\ImportXMLRequest;
@@ -676,6 +679,13 @@
676679
use Aspose\Cells\Cloud\Model\ImageOrPrintOptions;
677680
use Aspose\Cells\Cloud\Model\RenderingFont;
678681
use Aspose\Cells\Cloud\Model\RenderingWatermark;
682+
use Aspose\Cells\Cloud\Model\LoadData;
683+
use Aspose\Cells\Cloud\Model\LoadTo;
684+
use Aspose\Cells\Cloud\Model\PivotColumn;
685+
use Aspose\Cells\Cloud\Model\QueryDataSource;
686+
use Aspose\Cells\Cloud\Model\QueryTable;
687+
use Aspose\Cells\Cloud\Model\Transformation;
688+
use Aspose\Cells\Cloud\Model\UnpivotColumn;
679689
use Aspose\Cells\Cloud\Model\PivotField;
680690
use Aspose\Cells\Cloud\Model\PivotFilter;
681691
use Aspose\Cells\Cloud\Model\PivotItem;
@@ -2442,6 +2452,19 @@ public function postDeleteIncompleteRows( $request)
24422452
return $response;
24432453
}
24442454

2455+
/// <summary>
2456+
/// Transform spreadsheet data is mainly used to pivot columns, unpivot columns.
2457+
/// </summary>
2458+
/// <param name="request">Request. <see cref="PostDataTransformationRequest" /></param>
2459+
public function postDataTransformation( $request)
2460+
{
2461+
$this->checkAccessToken();
2462+
$returnType = '\Aspose\Cells\Cloud\Model\FileInfo';
2463+
$requesData = $request->createHttpRequest($this->headerSelector, $this->config);
2464+
list($response) = $this->execute($requesData,$returnType);
2465+
return $response;
2466+
}
2467+
24452468
/// <summary>
24462469
/// Retrieve descriptions of hyperlinks in the worksheet.
24472470
/// </summary>

lib/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class Configuration
8787
*
8888
* @var string
8989
*/
90-
protected $userAgent = 'Swagger-Codegen/24.3/php';
90+
protected $userAgent = 'Swagger-Codegen/24.4/php';
9191

9292
/**
9393
* Debug switch (default set to false)
@@ -396,7 +396,7 @@ public static function toDebugReport()
396396
$report .= ' OS: ' . php_uname() . PHP_EOL;
397397
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
398398
$report .= ' OpenAPI Spec Version: 3.0' . PHP_EOL;
399-
$report .= ' SDK Package Version: 24.3' . PHP_EOL;
399+
$report .= ' SDK Package Version: 24.4' . PHP_EOL;
400400
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
401401

402402
return $report;

lib/Model/CellsObjectOperateTaskParameter.php

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class CellsObjectOperateTaskParameter
4848
protected static $swaggerTypes = [
4949
'operate_object' => '\Aspose\Cells\Cloud\Model\OperateObject',
5050
'operate_parameter' => '\Aspose\Cells\Cloud\Model\OperateParameter',
51+
'destinatio_data_source' => '\Aspose\Cells\Cloud\Model\DataSource',
5152
'destination_workbook' => '\Aspose\Cells\Cloud\Model\FileSource'
5253
];
5354

@@ -59,6 +60,7 @@ class CellsObjectOperateTaskParameter
5960
protected static $swaggerFormats = [
6061
'operate_object' => null ,
6162
'operate_parameter' => null ,
63+
'destinatio_data_source' => null ,
6264
'destination_workbook' => null
6365
];
6466

@@ -91,6 +93,7 @@ public static function swaggerFormats()
9193
protected static $attributeMap = [
9294
'operate_object' => 'OperateObject' ,
9395
'operate_parameter' => 'OperateParameter' ,
96+
'destinatio_data_source' => 'DestinatioDataSource' ,
9497
'destination_workbook' => 'DestinationWorkbook'
9598
];
9699

@@ -102,6 +105,7 @@ public static function swaggerFormats()
102105
protected static $setters = [
103106
'operate_object' => 'setOperateObject' ,
104107
'operate_parameter' => 'setOperateParameter' ,
108+
'destinatio_data_source' => 'setDestinatioDataSource' ,
105109
'destination_workbook' => 'setDestinationWorkbook'
106110
];
107111

@@ -113,6 +117,7 @@ public static function swaggerFormats()
113117
protected static $getters = [
114118
'operate_object' => 'getOperateObject' ,
115119
'operate_parameter' => 'getOperateParameter' ,
120+
'destinatio_data_source' => 'getDestinatioDataSource' ,
116121
'destination_workbook' => 'getDestinationWorkbook'
117122
];
118123

@@ -174,6 +179,7 @@ public function __construct(array $data = null)
174179
{
175180
$this->container['operate_object'] = isset($data['operate_object']) ? $data['operate_object'] : null;
176181
$this->container['operate_parameter'] = isset($data['operate_parameter']) ? $data['operate_parameter'] : null;
182+
$this->container['destinatio_data_source'] = isset($data['destinatio_data_source']) ? $data['destinatio_data_source'] : null;
177183
$this->container['destination_workbook'] = isset($data['destination_workbook']) ? $data['destination_workbook'] : null;
178184
}
179185

@@ -191,6 +197,9 @@ public function listInvalidProperties()
191197
if ($this->container['operate_parameter'] === null) {
192198
$invalidProperties[] = "'operate_parameter' can't be null";
193199
}
200+
if ($this->container['destinatio_data_source'] === null) {
201+
$invalidProperties[] = "'destinatio_data_source' can't be null";
202+
}
194203
if ($this->container['destination_workbook'] === null) {
195204
$invalidProperties[] = "'destination_workbook' can't be null";
196205
}
@@ -211,6 +220,9 @@ public function valid()
211220
if ($this->container['operate_parameter'] === null) {
212221
return false;
213222
}
223+
if ($this->container['destinatio_data_source'] === null) {
224+
return false;
225+
}
214226
if ($this->container['destination_workbook'] === null) {
215227
return false;
216228
}
@@ -263,6 +275,29 @@ public function setOperateParameter($operate_parameter)
263275
return $this;
264276
}
265277
/**
278+
* Gets destinatio_data_source
279+
*
280+
* @return \Aspose\Cells\Cloud\Model\DataSource
281+
*/
282+
public function getDestinatioDataSource()
283+
{
284+
return $this->container['destinatio_data_source'];
285+
}
286+
287+
/**
288+
* Sets destinatio_data_source
289+
*
290+
*
291+
*
292+
* @return $this
293+
*/
294+
public function setDestinatioDataSource($destinatio_data_source)
295+
{
296+
$this->container['destinatio_data_source'] = $destinatio_data_source;
297+
298+
return $this;
299+
}
300+
/**
266301
* Gets destination_workbook
267302
*
268303
* @return \Aspose\Cells\Cloud\Model\FileSource

lib/Model/ConvertTaskParameter.php

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class ConvertTaskParameter
4646
* @var string[]
4747
*/
4848
protected static $swaggerTypes = [
49+
'data_source' => '\Aspose\Cells\Cloud\Model\DataSource',
4950
'workbook' => '\Aspose\Cells\Cloud\Model\FileSource',
5051
'destination_file' => 'string',
5152
'region' => 'string',
@@ -58,6 +59,7 @@ class ConvertTaskParameter
5859
* @var string[]
5960
*/
6061
protected static $swaggerFormats = [
62+
'data_source' => null ,
6163
'workbook' => null ,
6264
'destination_file' => null ,
6365
'region' => null ,
@@ -91,6 +93,7 @@ public static function swaggerFormats()
9193
* @var string[]
9294
*/
9395
protected static $attributeMap = [
96+
'data_source' => 'DataSource' ,
9497
'workbook' => 'Workbook' ,
9598
'destination_file' => 'DestinationFile' ,
9699
'region' => 'Region' ,
@@ -103,6 +106,7 @@ public static function swaggerFormats()
103106
* @var string[]
104107
*/
105108
protected static $setters = [
109+
'data_source' => 'setDataSource' ,
106110
'workbook' => 'setWorkbook' ,
107111
'destination_file' => 'setDestinationFile' ,
108112
'region' => 'setRegion' ,
@@ -115,6 +119,7 @@ public static function swaggerFormats()
115119
* @var string[]
116120
*/
117121
protected static $getters = [
122+
'data_source' => 'getDataSource' ,
118123
'workbook' => 'getWorkbook' ,
119124
'destination_file' => 'getDestinationFile' ,
120125
'region' => 'getRegion' ,
@@ -177,6 +182,7 @@ public function getModelName()
177182
*/
178183
public function __construct(array $data = null)
179184
{
185+
$this->container['data_source'] = isset($data['data_source']) ? $data['data_source'] : null;
180186
$this->container['workbook'] = isset($data['workbook']) ? $data['workbook'] : null;
181187
$this->container['destination_file'] = isset($data['destination_file']) ? $data['destination_file'] : null;
182188
$this->container['region'] = isset($data['region']) ? $data['region'] : null;
@@ -191,6 +197,9 @@ public function __construct(array $data = null)
191197
public function listInvalidProperties()
192198
{
193199
$invalidProperties = [];
200+
if ($this->container['data_source'] === null) {
201+
$invalidProperties[] = "'data_source' can't be null";
202+
}
194203
if ($this->container['workbook'] === null) {
195204
$invalidProperties[] = "'workbook' can't be null";
196205
}
@@ -214,6 +223,9 @@ public function listInvalidProperties()
214223
*/
215224
public function valid()
216225
{
226+
if ($this->container['data_source'] === null) {
227+
return false;
228+
}
217229
if ($this->container['workbook'] === null) {
218230
return false;
219231
}
@@ -228,6 +240,29 @@ public function valid()
228240
}
229241
return true;
230242
}
243+
/**
244+
* Gets data_source
245+
*
246+
* @return \Aspose\Cells\Cloud\Model\DataSource
247+
*/
248+
public function getDataSource()
249+
{
250+
return $this->container['data_source'];
251+
}
252+
253+
/**
254+
* Sets data_source
255+
*
256+
*
257+
*
258+
* @return $this
259+
*/
260+
public function setDataSource($data_source)
261+
{
262+
$this->container['data_source'] = $data_source;
263+
264+
return $this;
265+
}
231266
/**
232267
* Gets workbook
233268
*

0 commit comments

Comments
 (0)