aspose_slides_cloud 22.2.0 → 22.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/TestData/test.pptx +0 -0
  3. data/lib/aspose_slides_cloud/api/slides_api.rb +192 -13
  4. data/lib/aspose_slides_cloud/models/axis.rb +22 -2
  5. data/lib/aspose_slides_cloud/models/chart_lines_format.rb +221 -0
  6. data/lib/aspose_slides_cloud/models/export_options.rb +13 -1
  7. data/lib/aspose_slides_cloud/models/font_fallback_rule.rb +243 -0
  8. data/lib/aspose_slides_cloud/models/gif_export_options.rb +2 -1
  9. data/lib/aspose_slides_cloud/models/html5_export_options.rb +2 -1
  10. data/lib/aspose_slides_cloud/models/html_export_options.rb +2 -1
  11. data/lib/aspose_slides_cloud/models/image_export_options.rb +2 -1
  12. data/lib/aspose_slides_cloud/models/legend.rb +12 -2
  13. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +2 -1
  14. data/lib/aspose_slides_cloud/models/portion.rb +32 -2
  15. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +2 -1
  16. data/lib/aspose_slides_cloud/models/shape_type.rb +54 -0
  17. data/lib/aspose_slides_cloud/models/slide_comment.rb +32 -48
  18. data/lib/aspose_slides_cloud/models/slide_comment_base.rb +286 -0
  19. data/lib/aspose_slides_cloud/models/slide_comments.rb +1 -1
  20. data/lib/aspose_slides_cloud/models/slide_modern_comment.rb +269 -0
  21. data/lib/aspose_slides_cloud/models/svg_export_options.rb +2 -1
  22. data/lib/aspose_slides_cloud/models/swf_export_options.rb +2 -1
  23. data/lib/aspose_slides_cloud/models/text_bounds.rb +261 -0
  24. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +2 -1
  25. data/lib/aspose_slides_cloud/models/video_export_options.rb +2 -1
  26. data/lib/aspose_slides_cloud/models/xaml_export_options.rb +2 -1
  27. data/lib/aspose_slides_cloud/models/xps_export_options.rb +2 -1
  28. data/lib/aspose_slides_cloud/models/zoom_object.rb +1 -0
  29. data/lib/aspose_slides_cloud/type_registry.rb +9 -1
  30. data/lib/aspose_slides_cloud/version.rb +1 -1
  31. data/lib/aspose_slides_cloud.rb +7 -1
  32. data/spec/api/slides_api_spec.rb +585 -33
  33. data/spec/use_cases/merge_spec.rb +0 -1
  34. data/spec/use_cases/shape_spec.rb +0 -2
  35. data/testRules.json +5 -3
  36. metadata +8 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e883a826b9ad805e25ec620b64ddfe1374953723ce4b90f38628a0942c0b07d5
4
- data.tar.gz: e5802f2a20ddbc53345befc1408b75850ec8dcb5f487d2b46222bb9ad3cea30d
3
+ metadata.gz: '0877560eb2b5c0500fee0fe223010547ddb3f3afb4a683494fa43d9304143d3d'
4
+ data.tar.gz: a494ef9c95232e630e515a44569fc5b08a49182aad96bb105e1c018ecb010f39
5
5
  SHA512:
6
- metadata.gz: 2720026450b35f9a5ab9ad792a0bcc9216966f4849601b6589f7e57d7f1a68c6f86d0088a488a408b761f2213c0062e1ea8a92845406a11e2c16c5ef01d31d8a
7
- data.tar.gz: 5faaf99eda00e312e3c5384ddcb41d9dd9b7bacd8fa5bc7134ebd9a0e6ea215d80730879702103e626589839718e4dfd071252e058883f682c166be5c10bb478
6
+ metadata.gz: 2fc5522fb31920322d15733fbd08e9ad314c339d45645dd1a4536c7b5fffe2834a449d74ee3c827414c8d4d8a9cdcdc4e38f9780209f143939428f0f7817f1d1
7
+ data.tar.gz: f0476d4d25e10278dc2944d89a375d0d2a1b4fd1a9b39a5436a132bb9616ec3cb01f8e74e0261a17aa5df089ae358b89c36042022099769fa4436575b37e4e57
data/TestData/test.pptx CHANGED
Binary file
@@ -1262,11 +1262,12 @@ module AsposeSlidesCloud
1262
1262
  # @param name Document name.
