aspose_slides_cloud 20.2.0 → 20.4.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.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/lib/aspose_slides_cloud.rb +6 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +106 -7
- data/lib/aspose_slides_cloud/api/slides_api_requests.rb +35 -3
- data/lib/aspose_slides_cloud/models/bubble_series.rb +2 -2
- data/lib/aspose_slides_cloud/models/chart.rb +3 -3
- data/lib/aspose_slides_cloud/models/document.rb +11 -1
- data/lib/aspose_slides_cloud/models/document_replace_result.rb +11 -1
- data/lib/aspose_slides_cloud/models/one_value_series.rb +2 -2
- data/lib/aspose_slides_cloud/models/scatter_series.rb +2 -2
- data/lib/aspose_slides_cloud/models/series.rb +2 -2
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +242 -24
- data/testRules.json +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fd86bab987e4592d81dcd1b19cd25d1041e9ef7b1a380fcf238073ebeb3a045
|
4
|
+
data.tar.gz: 5fb741ce4cf0f67d1a7249a74ada2284d7bc0e4da7fac516586898056b129ae7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d12700e3d29fd200e1114a7ad8e3b63128a218355b352d9f3e4d599965342247b05105ededf8a56233d2524103d513e2eb23781d7a52458bfbd3f19a6cdf6ed5
|
7
|
+
data.tar.gz: 7a35a36a261e27cc8810020f6f985501aae88baa3d7c69ccfe3d37183cf855f3a03f737e0de3251f484793055030cdb4f2ac694d845e73cea57e7b4ff8588d22
|
data/Gemfile
CHANGED
data/lib/aspose_slides_cloud.rb
CHANGED
@@ -32,8 +32,10 @@ require 'aspose_slides_cloud/models/arrow_head_properties'
|
|
32
32
|
require 'aspose_slides_cloud/models/axes'
|
33
33
|
require 'aspose_slides_cloud/models/axis'
|
34
34
|
require 'aspose_slides_cloud/models/blur_effect'
|
35
|
+
require 'aspose_slides_cloud/models/chart_category'
|
35
36
|
require 'aspose_slides_cloud/models/chart_title'
|
36
37
|
require 'aspose_slides_cloud/models/chart_wall'
|
38
|
+
require 'aspose_slides_cloud/models/common_slide_view_properties'
|
37
39
|
require 'aspose_slides_cloud/models/custom_dash_pattern'
|
38
40
|
require 'aspose_slides_cloud/models/disc_usage'
|
39
41
|
require 'aspose_slides_cloud/models/effect'
|
@@ -59,6 +61,7 @@ require 'aspose_slides_cloud/models/interactive_sequence'
|
|
59
61
|
require 'aspose_slides_cloud/models/legend'
|
60
62
|
require 'aspose_slides_cloud/models/line_format'
|
61
63
|
require 'aspose_slides_cloud/models/merging_source'
|
64
|
+
require 'aspose_slides_cloud/models/normal_view_restored_properties'
|
62
65
|
require 'aspose_slides_cloud/models/notes_slide_export_format'
|
63
66
|
require 'aspose_slides_cloud/models/object_exist'
|
64
67
|
require 'aspose_slides_cloud/models/one_value_chart_data_point'
|
@@ -159,7 +162,9 @@ require 'aspose_slides_cloud/models/theme'
|
|
159
162
|
require 'aspose_slides_cloud/models/tiff_export_options'
|
160
163
|
require 'aspose_slides_cloud/models/update_background'
|
161
164
|
require 'aspose_slides_cloud/models/update_shape'
|
165
|
+
require 'aspose_slides_cloud/models/view_properties'
|
162
166
|
require 'aspose_slides_cloud/models/xps_export_options'
|
167
|
+
require 'aspose_slides_cloud/models/box_and_whisker_series'
|
163
168
|
require 'aspose_slides_cloud/models/chart'
|
164
169
|
require 'aspose_slides_cloud/models/document_replace_result'
|
165
170
|
require 'aspose_slides_cloud/models/geometry_shape'
|
@@ -170,6 +175,7 @@ require 'aspose_slides_cloud/models/slide_replace_result'
|
|
170
175
|
require 'aspose_slides_cloud/models/smart_art'
|
171
176
|
require 'aspose_slides_cloud/models/smart_art_shape'
|
172
177
|
require 'aspose_slides_cloud/models/table'
|
178
|
+
require 'aspose_slides_cloud/models/waterfall_series'
|
173
179
|
require 'aspose_slides_cloud/models/audio_frame'
|
174
180
|
require 'aspose_slides_cloud/models/connector'
|
175
181
|
require 'aspose_slides_cloud/models/picture_frame'
|
@@ -1790,7 +1790,7 @@ module AsposeSlidesCloud
|
|
1790
1790
|
# header parameters
|
1791
1791
|
header_params = {}
|
1792
1792
|
# HTTP header 'Accept' (if needed)
|
1793
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
1793
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1794
1794
|
# HTTP header 'Content-Type'
|
1795
1795
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1796
1796
|
|
@@ -4257,6 +4257,58 @@ module AsposeSlidesCloud
|
|
4257
4257
|
:return_type => 'FormatScheme')
|
4258
4258
|
return data, status_code, headers
|
4259
4259
|
end
|
4260
|
+
# Read presentation document properties.
|
4261
|
+
# @param request operation request
|
4262
|
+
def get_slides_view_properties(request)
|
4263
|
+
data, _status_code, _headers = get_slides_view_properties_with_http_info(request)
|
4264
|
+
data
|
4265
|
+
end
|
4266
|
+
|
4267
|
+
# Read presentation document properties.
|
4268
|
+
# @param request operation request
|
4269
|
+
def get_slides_view_properties_with_http_info(request)
|
4270
|
+
if @api_client.config.debugging
|
4271
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.get_slides_view_properties ...'
|
4272
|
+
end
|
4273
|
+
# verify the required parameter 'name' is set
|
4274
|
+
if @api_client.config.client_side_validation && request.name.nil?
|
4275
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.get_slides_view_properties"
|
4276
|
+
end
|
4277
|
+
# resource path
|
4278
|
+
local_var_path = '/slides/{name}/viewProperties'
|
4279
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', request.name)
|
4280
|
+
|
4281
|
+
# query parameters
|
4282
|
+
query_params = {}
|
4283
|
+
query_params[:'password'] = request.password unless request.password.nil?
|
4284
|
+
query_params[:'folder'] = request.folder unless request.folder.nil?
|
4285
|
+
query_params[:'storage'] = request.storage unless request.storage.nil?
|
4286
|
+
|
4287
|
+
# header parameters
|
4288
|
+
header_params = {}
|
4289
|
+
# HTTP header 'Accept' (if needed)
|
4290
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
4291
|
+
# HTTP header 'Content-Type'
|
4292
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
4293
|
+
|
4294
|
+
# http body (model)
|
4295
|
+
post_body = nil
|
4296
|
+
|
4297
|
+
# form parameters
|
4298
|
+
|
4299
|
+
post_files = nil
|
4300
|
+
|
4301
|
+
|
4302
|
+
auth_names = ['JWT']
|
4303
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
4304
|
+
:header_params => header_params,
|
4305
|
+
:query_params => query_params,
|
4306
|
+
:body => post_body,
|
4307
|
+
:files => post_files,
|
4308
|
+
:auth_names => auth_names,
|
4309
|
+
:return_type => 'ViewProperties')
|
4310
|
+
return data, status_code, headers
|
4311
|
+
end
|
4260
4312
|
# Move file
|
4261
4313
|
# @param request operation request
|
4262
4314
|
def move_file(request)
|
@@ -7510,6 +7562,58 @@ module AsposeSlidesCloud
|
|
7510
7562
|
:return_type => 'Document')
|
7511
7563
|
return data, status_code, headers
|
7512
7564
|
end
|
7565
|
+
# Update presentation document properties.
|
7566
|
+
# @param request operation request
|
7567
|
+
def put_slides_view_properties(request)
|
7568
|
+
data, _status_code, _headers = put_slides_view_properties_with_http_info(request)
|
7569
|
+
data
|
7570
|
+
end
|
7571
|
+
|
7572
|
+
# Update presentation document properties.
|
7573
|
+
# @param request operation request
|
7574
|
+
def put_slides_view_properties_with_http_info(request)
|
7575
|
+
if @api_client.config.debugging
|
7576
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.put_slides_view_properties ...'
|
7577
|
+
end
|
7578
|
+
# verify the required parameter 'name' is set
|
7579
|
+
if @api_client.config.client_side_validation && request.name.nil?
|
7580
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.put_slides_view_properties"
|
7581
|
+
end
|
7582
|
+
# resource path
|
7583
|
+
local_var_path = '/slides/{name}/viewProperties'
|
7584
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', request.name)
|
7585
|
+
|
7586
|
+
# query parameters
|
7587
|
+
query_params = {}
|
7588
|
+
query_params[:'password'] = request.password unless request.password.nil?
|
7589
|
+
query_params[:'folder'] = request.folder unless request.folder.nil?
|
7590
|
+
query_params[:'storage'] = request.storage unless request.storage.nil?
|
7591
|
+
|
7592
|
+
# header parameters
|
7593
|
+
header_params = {}
|
7594
|
+
# HTTP header 'Accept' (if needed)
|
7595
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
7596
|
+
# HTTP header 'Content-Type'
|
7597
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
7598
|
+
|
7599
|
+
# http body (model)
|
7600
|
+
post_body = @api_client.object_to_http_body(request.dto)
|
7601
|
+
|
7602
|
+
# form parameters
|
7603
|
+
|
7604
|
+
post_files = nil
|
7605
|
+
|
7606
|
+
|
7607
|
+
auth_names = ['JWT']
|
7608
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
7609
|
+
:header_params => header_params,
|
7610
|
+
:query_params => query_params,
|
7611
|
+
:body => post_body,
|
7612
|
+
:files => post_files,
|
7613
|
+
:auth_names => auth_names,
|
7614
|
+
:return_type => 'DocumentProperty')
|
7615
|
+
return data, status_code, headers
|
7616
|
+
end
|
7513
7617
|
# Update notes slide properties.
|
7514
7618
|
# @param request operation request
|
7515
7619
|
def put_update_notes_slide(request)
|
@@ -7833,10 +7937,6 @@ module AsposeSlidesCloud
|
|
7833
7937
|
if @api_client.config.debugging
|
7834
7938
|
@api_client.config.logger.debug 'Calling API: SlidesApi.upload_file ...'
|
7835
7939
|
end
|
7836
|
-
# verify the required parameter 'file' is set
|
7837
|
-
if @api_client.config.client_side_validation && request.file.nil?
|
7838
|
-
fail ArgumentError, "Missing the required parameter 'file' when calling SlidesApi.upload_file"
|
7839
|
-
end
|
7840
7940
|
# resource path
|
7841
7941
|
local_var_path = '/slides/storage/file/{path}'
|
7842
7942
|
local_var_path = @api_client.replace_path_parameter(local_var_path, 'path', request.path)
|
@@ -7850,13 +7950,12 @@ module AsposeSlidesCloud
|
|
7850
7950
|
# HTTP header 'Accept' (if needed)
|
7851
7951
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
7852
7952
|
# HTTP header 'Content-Type'
|
7853
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
7953
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
7854
7954
|
|
7855
7955
|
# http body (model)
|
7856
7956
|
post_body = nil
|
7857
7957
|
|
7858
7958
|
# form parameters
|
7859
|
-
post_body = request.file
|
7860
7959
|
|
7861
7960
|
post_files = nil
|
7862
7961
|
|
@@ -1524,6 +1524,22 @@ module AsposeSlidesCloud
|
|
1524
1524
|
attr_accessor :storage
|
1525
1525
|
end
|
1526
1526
|
|
1527
|
+
# request model for get_slides_view_properties
|
1528
|
+
class GetSlidesViewPropertiesRequest
|
1529
|
+
|
1530
|
+
# @param name Document name.
|
1531
|
+
attr_accessor :name
|
1532
|
+
|
1533
|
+
# @param password Document password.
|
1534
|
+
attr_accessor :password
|
1535
|
+
|
1536
|
+
# @param folder Document folder.
|
1537
|
+
attr_accessor :folder
|
1538
|
+
|
1539
|
+
# @param storage Document storage.
|
1540
|
+
attr_accessor :storage
|
1541
|
+
end
|
1542
|
+
|
1527
1543
|
# request model for move_file
|
1528
1544
|
class MoveFileRequest
|
1529
1545
|
|
@@ -2930,6 +2946,25 @@ module AsposeSlidesCloud
|
|
2930
2946
|
attr_accessor :scale_type
|
2931
2947
|
end
|
2932
2948
|
|
2949
|
+
# request model for put_slides_view_properties
|
2950
|
+
class PutSlidesViewPropertiesRequest
|
2951
|
+
|
2952
|
+
# @param name Document name.
|
2953
|
+
attr_accessor :name
|
2954
|
+
|
2955
|
+
# @param dto The view properties data.
|
2956
|
+
attr_accessor :dto
|
2957
|
+
|
2958
|
+
# @param password Document password.
|
2959
|
+
attr_accessor :password
|
2960
|
+
|
2961
|
+
# @param folder Document folder.
|
2962
|
+
attr_accessor :folder
|
2963
|
+
|
2964
|
+
# @param storage Document storage.
|
2965
|
+
attr_accessor :storage
|
2966
|
+
end
|
2967
|
+
|
2933
2968
|
# request model for put_update_notes_slide
|
2934
2969
|
class PutUpdateNotesSlideRequest
|
2935
2970
|
|
@@ -3055,9 +3090,6 @@ module AsposeSlidesCloud
|
|
3055
3090
|
# request model for upload_file
|
3056
3091
|
class UploadFileRequest
|
3057
3092
|
|
3058
|
-
# @param file File to upload
|
3059
|
-
attr_accessor :file
|
3060
|
-
|
3061
3093
|
# @param path Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header.
|
3062
3094
|
attr_accessor :path
|
3063
3095
|
|
@@ -255,7 +255,7 @@ module AsposeSlidesCloud
|
|
255
255
|
# Check to see if the all the properties in the model are valid
|
256
256
|
# @return true if the model is valid
|
257
257
|
def valid?
|
258
|
-
type_validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes'])
|
258
|
+
type_validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes', 'Treemap', 'Sunburst', 'Histogram', 'ParetoLine', 'BoxAndWhisker', 'Waterfall', 'Funnel'])
|
259
259
|
return false unless type_validator.valid?(@type)
|
260
260
|
return false if @data_point_type.nil?
|
261
261
|
data_point_type_validator = EnumAttributeValidator.new('String', ['OneValue', 'Scatter', 'Bubble'])
|
@@ -266,7 +266,7 @@ module AsposeSlidesCloud
|
|
266
266
|
# Custom attribute writer method checking allowed values (enum).
|
267
267
|
# @param [Object] type Object to be assigned
|
268
268
|
def type=(type)
|
269
|
-
validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes'])
|
269
|
+
validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes', 'Treemap', 'Sunburst', 'Histogram', 'ParetoLine', 'BoxAndWhisker', 'Waterfall', 'Funnel'])
|
270
270
|
unless validator.valid?(type)
|
271
271
|
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
272
272
|
end
|
@@ -188,7 +188,7 @@ module AsposeSlidesCloud
|
|
188
188
|
:'chart_type' => :'String',
|
189
189
|
:'show_data_labels_over_maximum' => :'BOOLEAN',
|
190
190
|
:'series' => :'Array<Series>',
|
191
|
-
:'categories' => :'Array<
|
191
|
+
:'categories' => :'Array<ChartCategory>',
|
192
192
|
:'title' => :'ChartTitle',
|
193
193
|
:'back_wall' => :'ChartWall',
|
194
194
|
:'side_wall' => :'ChartWall',
|
@@ -364,7 +364,7 @@ module AsposeSlidesCloud
|
|
364
364
|
shape_type_validator = EnumAttributeValidator.new('String', ['Custom', 'Line', 'LineInverse', 'Triangle', 'RightTriangle', 'Rectangle', 'Diamond', 'Parallelogram', 'Trapezoid', 'NonIsoscelesTrapezoid', 'Pentagon', 'Hexagon', 'Heptagon', 'Octagon', 'Decagon', 'Dodecagon', 'FourPointedStar', 'FivePointedStar', 'SixPointedStar', 'SevenPointedStar', 'EightPointedStar', 'TenPointedStar', 'TwelvePointedStar', 'SixteenPointedStar', 'TwentyFourPointedStar', 'ThirtyTwoPointedStar', 'RoundCornerRectangle', 'OneRoundCornerRectangle', 'TwoSamesideRoundCornerRectangle', 'TwoDiagonalRoundCornerRectangle', 'OneSnipOneRoundCornerRectangle', 'OneSnipCornerRectangle', 'TwoSamesideSnipCornerRectangle', 'TwoDiagonalSnipCornerRectangle', 'Plaque', 'Ellipse', 'Teardrop', 'HomePlate', 'Chevron', 'PieWedge', 'Pie', 'BlockArc', 'Donut', 'NoSmoking', 'RightArrow', 'LeftArrow', 'UpArrow', 'DownArrow', 'StripedRightArrow', 'NotchedRightArrow', 'BentUpArrow', 'LeftRightArrow', 'UpDownArrow', 'LeftUpArrow', 'LeftRightUpArrow', 'QuadArrow', 'CalloutLeftArrow', 'CalloutRightArrow', 'CalloutUpArrow', 'CalloutDownArrow', 'CalloutLeftRightArrow', 'CalloutUpDownArrow', 'CalloutQuadArrow', 'BentArrow', 'UTurnArrow', 'CircularArrow', 'LeftCircularArrow', 'LeftRightCircularArrow', 'CurvedRightArrow', 'CurvedLeftArrow', 'CurvedUpArrow', 'CurvedDownArrow', 'SwooshArrow', 'Cube', 'Can', 'LightningBolt', 'Heart', 'Sun', 'Moon', 'SmileyFace', 'IrregularSeal1', 'IrregularSeal2', 'FoldedCorner', 'Bevel', 'Frame', 'HalfFrame', 'Corner', 'DiagonalStripe', 'Chord', 'CurvedArc', 'LeftBracket', 'RightBracket', 'LeftBrace', 'RightBrace', 'BracketPair', 'BracePair', 'StraightConnector1', 'BentConnector2', 'BentConnector3', 'BentConnector4', 'BentConnector5', 'CurvedConnector2', 'CurvedConnector3', 'CurvedConnector4', 'CurvedConnector5', 'Callout1', 'Callout2', 'Callout3', 'Callout1WithAccent', 'Callout2WithAccent', 'Callout3WithAccent', 'Callout1WithBorder', 'Callout2WithBorder', 'Callout3WithBorder', 'Callout1WithBorderAndAccent', 'Callout2WithBorderAndAccent', 'Callout3WithBorderAndAccent', 'CalloutWedgeRectangle', 'CalloutWedgeRoundRectangle', 'CalloutWedgeEllipse', 'CalloutCloud', 'Cloud', 'Ribbon', 'Ribbon2', 'EllipseRibbon', 'EllipseRibbon2', 'LeftRightRibbon', 'VerticalScroll', 'HorizontalScroll', 'Wave', 'DoubleWave', 'Plus', 'ProcessFlow', 'DecisionFlow', 'InputOutputFlow', 'PredefinedProcessFlow', 'InternalStorageFlow', 'DocumentFlow', 'MultiDocumentFlow', 'TerminatorFlow', 'PreparationFlow', 'ManualInputFlow', 'ManualOperationFlow', 'ConnectorFlow', 'PunchedCardFlow', 'PunchedTapeFlow', 'SummingJunctionFlow', 'OrFlow', 'CollateFlow', 'SortFlow', 'ExtractFlow', 'MergeFlow', 'OfflineStorageFlow', 'OnlineStorageFlow', 'MagneticTapeFlow', 'MagneticDiskFlow', 'MagneticDrumFlow', 'DisplayFlow', 'DelayFlow', 'AlternateProcessFlow', 'OffPageConnectorFlow', 'BlankButton', 'HomeButton', 'HelpButton', 'InformationButton', 'ForwardOrNextButton', 'BackOrPreviousButton', 'EndButton', 'BeginningButton', 'ReturnButton', 'DocumentButton', 'SoundButton', 'MovieButton', 'Gear6', 'Gear9', 'Funnel', 'PlusMath', 'MinusMath', 'MultiplyMath', 'DivideMath', 'EqualMath', 'NotEqualMath', 'CornerTabs', 'SquareTabs', 'PlaqueTabs', 'ChartX', 'ChartStar', 'ChartPlus', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'Diagram', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'NotDefined'])
|
365
365
|
return false unless shape_type_validator.valid?(@shape_type)
|
366
366
|
return false if @chart_type.nil?
|
367
|
-
chart_type_validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes'])
|
367
|
+
chart_type_validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes', 'Treemap', 'Sunburst', 'Histogram', 'ParetoLine', 'BoxAndWhisker', 'Waterfall', 'Funnel'])
|
368
368
|
return false unless chart_type_validator.valid?(@chart_type)
|
369
369
|
true
|
370
370
|
end
|
@@ -392,7 +392,7 @@ module AsposeSlidesCloud
|
|
392
392
|
# Custom attribute writer method checking allowed values (enum).
|
393
393
|
# @param [Object] chart_type Object to be assigned
|
394
394
|
def chart_type=(chart_type)
|
395
|
-
validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes'])
|
395
|
+
validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes', 'Treemap', 'Sunburst', 'Histogram', 'ParetoLine', 'BoxAndWhisker', 'Waterfall', 'Funnel'])
|
396
396
|
unless validator.valid?(chart_type)
|
397
397
|
fail ArgumentError, 'invalid value for "chart_type", must be one of #{validator.allowable_values}.'
|
398
398
|
end
|
@@ -34,6 +34,9 @@ module AsposeSlidesCloud
|
|
34
34
|
# Link to Document properties.
|
35
35
|
attr_accessor :document_properties
|
36
36
|
|
37
|
+
# Link to Document properties.
|
38
|
+
attr_accessor :view_properties
|
39
|
+
|
37
40
|
# Link to slides collection.
|
38
41
|
attr_accessor :slides
|
39
42
|
|
@@ -52,6 +55,7 @@ module AsposeSlidesCloud
|
|
52
55
|
:'self_uri' => :'SelfUri',
|
53
56
|
:'alternate_links' => :'AlternateLinks',
|
54
57
|
:'document_properties' => :'DocumentProperties',
|
58
|
+
:'view_properties' => :'ViewProperties',
|
55
59
|
:'slides' => :'Slides',
|
56
60
|
:'images' => :'Images',
|
57
61
|
:'layout_slides' => :'LayoutSlides',
|
@@ -65,6 +69,7 @@ module AsposeSlidesCloud
|
|
65
69
|
:'self_uri' => :'ResourceUri',
|
66
70
|
:'alternate_links' => :'Array<ResourceUri>',
|
67
71
|
:'document_properties' => :'ResourceUriElement',
|
72
|
+
:'view_properties' => :'ResourceUriElement',
|
68
73
|
:'slides' => :'ResourceUriElement',
|
69
74
|
:'images' => :'ResourceUriElement',
|
70
75
|
:'layout_slides' => :'ResourceUriElement',
|
@@ -94,6 +99,10 @@ module AsposeSlidesCloud
|
|
94
99
|
self.document_properties = attributes[:'DocumentProperties']
|
95
100
|
end
|
96
101
|
|
102
|
+
if attributes.has_key?(:'ViewProperties')
|
103
|
+
self.view_properties = attributes[:'ViewProperties']
|
104
|
+
end
|
105
|
+
|
97
106
|
if attributes.has_key?(:'Slides')
|
98
107
|
self.slides = attributes[:'Slides']
|
99
108
|
end
|
@@ -132,6 +141,7 @@ module AsposeSlidesCloud
|
|
132
141
|
self_uri == o.self_uri &&
|
133
142
|
alternate_links == o.alternate_links &&
|
134
143
|
document_properties == o.document_properties &&
|
144
|
+
view_properties == o.view_properties &&
|
135
145
|
slides == o.slides &&
|
136
146
|
images == o.images &&
|
137
147
|
layout_slides == o.layout_slides &&
|
@@ -147,7 +157,7 @@ module AsposeSlidesCloud
|
|
147
157
|
# Calculates hash code according to all attributes.
|
148
158
|
# @return [Fixnum] Hash code
|
149
159
|
def hash
|
150
|
-
[self_uri, alternate_links, document_properties, slides, images, layout_slides, master_slides].hash
|
160
|
+
[self_uri, alternate_links, document_properties, view_properties, slides, images, layout_slides, master_slides].hash
|
151
161
|
end
|
152
162
|
|
153
163
|
# Builds the object from hash
|
@@ -34,6 +34,9 @@ module AsposeSlidesCloud
|
|
34
34
|
# Link to Document properties.
|
35
35
|
attr_accessor :document_properties
|
36
36
|
|
37
|
+
# Link to Document properties.
|
38
|
+
attr_accessor :view_properties
|
39
|
+
|
37
40
|
# Link to slides collection.
|
38
41
|
attr_accessor :slides
|
39
42
|
|
@@ -55,6 +58,7 @@ module AsposeSlidesCloud
|
|
55
58
|
:'self_uri' => :'SelfUri',
|
56
59
|
:'alternate_links' => :'AlternateLinks',
|
57
60
|
:'document_properties' => :'DocumentProperties',
|
61
|
+
:'view_properties' => :'ViewProperties',
|
58
62
|
:'slides' => :'Slides',
|
59
63
|
:'images' => :'Images',
|
60
64
|
:'layout_slides' => :'LayoutSlides',
|
@@ -69,6 +73,7 @@ module AsposeSlidesCloud
|
|
69
73
|
:'self_uri' => :'ResourceUri',
|
70
74
|
:'alternate_links' => :'Array<ResourceUri>',
|
71
75
|
:'document_properties' => :'ResourceUriElement',
|
76
|
+
:'view_properties' => :'ResourceUriElement',
|
72
77
|
:'slides' => :'ResourceUriElement',
|
73
78
|
:'images' => :'ResourceUriElement',
|
74
79
|
:'layout_slides' => :'ResourceUriElement',
|
@@ -99,6 +104,10 @@ module AsposeSlidesCloud
|
|
99
104
|
self.document_properties = attributes[:'DocumentProperties']
|
100
105
|
end
|
101
106
|
|
107
|
+
if attributes.has_key?(:'ViewProperties')
|
108
|
+
self.view_properties = attributes[:'ViewProperties']
|
109
|
+
end
|
110
|
+
|
102
111
|
if attributes.has_key?(:'Slides')
|
103
112
|
self.slides = attributes[:'Slides']
|
104
113
|
end
|
@@ -146,6 +155,7 @@ module AsposeSlidesCloud
|
|
146
155
|
self_uri == o.self_uri &&
|
147
156
|
alternate_links == o.alternate_links &&
|
148
157
|
document_properties == o.document_properties &&
|
158
|
+
view_properties == o.view_properties &&
|
149
159
|
slides == o.slides &&
|
150
160
|
images == o.images &&
|
151
161
|
layout_slides == o.layout_slides &&
|
@@ -162,7 +172,7 @@ module AsposeSlidesCloud
|
|
162
172
|
# Calculates hash code according to all attributes.
|
163
173
|
# @return [Fixnum] Hash code
|
164
174
|
def hash
|
165
|
-
[self_uri, alternate_links, document_properties, slides, images, layout_slides, master_slides, matches].hash
|
175
|
+
[self_uri, alternate_links, document_properties, view_properties, slides, images, layout_slides, master_slides, matches].hash
|
166
176
|
end
|
167
177
|
|
168
178
|
# Builds the object from hash
|
@@ -255,7 +255,7 @@ module AsposeSlidesCloud
|
|
255
255
|
# Check to see if the all the properties in the model are valid
|
256
256
|
# @return true if the model is valid
|
257
257
|
def valid?
|
258
|
-
type_validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes'])
|
258
|
+
type_validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes', 'Treemap', 'Sunburst', 'Histogram', 'ParetoLine', 'BoxAndWhisker', 'Waterfall', 'Funnel'])
|
259
259
|
return false unless type_validator.valid?(@type)
|
260
260
|
return false if @data_point_type.nil?
|
261
261
|
data_point_type_validator = EnumAttributeValidator.new('String', ['OneValue', 'Scatter', 'Bubble'])
|
@@ -266,7 +266,7 @@ module AsposeSlidesCloud
|
|
266
266
|
# Custom attribute writer method checking allowed values (enum).
|
267
267
|
# @param [Object] type Object to be assigned
|
268
268
|
def type=(type)
|
269
|
-
validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes'])
|
269
|
+
validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes', 'Treemap', 'Sunburst', 'Histogram', 'ParetoLine', 'BoxAndWhisker', 'Waterfall', 'Funnel'])
|
270
270
|
unless validator.valid?(type)
|
271
271
|
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
272
272
|
end
|
@@ -255,7 +255,7 @@ module AsposeSlidesCloud
|
|
255
255
|
# Check to see if the all the properties in the model are valid
|
256
256
|
# @return true if the model is valid
|
257
257
|
def valid?
|
258
|
-
type_validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes'])
|
258
|
+
type_validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes', 'Treemap', 'Sunburst', 'Histogram', 'ParetoLine', 'BoxAndWhisker', 'Waterfall', 'Funnel'])
|
259
259
|
return false unless type_validator.valid?(@type)
|
260
260
|
return false if @data_point_type.nil?
|
261
261
|
data_point_type_validator = EnumAttributeValidator.new('String', ['OneValue', 'Scatter', 'Bubble'])
|
@@ -266,7 +266,7 @@ module AsposeSlidesCloud
|
|
266
266
|
# Custom attribute writer method checking allowed values (enum).
|
267
267
|
# @param [Object] type Object to be assigned
|
268
268
|
def type=(type)
|
269
|
-
validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes'])
|
269
|
+
validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes', 'Treemap', 'Sunburst', 'Histogram', 'ParetoLine', 'BoxAndWhisker', 'Waterfall', 'Funnel'])
|
270
270
|
unless validator.valid?(type)
|
271
271
|
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
272
272
|
end
|
@@ -231,7 +231,7 @@ module AsposeSlidesCloud
|
|
231
231
|
# Check to see if the all the properties in the model are valid
|
232
232
|
# @return true if the model is valid
|
233
233
|
def valid?
|
234
|
-
type_validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes'])
|
234
|
+
type_validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes', 'Treemap', 'Sunburst', 'Histogram', 'ParetoLine', 'BoxAndWhisker', 'Waterfall', 'Funnel'])
|
235
235
|
return false unless type_validator.valid?(@type)
|
236
236
|
true
|
237
237
|
end
|
@@ -239,7 +239,7 @@ module AsposeSlidesCloud
|
|
239
239
|
# Custom attribute writer method checking allowed values (enum).
|
240
240
|
# @param [Object] type Object to be assigned
|
241
241
|
def type=(type)
|
242
|
-
validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes'])
|
242
|
+
validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes', 'Treemap', 'Sunburst', 'Histogram', 'ParetoLine', 'BoxAndWhisker', 'Waterfall', 'Funnel'])
|
243
243
|
unless validator.valid?(type)
|
244
244
|
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
245
245
|
end
|
data/spec/api/slides_api_spec.rb
CHANGED
@@ -11392,6 +11392,113 @@ describe 'SlidesApi' do
|
|
11392
11392
|
end
|
11393
11393
|
end
|
11394
11394
|
|
11395
|
+
# unit tests for get_slides_view_properties
|
11396
|
+
# Read presentation document properties.
|
11397
|
+
# @param name Document name.
|
11398
|
+
# @param [Hash] opts the optional parameters
|
11399
|
+
# @option opts [String] :password Document password.
|
11400
|
+
# @option opts [String] :folder Document folder.
|
11401
|
+
# @option opts [String] :storage Document storage.
|
11402
|
+
# @return [ViewProperties]
|
11403
|
+
describe 'get_slides_view_properties test' do
|
11404
|
+
it 'should work' do
|
11405
|
+
requestParam = AsposeSlidesCloud::GetSlidesViewPropertiesRequest.new
|
11406
|
+
requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'GetSlidesViewProperties', 'String')
|
11407
|
+
requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'GetSlidesViewProperties', 'String')
|
11408
|
+
requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'GetSlidesViewProperties', 'String')
|
11409
|
+
requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'GetSlidesViewProperties', 'String')
|
11410
|
+
AsposeSlidesCloud::SpecUtils.initialize('GetSlidesViewProperties', nil, nil)
|
11411
|
+
o, c, _h = AsposeSlidesCloud::SpecUtils.api.get_slides_view_properties_with_http_info(requestParam)
|
11412
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('GetSlidesViewProperties', nil, nil)
|
11413
|
+
expect(c).to eq(code)
|
11414
|
+
expect(o).not_to be_nil
|
11415
|
+
end
|
11416
|
+
|
11417
|
+
it 'invalid name' do
|
11418
|
+
requestParam = AsposeSlidesCloud::GetSlidesViewPropertiesRequest.new
|
11419
|
+
requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'GetSlidesViewProperties', 'String')
|
11420
|
+
requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'GetSlidesViewProperties', 'String')
|
11421
|
+
requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'GetSlidesViewProperties', 'String')
|
11422
|
+
requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'GetSlidesViewProperties', 'String')
|
11423
|
+
requestParam.name = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'GetSlidesViewProperties', requestParam.name, 'String')
|
11424
|
+
AsposeSlidesCloud::SpecUtils.initialize('GetSlidesViewProperties', 'name', requestParam.name)
|
11425
|
+
begin
|
11426
|
+
AsposeSlidesCloud::SpecUtils.api.get_slides_view_properties_with_http_info(requestParam)
|
11427
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('GetSlidesViewProperties', 'name')
|
11428
|
+
fail "An exception expected"
|
11429
|
+
end
|
11430
|
+
rescue AsposeSlidesCloud::ApiError => e
|
11431
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('GetSlidesViewProperties', 'name', requestParam.name)
|
11432
|
+
expect(e.code).to eq(code)
|
11433
|
+
expect(e.response_body).to include(message)
|
11434
|
+
rescue
|
11435
|
+
end
|
11436
|
+
end
|
11437
|
+
|
11438
|
+
it 'invalid password' do
|
11439
|
+
requestParam = AsposeSlidesCloud::GetSlidesViewPropertiesRequest.new
|
11440
|
+
requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'GetSlidesViewProperties', 'String')
|
11441
|
+
requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'GetSlidesViewProperties', 'String')
|
11442
|
+
requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'GetSlidesViewProperties', 'String')
|
11443
|
+
requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'GetSlidesViewProperties', 'String')
|
11444
|
+
requestParam.password = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'GetSlidesViewProperties', requestParam.password, 'String')
|
11445
|
+
AsposeSlidesCloud::SpecUtils.initialize('GetSlidesViewProperties', 'password', requestParam.password)
|
11446
|
+
begin
|
11447
|
+
AsposeSlidesCloud::SpecUtils.api.get_slides_view_properties_with_http_info(requestParam)
|
11448
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('GetSlidesViewProperties', 'password')
|
11449
|
+
fail "An exception expected"
|
11450
|
+
end
|
11451
|
+
rescue AsposeSlidesCloud::ApiError => e
|
11452
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('GetSlidesViewProperties', 'password', requestParam.password)
|
11453
|
+
expect(e.code).to eq(code)
|
11454
|
+
expect(e.response_body).to include(message)
|
11455
|
+
rescue
|
11456
|
+
end
|
11457
|
+
end
|
11458
|
+
|
11459
|
+
it 'invalid folder' do
|
11460
|
+
requestParam = AsposeSlidesCloud::GetSlidesViewPropertiesRequest.new
|
11461
|
+
requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'GetSlidesViewProperties', 'String')
|
11462
|
+
requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'GetSlidesViewProperties', 'String')
|
11463
|
+
requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'GetSlidesViewProperties', 'String')
|
11464
|
+
requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'GetSlidesViewProperties', 'String')
|
11465
|
+
requestParam.folder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'GetSlidesViewProperties', requestParam.folder, 'String')
|
11466
|
+
AsposeSlidesCloud::SpecUtils.initialize('GetSlidesViewProperties', 'folder', requestParam.folder)
|
11467
|
+
begin
|
11468
|
+
AsposeSlidesCloud::SpecUtils.api.get_slides_view_properties_with_http_info(requestParam)
|
11469
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('GetSlidesViewProperties', 'folder')
|
11470
|
+
fail "An exception expected"
|
11471
|
+
end
|
11472
|
+
rescue AsposeSlidesCloud::ApiError => e
|
11473
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('GetSlidesViewProperties', 'folder', requestParam.folder)
|
11474
|
+
expect(e.code).to eq(code)
|
11475
|
+
expect(e.response_body).to include(message)
|
11476
|
+
rescue
|
11477
|
+
end
|
11478
|
+
end
|
11479
|
+
|
11480
|
+
it 'invalid storage' do
|
11481
|
+
requestParam = AsposeSlidesCloud::GetSlidesViewPropertiesRequest.new
|
11482
|
+
requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'GetSlidesViewProperties', 'String')
|
11483
|
+
requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'GetSlidesViewProperties', 'String')
|
11484
|
+
requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'GetSlidesViewProperties', 'String')
|
11485
|
+
requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'GetSlidesViewProperties', 'String')
|
11486
|
+
requestParam.storage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'GetSlidesViewProperties', requestParam.storage, 'String')
|
11487
|
+
AsposeSlidesCloud::SpecUtils.initialize('GetSlidesViewProperties', 'storage', requestParam.storage)
|
11488
|
+
begin
|
11489
|
+
AsposeSlidesCloud::SpecUtils.api.get_slides_view_properties_with_http_info(requestParam)
|
11490
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('GetSlidesViewProperties', 'storage')
|
11491
|
+
fail "An exception expected"
|
11492
|
+
end
|
11493
|
+
rescue AsposeSlidesCloud::ApiError => e
|
11494
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('GetSlidesViewProperties', 'storage', requestParam.storage)
|
11495
|
+
expect(e.code).to eq(code)
|
11496
|
+
expect(e.response_body).to include(message)
|
11497
|
+
rescue
|
11498
|
+
end
|
11499
|
+
end
|
11500
|
+
end
|
11501
|
+
|
11395
11502
|
# unit tests for move_file
|
11396
11503
|
# Move file
|
11397
11504
|
# @param src_path Source file path e.g. '/src.ext'
|
@@ -23101,6 +23208,141 @@ describe 'SlidesApi' do
|
|
23101
23208
|
end
|
23102
23209
|
end
|
23103
23210
|
|
23211
|
+
# unit tests for put_slides_view_properties
|
23212
|
+
# Update presentation document properties.
|
23213
|
+
# @param name Document name.
|
23214
|
+
# @param [Hash] opts the optional parameters
|
23215
|
+
# @option opts [ViewProperties] :dto The view properties data.
|
23216
|
+
# @option opts [String] :password Document password.
|
23217
|
+
# @option opts [String] :folder Document folder.
|
23218
|
+
# @option opts [String] :storage Document storage.
|
23219
|
+
# @return [DocumentProperty]
|
23220
|
+
describe 'put_slides_view_properties test' do
|
23221
|
+
it 'should work' do
|
23222
|
+
requestParam = AsposeSlidesCloud::PutSlidesViewPropertiesRequest.new
|
23223
|
+
requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutSlidesViewProperties', 'String')
|
23224
|
+
requestParam.dto = AsposeSlidesCloud::SpecUtils.get_param_value('dto', 'PutSlidesViewProperties', 'ViewProperties')
|
23225
|
+
requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutSlidesViewProperties', 'String')
|
23226
|
+
requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutSlidesViewProperties', 'String')
|
23227
|
+
requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutSlidesViewProperties', 'String')
|
23228
|
+
AsposeSlidesCloud::SpecUtils.initialize('PutSlidesViewProperties', nil, nil)
|
23229
|
+
o, c, _h = AsposeSlidesCloud::SpecUtils.api.put_slides_view_properties_with_http_info(requestParam)
|
23230
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutSlidesViewProperties', nil, nil)
|
23231
|
+
expect(c).to eq(code)
|
23232
|
+
expect(o).not_to be_nil
|
23233
|
+
end
|
23234
|
+
|
23235
|
+
it 'invalid name' do
|
23236
|
+
requestParam = AsposeSlidesCloud::PutSlidesViewPropertiesRequest.new
|
23237
|
+
requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutSlidesViewProperties', 'String')
|
23238
|
+
requestParam.dto = AsposeSlidesCloud::SpecUtils.get_param_value('dto', 'PutSlidesViewProperties', 'ViewProperties')
|
23239
|
+
requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutSlidesViewProperties', 'String')
|
23240
|
+
requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutSlidesViewProperties', 'String')
|
23241
|
+
requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutSlidesViewProperties', 'String')
|
23242
|
+
requestParam.name = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'PutSlidesViewProperties', requestParam.name, 'String')
|
23243
|
+
AsposeSlidesCloud::SpecUtils.initialize('PutSlidesViewProperties', 'name', requestParam.name)
|
23244
|
+
begin
|
23245
|
+
AsposeSlidesCloud::SpecUtils.api.put_slides_view_properties_with_http_info(requestParam)
|
23246
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('PutSlidesViewProperties', 'name')
|
23247
|
+
fail "An exception expected"
|
23248
|
+
end
|
23249
|
+
rescue AsposeSlidesCloud::ApiError => e
|
23250
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutSlidesViewProperties', 'name', requestParam.name)
|
23251
|
+
expect(e.code).to eq(code)
|
23252
|
+
expect(e.response_body).to include(message)
|
23253
|
+
rescue
|
23254
|
+
end
|
23255
|
+
end
|
23256
|
+
|
23257
|
+
it 'invalid dto' do
|
23258
|
+
requestParam = AsposeSlidesCloud::PutSlidesViewPropertiesRequest.new
|
23259
|
+
requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutSlidesViewProperties', 'String')
|
23260
|
+
requestParam.dto = AsposeSlidesCloud::SpecUtils.get_param_value('dto', 'PutSlidesViewProperties', 'ViewProperties')
|
23261
|
+
requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutSlidesViewProperties', 'String')
|
23262
|
+
requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutSlidesViewProperties', 'String')
|
23263
|
+
requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutSlidesViewProperties', 'String')
|
23264
|
+
requestParam.dto = AsposeSlidesCloud::SpecUtils.invalidize_param_value('dto', 'PutSlidesViewProperties', requestParam.dto, 'ViewProperties')
|
23265
|
+
AsposeSlidesCloud::SpecUtils.initialize('PutSlidesViewProperties', 'dto', requestParam.dto)
|
23266
|
+
begin
|
23267
|
+
AsposeSlidesCloud::SpecUtils.api.put_slides_view_properties_with_http_info(requestParam)
|
23268
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('PutSlidesViewProperties', 'dto')
|
23269
|
+
fail "An exception expected"
|
23270
|
+
end
|
23271
|
+
rescue AsposeSlidesCloud::ApiError => e
|
23272
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutSlidesViewProperties', 'dto', requestParam.dto)
|
23273
|
+
expect(e.code).to eq(code)
|
23274
|
+
expect(e.response_body).to include(message)
|
23275
|
+
rescue
|
23276
|
+
end
|
23277
|
+
end
|
23278
|
+
|
23279
|
+
it 'invalid password' do
|
23280
|
+
requestParam = AsposeSlidesCloud::PutSlidesViewPropertiesRequest.new
|
23281
|
+
requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutSlidesViewProperties', 'String')
|
23282
|
+
requestParam.dto = AsposeSlidesCloud::SpecUtils.get_param_value('dto', 'PutSlidesViewProperties', 'ViewProperties')
|
23283
|
+
requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutSlidesViewProperties', 'String')
|
23284
|
+
requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutSlidesViewProperties', 'String')
|
23285
|
+
requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutSlidesViewProperties', 'String')
|
23286
|
+
requestParam.password = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'PutSlidesViewProperties', requestParam.password, 'String')
|
23287
|
+
AsposeSlidesCloud::SpecUtils.initialize('PutSlidesViewProperties', 'password', requestParam.password)
|
23288
|
+
begin
|
23289
|
+
AsposeSlidesCloud::SpecUtils.api.put_slides_view_properties_with_http_info(requestParam)
|
23290
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('PutSlidesViewProperties', 'password')
|
23291
|
+
fail "An exception expected"
|
23292
|
+
end
|
23293
|
+
rescue AsposeSlidesCloud::ApiError => e
|
23294
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutSlidesViewProperties', 'password', requestParam.password)
|
23295
|
+
expect(e.code).to eq(code)
|
23296
|
+
expect(e.response_body).to include(message)
|
23297
|
+
rescue
|
23298
|
+
end
|
23299
|
+
end
|
23300
|
+
|
23301
|
+
it 'invalid folder' do
|
23302
|
+
requestParam = AsposeSlidesCloud::PutSlidesViewPropertiesRequest.new
|
23303
|
+
requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutSlidesViewProperties', 'String')
|
23304
|
+
requestParam.dto = AsposeSlidesCloud::SpecUtils.get_param_value('dto', 'PutSlidesViewProperties', 'ViewProperties')
|
23305
|
+
requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutSlidesViewProperties', 'String')
|
23306
|
+
requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutSlidesViewProperties', 'String')
|
23307
|
+
requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutSlidesViewProperties', 'String')
|
23308
|
+
requestParam.folder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'PutSlidesViewProperties', requestParam.folder, 'String')
|
23309
|
+
AsposeSlidesCloud::SpecUtils.initialize('PutSlidesViewProperties', 'folder', requestParam.folder)
|
23310
|
+
begin
|
23311
|
+
AsposeSlidesCloud::SpecUtils.api.put_slides_view_properties_with_http_info(requestParam)
|
23312
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('PutSlidesViewProperties', 'folder')
|
23313
|
+
fail "An exception expected"
|
23314
|
+
end
|
23315
|
+
rescue AsposeSlidesCloud::ApiError => e
|
23316
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutSlidesViewProperties', 'folder', requestParam.folder)
|
23317
|
+
expect(e.code).to eq(code)
|
23318
|
+
expect(e.response_body).to include(message)
|
23319
|
+
rescue
|
23320
|
+
end
|
23321
|
+
end
|
23322
|
+
|
23323
|
+
it 'invalid storage' do
|
23324
|
+
requestParam = AsposeSlidesCloud::PutSlidesViewPropertiesRequest.new
|
23325
|
+
requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutSlidesViewProperties', 'String')
|
23326
|
+
requestParam.dto = AsposeSlidesCloud::SpecUtils.get_param_value('dto', 'PutSlidesViewProperties', 'ViewProperties')
|
23327
|
+
requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutSlidesViewProperties', 'String')
|
23328
|
+
requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutSlidesViewProperties', 'String')
|
23329
|
+
requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutSlidesViewProperties', 'String')
|
23330
|
+
requestParam.storage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'PutSlidesViewProperties', requestParam.storage, 'String')
|
23331
|
+
AsposeSlidesCloud::SpecUtils.initialize('PutSlidesViewProperties', 'storage', requestParam.storage)
|
23332
|
+
begin
|
23333
|
+
AsposeSlidesCloud::SpecUtils.api.put_slides_view_properties_with_http_info(requestParam)
|
23334
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('PutSlidesViewProperties', 'storage')
|
23335
|
+
fail "An exception expected"
|
23336
|
+
end
|
23337
|
+
rescue AsposeSlidesCloud::ApiError => e
|
23338
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutSlidesViewProperties', 'storage', requestParam.storage)
|
23339
|
+
expect(e.code).to eq(code)
|
23340
|
+
expect(e.response_body).to include(message)
|
23341
|
+
rescue
|
23342
|
+
end
|
23343
|
+
end
|
23344
|
+
end
|
23345
|
+
|
23104
23346
|
# unit tests for put_update_notes_slide
|
23105
23347
|
# Update notes slide properties.
|
23106
23348
|
# @param name Document name.
|
@@ -24106,7 +24348,6 @@ describe 'SlidesApi' do
|
|
24106
24348
|
|
24107
24349
|
# unit tests for upload_file
|
24108
24350
|
# Upload file
|
24109
|
-
# @param file File to upload
|
24110
24351
|
# @param [Hash] opts the optional parameters
|
24111
24352
|
# @option opts [String] :path Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header.
|
24112
24353
|
# @option opts [String] :storage_name Storage name
|
@@ -24114,7 +24355,6 @@ describe 'SlidesApi' do
|
|
24114
24355
|
describe 'upload_file test' do
|
24115
24356
|
it 'should work' do
|
24116
24357
|
requestParam = AsposeSlidesCloud::UploadFileRequest.new
|
24117
|
-
requestParam.file = AsposeSlidesCloud::SpecUtils.get_param_value('file', 'UploadFile', 'File')
|
24118
24358
|
requestParam.path = AsposeSlidesCloud::SpecUtils.get_param_value('path', 'UploadFile', 'String')
|
24119
24359
|
requestParam.storage_name = AsposeSlidesCloud::SpecUtils.get_param_value('storageName', 'UploadFile', 'String')
|
24120
24360
|
AsposeSlidesCloud::SpecUtils.initialize('UploadFile', nil, nil)
|
@@ -24124,29 +24364,8 @@ describe 'SlidesApi' do
|
|
24124
24364
|
expect(o).not_to be_nil
|
24125
24365
|
end
|
24126
24366
|
|
24127
|
-
it 'invalid file' do
|
24128
|
-
requestParam = AsposeSlidesCloud::UploadFileRequest.new
|
24129
|
-
requestParam.file = AsposeSlidesCloud::SpecUtils.get_param_value('file', 'UploadFile', 'File')
|
24130
|
-
requestParam.path = AsposeSlidesCloud::SpecUtils.get_param_value('path', 'UploadFile', 'String')
|
24131
|
-
requestParam.storage_name = AsposeSlidesCloud::SpecUtils.get_param_value('storageName', 'UploadFile', 'String')
|
24132
|
-
requestParam.file = AsposeSlidesCloud::SpecUtils.invalidize_param_value('file', 'UploadFile', requestParam.file, 'File')
|
24133
|
-
AsposeSlidesCloud::SpecUtils.initialize('UploadFile', 'file', requestParam.file)
|
24134
|
-
begin
|
24135
|
-
AsposeSlidesCloud::SpecUtils.api.upload_file_with_http_info(requestParam)
|
24136
|
-
unless AsposeSlidesCloud::SpecUtils.no_exception?('UploadFile', 'file')
|
24137
|
-
fail "An exception expected"
|
24138
|
-
end
|
24139
|
-
rescue AsposeSlidesCloud::ApiError => e
|
24140
|
-
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('UploadFile', 'file', requestParam.file)
|
24141
|
-
expect(e.code).to eq(code)
|
24142
|
-
expect(e.response_body).to include(message)
|
24143
|
-
rescue
|
24144
|
-
end
|
24145
|
-
end
|
24146
|
-
|
24147
24367
|
it 'invalid path' do
|
24148
24368
|
requestParam = AsposeSlidesCloud::UploadFileRequest.new
|
24149
|
-
requestParam.file = AsposeSlidesCloud::SpecUtils.get_param_value('file', 'UploadFile', 'File')
|
24150
24369
|
requestParam.path = AsposeSlidesCloud::SpecUtils.get_param_value('path', 'UploadFile', 'String')
|
24151
24370
|
requestParam.storage_name = AsposeSlidesCloud::SpecUtils.get_param_value('storageName', 'UploadFile', 'String')
|
24152
24371
|
requestParam.path = AsposeSlidesCloud::SpecUtils.invalidize_param_value('path', 'UploadFile', requestParam.path, 'String')
|
@@ -24166,7 +24385,6 @@ describe 'SlidesApi' do
|
|
24166
24385
|
|
24167
24386
|
it 'invalid storage_name' do
|
24168
24387
|
requestParam = AsposeSlidesCloud::UploadFileRequest.new
|
24169
|
-
requestParam.file = AsposeSlidesCloud::SpecUtils.get_param_value('file', 'UploadFile', 'File')
|
24170
24388
|
requestParam.path = AsposeSlidesCloud::SpecUtils.get_param_value('path', 'UploadFile', 'String')
|
24171
24389
|
requestParam.storage_name = AsposeSlidesCloud::SpecUtils.get_param_value('storageName', 'UploadFile', 'String')
|
24172
24390
|
requestParam.storage_name = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storageName', 'UploadFile', requestParam.storage_name, 'String')
|
data/testRules.json
CHANGED
@@ -194,6 +194,11 @@
|
|
194
194
|
{ "Parameter": "Format", "Language": "NET" },
|
195
195
|
{ "Parameter": "Format", "Language": "Java", "Method": "PostSlidesSplit" },
|
196
196
|
{ "Parameter": "Dto", "Method": "PostAddNotesSlide" },
|
197
|
+
{ "Parameter": "Dto", "Language": "Swift" },
|
198
|
+
{ "Parameter": "Request", "Language": "Swift" },
|
199
|
+
{ "Parameter": "Effect", "Language": "Swift" },
|
200
|
+
{ "Parameter": "Sequence", "Language": "Swift" },
|
201
|
+
{ "Parameter": "Pipeline", "Language": "Swift" },
|
197
202
|
{ "Parameter": "Position", "Method": "PostSlidesReorderPosition" },
|
198
203
|
{ "Parameter": "Name", "Method": "PostSlidesDocument" },
|
199
204
|
{ "Parameter": "Name", "Method": "PostSlidesDocumentFromHtml" },
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aspose_slides_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 20.
|
4
|
+
version: 20.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Putrov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|