1263
1263
  # @param slide_index Slide index.
1264
1264
  # @param dto Comment DTO.
1265
+ # @param shape_index Shape index.
1265
1266
  # @param password Document password.
1266
1267
  # @param folder Document folder.
1267
1268
  # @param storage Document storage.
1268
- def create_comment(name, slide_index, dto, password = nil, folder = nil, storage = nil)
1269
- data, _status_code, _headers = create_comment_with_http_info(name, slide_index, dto, password, folder, storage)
1269
+ def create_comment(name, slide_index, dto, shape_index = nil, password = nil, folder = nil, storage = nil)
1270
+ data, _status_code, _headers = create_comment_with_http_info(name, slide_index, dto, shape_index, password, folder, storage)
1270
1271
  data
1271
1272
  end
1272
1273
 
@@ -1274,10 +1275,11 @@ module AsposeSlidesCloud
1274
1275
  # @param name Document name.
1275
1276
  # @param slide_index Slide index.
1276
1277
  # @param dto Comment DTO.
1278
+ # @param shape_index Shape index.
1277
1279
  # @param password Document password.
1278
1280
  # @param folder Document folder.
1279
1281
  # @param storage Document storage.
1280
- def create_comment_with_http_info(name, slide_index, dto, password = nil, folder = nil, storage = nil)
1282
+ def create_comment_with_http_info(name, slide_index, dto, shape_index = nil, password = nil, folder = nil, storage = nil)
1281
1283
  if @api_client.config.debugging
1282
1284
  @api_client.config.logger.debug 'Calling API: SlidesApi.create_comment ...'
1283
1285
  end
@@ -1301,6 +1303,7 @@ module AsposeSlidesCloud
1301
1303
 
1302
1304
  # query parameters
1303
1305
  query_params = {}
1306
+ query_params[:'shapeIndex'] = @api_client.prepare_for_query(shape_index) unless shape_index.nil?
1304
1307
  query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
1305
1308
  query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
1306
1309
 
@@ -1332,9 +1335,10 @@ module AsposeSlidesCloud
1332
1335
  # @param document Document data.
1333
1336
  # @param slide_index Slide index.
1334
1337
  # @param dto Comment DTO.
1338
+ # @param shape_index Shape index.
1335
1339
  # @param password Document password.
1336
- def create_comment_online(document, slide_index, dto, password = nil)
1337
- data, _status_code, _headers = create_comment_online_with_http_info(document, slide_index, dto, password)
1340
+ def create_comment_online(document, slide_index, dto, shape_index = nil, password = nil)
1341
+ data, _status_code, _headers = create_comment_online_with_http_info(document, slide_index, dto, shape_index, password)
1338
1342
  data
1339
1343
  end
1340
1344
 
@@ -1342,8 +1346,9 @@ module AsposeSlidesCloud
1342
1346
  # @param document Document data.
1343
1347
  # @param slide_index Slide index.
1344
1348
  # @param dto Comment DTO.
1349
+ # @param shape_index Shape index.
1345
1350
  # @param password Document password.
1346
- def create_comment_online_with_http_info(document, slide_index, dto, password = nil)
1351
+ def create_comment_online_with_http_info(document, slide_index, dto, shape_index = nil, password = nil)
1347
1352
  if @api_client.config.debugging
1348
1353
  @api_client.config.logger.debug 'Calling API: SlidesApi.create_comment_online ...'
1349
1354
  end
@@ -1366,6 +1371,7 @@ module AsposeSlidesCloud
1366
1371
 
1367
1372
  # query parameters
1368
1373
  query_params = {}
1374
+ query_params[:'shapeIndex'] = @api_client.prepare_for_query(shape_index) unless shape_index.nil?
1369
1375
 
1370
1376
  # header parameters
1371
1377
  header_params = {}
@@ -10526,6 +10532,84 @@ module AsposeSlidesCloud
10526
10532
  :return_type => 'Paragraph')
10527
10533
  return data, status_code, headers
10528
10534
  end
10535
+ # Return coordinates of rect that bounds paragraph. The rect includes all the lines of text in paragraph, including empty ones.
10536
+ # @param name Document name.
10537
+ # @param slide_index Slide index.
10538
+ # @param shape_index Shape index.
10539
+ # @param paragraph_index Paragraph index.
10540
+ # @param password Document password.
10541
+ # @param folder Document folder.
10542
+ # @param storage Document storage.
10543
+ def get_paragraph_rectangle(name, slide_index, shape_index, paragraph_index, password = nil, folder = nil, storage = nil)
10544
+ data, _status_code, _headers = get_paragraph_rectangle_with_http_info(name, slide_index, shape_index, paragraph_index, password, folder, storage)
10545
+ data
10546
+ end
10547
+
10548
+ # Return coordinates of rect that bounds paragraph. The rect includes all the lines of text in paragraph, including empty ones.
10549
+ # @param name Document name.
10550
+ # @param slide_index Slide index.
10551
+ # @param shape_index Shape index.
10552
+ # @param paragraph_index Paragraph index.
10553
+ # @param password Document password.
10554
+ # @param folder Document folder.
10555
+ # @param storage Document storage.
10556
+ def get_paragraph_rectangle_with_http_info(name, slide_index, shape_index, paragraph_index, password = nil, folder = nil, storage = nil)
10557
+ if @api_client.config.debugging
10558
+ @api_client.config.logger.debug 'Calling API: SlidesApi.get_paragraph_rectangle ...'
10559
+ end
10560
+
10561
+ # verify the required parameter 'name' is set
10562
+ if @api_client.config.client_side_validation && name.nil?
10563
+ fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.get_paragraph_rectangle"
10564
+ end
10565
+ # verify the required parameter 'slide_index' is set
10566
+ if @api_client.config.client_side_validation && slide_index.nil?
10567
+ fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.get_paragraph_rectangle"
10568
+ end
10569
+ # verify the required parameter 'shape_index' is set
10570
+ if @api_client.config.client_side_validation && shape_index.nil?
10571
+ fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.get_paragraph_rectangle"
10572
+ end
10573
+ # verify the required parameter 'paragraph_index' is set
10574
+ if @api_client.config.client_side_validation && paragraph_index.nil?
10575
+ fail ArgumentError, "Missing the required parameter 'paragraph_index' when calling SlidesApi.get_paragraph_rectangle"
10576
+ end
10577
+ # resource path
10578
+ local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/bounds'
10579
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
10580
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
10581
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
10582
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'paragraphIndex', paragraph_index)
10583
+
10584
+ # query parameters
10585
+ query_params = {}
10586
+ query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
10587
+ query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
10588
+
10589
+ # header parameters
10590
+ header_params = {}
10591
+ # HTTP header 'Accept' (if needed)
10592
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
10593
+ # HTTP header 'Content-Type'
10594
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
10595
+ header_params[:'password'] = password unless password.nil?
10596
+
10597
+ # http body (model)
10598
+ post_body = nil
10599
+
10600
+ # form parameters
10601
+ post_files = []
10602
+
10603
+ auth_names = ['JWT']
10604
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
10605
+ :header_params => header_params,
10606
+ :query_params => query_params,
10607
+ :body => post_body,
10608
+ :files => post_files,
10609
+ :auth_names => auth_names,
10610
+ :return_type => 'TextBounds')
10611
+ return data, status_code, headers
10612
+ end
10529
10613
  # Read shape paragraphs info.
10530
10614
  # @param name Document name.
10531
10615
  # @param slide_index Slide index.
@@ -10817,6 +10901,91 @@ module AsposeSlidesCloud
10817
10901
  :return_type => 'Portion')
10818
10902
  return data, status_code, headers
10819
10903
  end
10904
+ # Return coordinates of rect that bounds paragraph. The rect includes all the lines of text in paragraph, including empty ones.
10905
+ # @param name Document name.
10906
+ # @param slide_index Slide index.
10907
+ # @param shape_index Shape index.
10908
+ # @param paragraph_index Paragraph index.
10909
+ # @param portion_index Portion index.
10910
+ # @param password Document password.
10911
+ # @param folder Document folder.
10912
+ # @param storage Document storage.
10913
+ def get_portion_rectangle(name, slide_index, shape_index, paragraph_index, portion_index, password = nil, folder = nil, storage = nil)
10914
+ data, _status_code, _headers = get_portion_rectangle_with_http_info(name, slide_index, shape_index, paragraph_index, portion_index, password, folder, storage)
10915
+ data
10916
+ end
10917
+
10918
+ # Return coordinates of rect that bounds paragraph. The rect includes all the lines of text in paragraph, including empty ones.
10919
+ # @param name Document name.
10920
+ # @param slide_index Slide index.
10921
+ # @param shape_index Shape index.
10922
+ # @param paragraph_index Paragraph index.
10923
+ # @param portion_index Portion index.
10924
+ # @param password Document password.
10925
+ # @param folder Document folder.
10926
+ # @param storage Document storage.
10927
+ def get_portion_rectangle_with_http_info(name, slide_index, shape_index, paragraph_index, portion_index, password = nil, folder = nil, storage = nil)
10928
+ if @api_client.config.debugging
10929
+ @api_client.config.logger.debug 'Calling API: SlidesApi.get_portion_rectangle ...'
10930
+ end
10931
+
10932
+ # verify the required parameter 'name' is set
10933
+ if @api_client.config.client_side_validation && name.nil?
10934
+ fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.get_portion_rectangle"
10935
+ end
10936
+ # verify the required parameter 'slide_index' is set
10937
+ if @api_client.config.client_side_validation && slide_index.nil?
10938
+ fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.get_portion_rectangle"
10939
+ end
10940
+ # verify the required parameter 'shape_index' is set
10941
+ if @api_client.config.client_side_validation && shape_index.nil?
10942
+ fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.get_portion_rectangle"
10943
+ end
10944
+ # verify the required parameter 'paragraph_index' is set
10945
+ if @api_client.config.client_side_validation && paragraph_index.nil?
10946
+ fail ArgumentError, "Missing the required parameter 'paragraph_index' when calling SlidesApi.get_portion_rectangle"
10947
+ end
10948
+ # verify the required parameter 'portion_index' is set
10949
+ if @api_client.config.client_side_validation && portion_index.nil?
10950
+ fail ArgumentError, "Missing the required parameter 'portion_index' when calling SlidesApi.get_portion_rectangle"
10951
+ end
10952
+ # resource path
10953
+ local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}/bounds'
10954
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
10955
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
10956
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
10957
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'paragraphIndex', paragraph_index)
10958
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'portionIndex', portion_index)
10959
+
10960
+ # query parameters
10961
+ query_params = {}
10962
+ query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
10963
+ query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
10964
+
10965
+ # header parameters
10966
+ header_params = {}
10967
+ # HTTP header 'Accept' (if needed)
10968
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
10969
+ # HTTP header 'Content-Type'
10970
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
10971
+ header_params[:'password'] = password unless password.nil?
10972
+
10973
+ # http body (model)
10974
+ post_body = nil
10975
+
10976
+ # form parameters
10977
+ post_files = []
10978
+
10979
+ auth_names = ['JWT']
10980
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
10981
+ :header_params => header_params,
10982
+ :query_params => query_params,
10983
+ :body => post_body,
10984
+ :files => post_files,
10985
+ :auth_names => auth_names,
10986
+ :return_type => 'TextBounds')
10987
+ return data, status_code, headers
10988
+ end
10820
10989
  # Read paragraph portions info.
10821
10990
  # @param name Document name.
10822
10991
  # @param slide_index Slide index.
@@ -11331,8 +11500,9 @@ module AsposeSlidesCloud
11331
11500
  # @param password Document password.
11332
11501
  # @param folder Document folder.
11333
11502
  # @param storage Document storage.
11334
- def get_shapes(name, slide_index, password = nil, folder = nil, storage = nil)
11335
- data, _status_code, _headers = get_shapes_with_http_info(name, slide_index, password, folder, storage)
11503
+ # @param shape_type Shape type.
11504
+ def get_shapes(name, slide_index, password = nil, folder = nil, storage = nil, shape_type = nil)
11505
+ data, _status_code, _headers = get_shapes_with_http_info(name, slide_index, password, folder, storage, shape_type)
11336
11506
  data
11337
11507
  end
11338
11508
 
@@ -11342,7 +11512,8 @@ module AsposeSlidesCloud
11342
11512
  # @param password Document password.
11343
11513
  # @param folder Document folder.
11344
11514
  # @param storage Document storage.
11345
- def get_shapes_with_http_info(name, slide_index, password = nil, folder = nil, storage = nil)
11515
+ # @param shape_type Shape type.
11516
+ def get_shapes_with_http_info(name, slide_index, password = nil, folder = nil, storage = nil, shape_type = nil)
11346
11517
  if @api_client.config.debugging
11347
11518
  @api_client.config.logger.debug 'Calling API: SlidesApi.get_shapes ...'
11348
11519
  end
@@ -11355,6 +11526,9 @@ module AsposeSlidesCloud
11355
11526
  if @api_client.config.client_side_validation && slide_index.nil?
11356
11527
  fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.get_shapes"
11357
11528
  end
11529
+ if @api_client.config.client_side_validation && shape_type && !['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape', 'ZoomFrame', 'SectionZoomFrame', 'SummaryZoomFrame', 'SummaryZoomSection'].any?{ |s| s.casecmp(shape_type)==0 }
11530
+ fail ArgumentError, "Invalid value for parameter shape_type: " + shape_type + ". Must be one of Shape, Chart, Table, PictureFrame, VideoFrame, AudioFrame, SmartArt, OleObjectFrame, GroupShape, GraphicalObject, Connector, SmartArtShape, ZoomFrame, SectionZoomFrame, SummaryZoomFrame, SummaryZoomSection"
11531
+ end
11358
11532
  # resource path
11359
11533
  local_var_path = '/slides/{name}/slides/{slideIndex}/shapes'
11360
11534
  local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
@@ -11364,6 +11538,7 @@ module AsposeSlidesCloud
11364
11538
  query_params = {}
11365
11539
  query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
11366
11540
  query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
11541
+ query_params[:'shapeType'] = @api_client.prepare_for_query(shape_type) unless shape_type.nil?
11367
11542
 
11368
11543
  # header parameters
11369
11544
  header_params = {}
@@ -13667,7 +13842,7 @@ module AsposeSlidesCloud
13667
13842
  post_files = []
13668
13843
 
13669
13844
  auth_names = ['JWT']
13670
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
13845
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
13671
13846
  :header_params => header_params,
13672
13847
  :query_params => query_params,
13673
13848
  :body => post_body,
@@ -13758,7 +13933,7 @@ module AsposeSlidesCloud
13758
13933
  post_files = []
13759
13934
 
13760
13935
  auth_names = ['JWT']
13761
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
13936
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
13762
13937
  :header_params => header_params,
13763
13938
  :query_params => query_params,
13764
13939
  :body => post_body,
@@ -13832,7 +14007,7 @@ module AsposeSlidesCloud
13832
14007
  # @param password Document password.
13833
14008
  # @param folder Document folder.
13834
14009
  # @param storage Document storage.
13835
- def import_from_pdf(name, pdf = nil, password = nil, folder = nil, storage = nil)
14010
+ def import_from_pdf(name, pdf, password = nil, folder = nil, storage = nil)
13836
14011
  data, _status_code, _headers = import_from_pdf_with_http_info(name, pdf, password, folder, storage)
13837
14012
  data
13838
14013
  end
@@ -13843,7 +14018,7 @@ module AsposeSlidesCloud
13843
14018
  # @param password Document password.
13844
14019
  # @param folder Document folder.
13845
14020
  # @param storage Document storage.
13846
- def import_from_pdf_with_http_info(name, pdf = nil, password = nil, folder = nil, storage = nil)
14021
+ def import_from_pdf_with_http_info(name, pdf, password = nil, folder = nil, storage = nil)
13847
14022
  if @api_client.config.debugging
13848
14023
  @api_client.config.logger.debug 'Calling API: SlidesApi.import_from_pdf ...'
13849
14024
  end
@@ -13852,6 +14027,10 @@ module AsposeSlidesCloud
13852
14027
  if @api_client.config.client_side_validation && name.nil?
13853
14028
  fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.import_from_pdf"
13854
14029
  end
14030
+ # verify the required parameter 'pdf' is set
14031
+ if @api_client.config.client_side_validation && pdf.nil?
14032
+ fail ArgumentError, "Missing the required parameter 'pdf' when calling SlidesApi.import_from_pdf"
14033
+ end
13855
14034
  # resource path
13856
14035
  local_var_path = '/slides/{name}/fromPdf'
13857
14036
  local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
@@ -133,6 +133,12 @@ module AsposeSlidesCloud
133
133
  # Get or sets the line format.
134
134
  attr_accessor :line_format
135
135
 
136
+ # Get or sets the format of major grid lines.
137
+ attr_accessor :major_grid_lines_format
138
+
139
+ # Get or sets the format of major grid lines.
140
+ attr_accessor :minor_grid_lines_format
141
+
136
142
  class EnumAttributeValidator
137
143
  attr_reader :datatype
138
144
  attr_reader :allowable_values
@@ -194,6 +200,8 @@ module AsposeSlidesCloud
194
200
  :'fill_format' => :'FillFormat',
195
201
  :'effect_format' => :'EffectFormat',
196
202
  :'line_format' => :'LineFormat',
203
+ :'major_grid_lines_format' => :'MajorGridLinesFormat',
204
+ :'minor_grid_lines_format' => :'MinorGridLinesFormat',
197
205
  }
198
206
  end
199
207
 
@@ -236,6 +244,8 @@ module AsposeSlidesCloud
236
244
  :'fill_format' => :'FillFormat',
237
245
  :'effect_format' => :'EffectFormat',
238
246
  :'line_format' => :'LineFormat',
247
+ :'major_grid_lines_format' => :'ChartLinesFormat',
248
+ :'minor_grid_lines_format' => :'ChartLinesFormat',
239
249
  }
240
250
  end
241
251
 
@@ -390,6 +400,14 @@ module AsposeSlidesCloud
390
400
  if attributes.has_key?(:'LineFormat')
391
401
  self.line_format = attributes[:'LineFormat']
392
402
  end
403
+
404
+ if attributes.has_key?(:'MajorGridLinesFormat')
405
+ self.major_grid_lines_format = attributes[:'MajorGridLinesFormat']
406
+ end
407
+
408
+ if attributes.has_key?(:'MinorGridLinesFormat')
409
+ self.minor_grid_lines_format = attributes[:'MinorGridLinesFormat']
410
+ end
393
411
  end
394
412
 
395
413
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -565,7 +583,9 @@ module AsposeSlidesCloud
565
583
  tick_label_rotation_angle == o.tick_label_rotation_angle &&
566
584
  fill_format == o.fill_format &&
567
585
  effect_format == o.effect_format &&
568
- line_format == o.line_format
586
+ line_format == o.line_format &&
587
+ major_grid_lines_format == o.major_grid_lines_format &&
588
+ minor_grid_lines_format == o.minor_grid_lines_format
569
589
  end
570
590
 
571
591
  # @see the `==` method
@@ -577,7 +597,7 @@ module AsposeSlidesCloud
577
597
  # Calculates hash code according to all attributes.
578
598
  # @return [Fixnum] Hash code
579
599
  def hash
580
- [is_visible, has_title, position, display_unit, base_unit_scale, is_automatic_major_unit, major_unit, major_unit_scale, major_tick_mark, is_automatic_minor_unit, minor_unit, minor_unit_scale, minor_tick_mark, is_automatic_max_value, max_value, is_automatic_min_value, min_value, is_logarithmic, log_base, category_axis_type, axis_between_categories, label_offset, is_plot_order_reversed, is_number_format_linked_to_source, number_format, cross_type, cross_at, is_automatic_tick_marks_spacing, tick_marks_spacing, is_automatic_tick_label_spacing, tick_label_spacing, tick_label_position, tick_label_rotation_angle, fill_format, effect_format, line_format].hash
600
+ [is_visible, has_title, position, display_unit, base_unit_scale, is_automatic_major_unit, major_unit, major_unit_scale, major_tick_mark, is_automatic_minor_unit, minor_unit, minor_unit_scale, minor_tick_mark, is_automatic_max_value, max_value, is_automatic_min_value, min_value, is_logarithmic, log_base, category_axis_type, axis_between_categories, label_offset, is_plot_order_reversed, is_number_format_linked_to_source, number_format, cross_type, cross_at, is_automatic_tick_marks_spacing, tick_marks_spacing, is_automatic_tick_label_spacing, tick_label_spacing, tick_label_position, tick_label_rotation_angle, fill_format, effect_format, line_format, major_grid_lines_format, minor_grid_lines_format].hash
581
601
  end
582
602
 
583
603
  # Builds the object from hash
@@ -0,0 +1,221 @@
1
+ =begin
2
+ Copyright (c) 2019 Aspose Pty Ltd
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
21
+ =end
22
+
23
+ require 'date'
24
+
25
+ module AsposeSlidesCloud
26
+ # Represents the lines format of chart elements.
27
+ class ChartLinesFormat
28
+ # Get or sets the effect format.
29
+ attr_accessor :effect_format
30
+
31
+ # Get or sets the line format.
32
+ attr_accessor :line_format
33
+
34
+ # Attribute mapping from ruby-style variable name to JSON key.
35
+ def self.attribute_map
36
+ {
37
+ :'effect_format' => :'EffectFormat',
38
+ :'line_format' => :'LineFormat',
39
+ }
40
+ end
41
+
42
+ # Attribute type mapping.
43
+ def self.swagger_types
44
+ {
45
+ :'effect_format' => :'EffectFormat',
46
+ :'line_format' => :'LineFormat',
47
+ }
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param [Hash] attributes Model attributes in the form of hash
52
+ def initialize(attributes = {})
53
+ return unless attributes.is_a?(Hash)
54
+
55
+ # convert string to symbol for hash key
56
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
57
+
58
+ if attributes.has_key?(:'EffectFormat')
59
+ self.effect_format = attributes[:'EffectFormat']
60
+ end
61
+
62
+ if attributes.has_key?(:'LineFormat')
63
+ self.line_format = attributes[:'LineFormat']
64
+ end
65
+ end
66
+
67
+ # Show invalid properties with the reasons. Usually used together with valid?
68
+ # @return Array for valid properties with the reasons
69
+ def list_invalid_properties
70
+ invalid_properties = Array.new
71
+ invalid_properties
72
+ end
73
+
74
+ # Check to see if the all the properties in the model are valid
75
+ # @return true if the model is valid
76
+ def valid?
77
+ true
78
+ end
79
+
80
+ # Checks equality by comparing each attribute.
81
+ # @param [Object] Object to be compared
82
+ def ==(o)
83
+ return true if self.equal?(o)
84
+ self.class == o.class &&
85
+ effect_format == o.effect_format &&
86
+ line_format == o.line_format
87
+ end
88
+
89
+ # @see the `==` method
90
+ # @param [Object] Object to be compared
91
+ def eql?(o)
92
+ self == o
93
+ end
94
+
95
+ # Calculates hash code according to all attributes.
96
+ # @return [Fixnum] Hash code
97
+ def hash
98
+ [effect_format, line_format].hash
99
+ end
100
+
101
+ # Builds the object from hash
102
+ # @param [Hash] attributes Model attributes in the form of hash
103
+ # @return [Object] Returns the model itself
104
+ def build_from_hash(attributes)
105
+ return nil unless attributes.is_a?(Hash)
106
+ self.class.swagger_types.each_pair do |key, type|
107
+ mapKey = self.class.attribute_map[key]
108
+ if !mapKey.nil?
109
+ val = attributes[mapKey]
110
+ if val.nil?
111
+ mapKeyString = mapKey.to_s
112
+ mapKeyString[0] = mapKeyString[0].downcase
113
+ mapKey = mapKeyString.to_sym
114
+ val = attributes[mapKey]
115
+ end
116
+ if !val.nil?
117
+ if type =~ /\AArray<(.*)>/i
118
+ # check to ensure the input is an array given that the the attribute
119
+ # is documented as an array but the input is not
120
+ if val.is_a?(Array)
121
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
122
+ end
123
+ else
124
+ self.send("#{key}=", _deserialize(type, val))
125
+ end
126
+ end
127
+ end
128
+ end
129
+
130
+ self
131
+ end
132
+
133
+ # Deserializes the data based on type
134
+ # @param string type Data type
135
+ # @param string value Value to be deserialized
136
+ # @return [Object] Deserialized data
137
+ def _deserialize(type, value)
138
+ case type.to_sym
139
+ when :DateTime
140
+ DateTime.parse(value)
141
+ when :Date
142
+ Date.parse(value)
143
+ when :String
144
+ value.to_s
145
+ when :Integer
146
+ value.to_i
147
+ when :Float
148
+ value.to_f
149
+ when :BOOLEAN
150
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
151
+ true
152
+ else
153
+ false
154
+ end
155
+ when :Object
156
+ # generic object (usually a Hash), return directly
157
+ value
158
+ when /\AArray<(?<inner_type>.+)>\z/
159
+ inner_type = Regexp.last_match[:inner_type]
160
+ value.map { |v| _deserialize(inner_type, v) }
161
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
162
+ k_type = Regexp.last_match[:k_type]
163
+ v_type = Regexp.last_match[:v_type]
164
+ {}.tap do |hash|
165
+ value.each do |k, v|
166
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
167
+ end
168
+ end
169
+ else # model
170
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
171
+ if registry_type
172
+ type = registry_type
173
+ end
174
+ temp_model = AsposeSlidesCloud.const_get(type).new
175
+ temp_model.build_from_hash(value)
176
+ end
177
+ end
178
+
179
+ # Returns the string representation of the object
180
+ # @return [String] String presentation of the object
181
+ def to_s
182
+ to_hash.to_s
183
+ end
184
+
185
+ # to_body is an alias to to_hash (backward compatibility)
186
+ # @return [Hash] Returns the object in the form of hash
187
+ def to_body
188
+ to_hash
189
+ end
190
+
191
+ # Returns the object in the form of hash
192
+ # @return [Hash] Returns the object in the form of hash
193
+ def to_hash
194
+ hash = {}
195
+ self.class.attribute_map.each_pair do |attr, param|
196
+ value = self.send(attr)
197
+ next if value.nil?
198
+ hash[param] = _to_hash(value)
199
+ end
200
+ hash
201
+ end
202
+
203
+ # Outputs non-array value in the form of hash
204
+ # For object, use to_hash. Otherwise, just return the value
205
+ # @param [Object] value Any valid value
206
+ # @return [Hash] Returns the value in the form of hash
207
+ def _to_hash(value)
208
+ if value.is_a?(Array)
209
+ value.compact.map { |v| _to_hash(v) }
210
+ elsif value.is_a?(Hash)
211
+ {}.tap do |hash|
212
+ value.each { |k, v| hash[k] = _to_hash(v) }
213
+ end
214
+ elsif value.respond_to? :to_hash
215
+ value.to_hash
216
+ else
217
+ value
218
+ end
219
+ end
220
+ end
221
+ end