aspose_slides_cloud 20.7.0 → 20.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/TestData/ChartTest.pptx +0 -0
- data/lib/aspose_slides_cloud.rb +5 -3
- data/lib/aspose_slides_cloud/api/slides_api.rb +407 -0
- data/lib/aspose_slides_cloud/api/slides_api_requests.rb +165 -0
- data/lib/aspose_slides_cloud/api_client.rb +1 -2
- data/lib/aspose_slides_cloud/models/add_layout_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/add_master_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/add_shape.rb +11 -40
- data/lib/aspose_slides_cloud/models/add_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/api_info.rb +2 -2
- data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +2 -2
- data/lib/aspose_slides_cloud/models/audio_frame.rb +12 -236
- data/lib/aspose_slides_cloud/models/axes.rb +2 -2
- data/lib/aspose_slides_cloud/models/axis.rb +2 -2
- data/lib/aspose_slides_cloud/models/base64_input_file.rb +11 -49
- data/lib/aspose_slides_cloud/models/blur_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +11 -216
- data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +10 -40
- data/lib/aspose_slides_cloud/models/bubble_series.rb +11 -205
- data/lib/aspose_slides_cloud/models/chart.rb +12 -210
- data/lib/aspose_slides_cloud/models/chart_category.rb +16 -4
- data/lib/aspose_slides_cloud/models/chart_title.rb +2 -2
- data/lib/aspose_slides_cloud/models/chart_wall.rb +2 -2
- data/lib/aspose_slides_cloud/models/color_scheme.rb +10 -32
- data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +2 -2
- data/lib/aspose_slides_cloud/models/connector.rb +11 -234
- data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +2 -2
- data/lib/aspose_slides_cloud/models/disc_usage.rb +2 -2
- data/lib/aspose_slides_cloud/models/document.rb +10 -32
- data/lib/aspose_slides_cloud/models/document_properties.rb +10 -32
- data/lib/aspose_slides_cloud/models/document_property.rb +10 -32
- data/lib/aspose_slides_cloud/models/document_replace_result.rb +10 -86
- data/lib/aspose_slides_cloud/models/effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/effect_format.rb +2 -2
- data/lib/aspose_slides_cloud/models/entity_exists.rb +2 -2
- data/lib/aspose_slides_cloud/models/error.rb +2 -2
- data/lib/aspose_slides_cloud/models/error_details.rb +2 -2
- data/lib/aspose_slides_cloud/models/export_options.rb +13 -3
- data/lib/aspose_slides_cloud/models/file_version.rb +10 -67
- data/lib/aspose_slides_cloud/models/file_versions.rb +2 -2
- data/lib/aspose_slides_cloud/models/files_list.rb +2 -2
- data/lib/aspose_slides_cloud/models/files_upload_result.rb +2 -2
- data/lib/aspose_slides_cloud/models/fill_format.rb +2 -2
- data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/font_scheme.rb +10 -32
- data/lib/aspose_slides_cloud/models/font_set.rb +2 -2
- data/lib/aspose_slides_cloud/models/format_scheme.rb +10 -32
- data/lib/aspose_slides_cloud/models/geometry_shape.rb +10 -200
- data/lib/aspose_slides_cloud/models/glow_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/gradient_fill.rb +11 -40
- data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +2 -2
- data/lib/aspose_slides_cloud/models/graphical_object.rb +11 -209
- data/lib/aspose_slides_cloud/models/group_shape.rb +11 -209
- data/lib/aspose_slides_cloud/models/html_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +2 -2
- data/lib/aspose_slides_cloud/models/image.rb +10 -32
- data/lib/aspose_slides_cloud/models/image_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/images.rb +10 -32
- data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/input.rb +2 -2
- data/lib/aspose_slides_cloud/models/input_file.rb +2 -2
- data/lib/aspose_slides_cloud/models/interactive_sequence.rb +2 -2
- data/lib/aspose_slides_cloud/models/layout_slide.rb +10 -32
- data/lib/aspose_slides_cloud/models/layout_slides.rb +10 -32
- data/lib/aspose_slides_cloud/models/legend.rb +2 -2
- data/lib/aspose_slides_cloud/models/line_format.rb +2 -2
- data/lib/aspose_slides_cloud/models/master_slide.rb +10 -32
- data/lib/aspose_slides_cloud/models/master_slides.rb +10 -32
- data/lib/aspose_slides_cloud/models/merge.rb +11 -40
- data/lib/aspose_slides_cloud/models/merging_source.rb +2 -2
- data/lib/aspose_slides_cloud/models/no_fill.rb +9 -38
- data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +2 -2
- data/lib/aspose_slides_cloud/models/notes_slide.rb +10 -32
- data/lib/aspose_slides_cloud/models/object_exist.rb +2 -2
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +12 -210
- data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +10 -12
- data/lib/aspose_slides_cloud/models/one_value_series.rb +11 -205
- data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +2 -2
- data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/output_file.rb +2 -2
- data/lib/aspose_slides_cloud/models/paragraph.rb +10 -32
- data/lib/aspose_slides_cloud/models/paragraphs.rb +10 -32
- data/lib/aspose_slides_cloud/models/path_input_file.rb +11 -49
- data/lib/aspose_slides_cloud/models/path_output_file.rb +11 -40
- data/lib/aspose_slides_cloud/models/pattern_fill.rb +11 -40
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/picture_fill.rb +11 -40
- data/lib/aspose_slides_cloud/models/picture_frame.rb +12 -236
- data/lib/aspose_slides_cloud/models/pipeline.rb +2 -2
- data/lib/aspose_slides_cloud/models/placeholder.rb +10 -32
- data/lib/aspose_slides_cloud/models/placeholders.rb +10 -32
- data/lib/aspose_slides_cloud/models/plot_area.rb +2 -2
- data/lib/aspose_slides_cloud/models/portion.rb +10 -32
- data/lib/aspose_slides_cloud/models/portions.rb +10 -32
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +2 -2
- data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +2 -2
- data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/reflection_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/remove_shape.rb +11 -40
- data/lib/aspose_slides_cloud/models/remove_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/reorder_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/replace_text.rb +11 -40
- data/lib/aspose_slides_cloud/models/request_input_file.rb +11 -49
- data/lib/aspose_slides_cloud/models/reset_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/resource_base.rb +2 -2
- data/lib/aspose_slides_cloud/models/resource_uri.rb +2 -2
- data/lib/aspose_slides_cloud/models/resource_uri_element.rb +2 -2
- data/lib/aspose_slides_cloud/models/response_output_file.rb +9 -38
- data/lib/aspose_slides_cloud/models/save.rb +11 -40
- data/lib/aspose_slides_cloud/models/save_shape.rb +11 -40
- data/lib/aspose_slides_cloud/models/save_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +10 -12
- data/lib/aspose_slides_cloud/models/scatter_series.rb +11 -205
- data/lib/aspose_slides_cloud/models/series.rb +2 -2
- data/lib/aspose_slides_cloud/models/series_marker.rb +2 -2
- data/lib/aspose_slides_cloud/models/shape.rb +11 -234
- data/lib/aspose_slides_cloud/models/shape_base.rb +10 -32
- data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +2 -2
- data/lib/aspose_slides_cloud/models/shapes.rb +10 -32
- data/lib/aspose_slides_cloud/models/slide.rb +10 -32
- data/lib/aspose_slides_cloud/models/slide_animation.rb +10 -32
- data/lib/aspose_slides_cloud/models/slide_background.rb +10 -32
- data/lib/aspose_slides_cloud/models/slide_comment.rb +2 -2
- data/lib/aspose_slides_cloud/models/slide_comments.rb +10 -32
- data/lib/aspose_slides_cloud/models/slide_replace_result.rb +10 -146
- data/lib/aspose_slides_cloud/models/slides.rb +10 -32
- data/lib/aspose_slides_cloud/models/smart_art.rb +12 -210
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +2 -2
- data/lib/aspose_slides_cloud/models/smart_art_shape.rb +11 -209
- data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/solid_fill.rb +11 -40
- data/lib/aspose_slides_cloud/models/split_document_result.rb +10 -32
- data/lib/aspose_slides_cloud/models/storage_exist.rb +2 -2
- data/lib/aspose_slides_cloud/models/storage_file.rb +2 -2
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/table.rb +12 -210
- data/lib/aspose_slides_cloud/models/table_cell.rb +2 -2
- data/lib/aspose_slides_cloud/models/table_column.rb +2 -2
- data/lib/aspose_slides_cloud/models/table_row.rb +2 -2
- data/lib/aspose_slides_cloud/models/task.rb +2 -2
- data/lib/aspose_slides_cloud/models/text_item.rb +2 -2
- data/lib/aspose_slides_cloud/models/text_items.rb +10 -32
- data/lib/aspose_slides_cloud/models/theme.rb +10 -32
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/update_background.rb +11 -40
- data/lib/aspose_slides_cloud/models/update_shape.rb +11 -40
- data/lib/aspose_slides_cloud/models/video_frame.rb +12 -236
- data/lib/aspose_slides_cloud/models/view_properties.rb +10 -32
- data/lib/aspose_slides_cloud/models/waterfall_series.rb +11 -216
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/type_registry.rb +313 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +1417 -63
- data/spec/extra/extra_spec.rb +66 -33
- data/testRules.json +31 -0
- metadata +4 -2
@@ -193,7 +193,7 @@ module AsposeSlidesCloud
|
|
193
193
|
:'tick_label_rotation_angle' => :'TickLabelRotationAngle',
|
194
194
|
:'fill_format' => :'FillFormat',
|
195
195
|
:'effect_format' => :'EffectFormat',
|
196
|
-
:'line_format' => :'LineFormat'
|
196
|
+
:'line_format' => :'LineFormat',
|
197
197
|
}
|
198
198
|
end
|
199
199
|
|
@@ -235,7 +235,7 @@ module AsposeSlidesCloud
|
|
235
235
|
:'tick_label_rotation_angle' => :'Float',
|
236
236
|
:'fill_format' => :'FillFormat',
|
237
237
|
:'effect_format' => :'EffectFormat',
|
238
|
-
:'line_format' => :'LineFormat'
|
238
|
+
:'line_format' => :'LineFormat',
|
239
239
|
}
|
240
240
|
end
|
241
241
|
|
@@ -24,13 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents base64 inline encoded file.
|
27
|
-
class Base64InputFile
|
28
|
-
# Get or sets password to open document.
|
29
|
-
attr_accessor :password
|
30
|
-
|
31
|
-
# File type.
|
32
|
-
attr_accessor :type
|
33
|
-
|
27
|
+
class Base64InputFile < InputFile
|
34
28
|
# Get or sets base64 data.
|
35
29
|
attr_accessor :data
|
36
30
|
|
@@ -58,75 +52,43 @@ module AsposeSlidesCloud
|
|
58
52
|
|
59
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
60
54
|
def self.attribute_map
|
61
|
-
{
|
62
|
-
:'
|
63
|
-
|
64
|
-
:'data' => :'Data'
|
65
|
-
}
|
55
|
+
super.merge({
|
56
|
+
:'data' => :'Data',
|
57
|
+
})
|
66
58
|
end
|
67
59
|
|
68
60
|
# Attribute type mapping.
|
69
61
|
def self.swagger_types
|
70
|
-
{
|
71
|
-
:'
|
72
|
-
|
73
|
-
:'data' => :'String'
|
74
|
-
}
|
62
|
+
super.merge({
|
63
|
+
:'data' => :'String',
|
64
|
+
})
|
75
65
|
end
|
76
66
|
|
77
67
|
# Initializes the object
|
78
68
|
# @param [Hash] attributes Model attributes in the form of hash
|
79
69
|
def initialize(attributes = {})
|
80
|
-
|
81
|
-
|
82
|
-
# convert string to symbol for hash key
|
83
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
84
|
-
|
85
|
-
if attributes.has_key?(:'Password')
|
86
|
-
self.password = attributes[:'Password']
|
87
|
-
end
|
88
|
-
|
89
|
-
if attributes.has_key?(:'Type')
|
90
|
-
self.type = attributes[:'Type']
|
91
|
-
else
|
92
|
-
self.type = "Base64"
|
93
|
-
end
|
70
|
+
super
|
94
71
|
|
95
72
|
if attributes.has_key?(:'Data')
|
96
73
|
self.data = attributes[:'Data']
|
97
74
|
end
|
75
|
+
self.type = "Base64"
|
98
76
|
end
|
99
77
|
|
100
78
|
# Show invalid properties with the reasons. Usually used together with valid?
|
101
79
|
# @return Array for valid properties with the reasons
|
102
80
|
def list_invalid_properties
|
103
|
-
invalid_properties =
|
104
|
-
if @type.nil?
|
105
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
106
|
-
end
|
107
|
-
|
81
|
+
invalid_properties = super
|
108
82
|
invalid_properties
|
109
83
|
end
|
110
84
|
|
111
85
|
# Check to see if the all the properties in the model are valid
|
112
86
|
# @return true if the model is valid
|
113
87
|
def valid?
|
114
|
-
return false if
|
115
|
-
type_validator = EnumAttributeValidator.new('String', ['Path', 'Request', 'Base64'])
|
116
|
-
return false unless type_validator.valid?(@type)
|
88
|
+
return false if !super
|
117
89
|
true
|
118
90
|
end
|
119
91
|
|
120
|
-
# Custom attribute writer method checking allowed values (enum).
|
121
|
-
# @param [Object] type Object to be assigned
|
122
|
-
def type=(type)
|
123
|
-
validator = EnumAttributeValidator.new('String', ['Path', 'Request', 'Base64'])
|
124
|
-
unless validator.valid?(type)
|
125
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
126
|
-
end
|
127
|
-
@type = type
|
128
|
-
end
|
129
|
-
|
130
92
|
# Checks equality by comparing each attribute.
|
131
93
|
# @param [Object] Object to be compared
|
132
94
|
def ==(o)
|
@@ -35,7 +35,7 @@ module AsposeSlidesCloud
|
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
37
|
:'radius' => :'Radius',
|
38
|
-
:'grow' => :'Grow'
|
38
|
+
:'grow' => :'Grow',
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
|
|
43
43
|
def self.swagger_types
|
44
44
|
{
|
45
45
|
:'radius' => :'Float',
|
46
|
-
:'grow' => :'BOOLEAN'
|
46
|
+
:'grow' => :'BOOLEAN',
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|
@@ -24,64 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# One value series.
|
27
|
-
class BoxAndWhiskerSeries
|
28
|
-
# Series type.
|
29
|
-
attr_accessor :type
|
30
|
-
|
31
|
-
# Series name.
|
32
|
-
attr_accessor :name
|
33
|
-
|
34
|
-
# True if each data marker in the series has a different color.
|
35
|
-
attr_accessor :is_color_varied
|
36
|
-
|
37
|
-
# Invert solid color for the series.
|
38
|
-
attr_accessor :inverted_solid_fill_color
|
39
|
-
|
40
|
-
# True if curve smoothing is turned on. Applies only to line and scatter connected by lines charts.
|
41
|
-
attr_accessor :smooth
|
42
|
-
|
43
|
-
# True if the series is plotted on second value axis.
|
44
|
-
attr_accessor :plot_on_second_axis
|
45
|
-
|
46
|
-
# Series order.
|
47
|
-
attr_accessor :order
|
48
|
-
|
49
|
-
# The number format for the series y values.
|
50
|
-
attr_accessor :number_format_of_y_values
|
51
|
-
|
52
|
-
# The number format for the series x values.
|
53
|
-
attr_accessor :number_format_of_x_values
|
54
|
-
|
55
|
-
# The number format for the series values.
|
56
|
-
attr_accessor :number_format_of_values
|
57
|
-
|
58
|
-
# The number format for the series bubble sizes.
|
59
|
-
attr_accessor :number_format_of_bubble_sizes
|
60
|
-
|
61
|
-
# True if the series shall invert its colors if the value is negative. Applies to bar, column and bubble series.
|
62
|
-
attr_accessor :invert_if_negative
|
63
|
-
|
64
|
-
# The distance of an open pie slice from the center of the pie chart is expressed as a percentage of the pie diameter.
|
65
|
-
attr_accessor :explosion
|
66
|
-
|
67
|
-
# Series marker.
|
68
|
-
attr_accessor :marker
|
69
|
-
|
70
|
-
# Fill properties set for the series.
|
71
|
-
attr_accessor :fill_format
|
72
|
-
|
73
|
-
# Effect properties set for the series.
|
74
|
-
attr_accessor :effect_format
|
75
|
-
|
76
|
-
# Line properties set for the series.
|
77
|
-
attr_accessor :line_format
|
78
|
-
|
79
|
-
# Data point type.
|
80
|
-
attr_accessor :data_point_type
|
81
|
-
|
82
|
-
# Gets or sets the values.
|
83
|
-
attr_accessor :data_points
|
84
|
-
|
27
|
+
class BoxAndWhiskerSeries < OneValueSeries
|
85
28
|
# Quartile method.
|
86
29
|
attr_accessor :quartile_method
|
87
30
|
|
@@ -121,151 +64,30 @@ module AsposeSlidesCloud
|
|
121
64
|
|
122
65
|
# Attribute mapping from ruby-style variable name to JSON key.
|
123
66
|
def self.attribute_map
|
124
|
-
{
|
125
|
-
:'type' => :'Type',
|
126
|
-
:'name' => :'Name',
|
127
|
-
:'is_color_varied' => :'IsColorVaried',
|
128
|
-
:'inverted_solid_fill_color' => :'InvertedSolidFillColor',
|
129
|
-
:'smooth' => :'Smooth',
|
130
|
-
:'plot_on_second_axis' => :'PlotOnSecondAxis',
|
131
|
-
:'order' => :'Order',
|
132
|
-
:'number_format_of_y_values' => :'NumberFormatOfYValues',
|
133
|
-
:'number_format_of_x_values' => :'NumberFormatOfXValues',
|
134
|
-
:'number_format_of_values' => :'NumberFormatOfValues',
|
135
|
-
:'number_format_of_bubble_sizes' => :'NumberFormatOfBubbleSizes',
|
136
|
-
:'invert_if_negative' => :'InvertIfNegative',
|
137
|
-
:'explosion' => :'Explosion',
|
138
|
-
:'marker' => :'Marker',
|
139
|
-
:'fill_format' => :'FillFormat',
|
140
|
-
:'effect_format' => :'EffectFormat',
|
141
|
-
:'line_format' => :'LineFormat',
|
142
|
-
:'data_point_type' => :'DataPointType',
|
143
|
-
:'data_points' => :'DataPoints',
|
67
|
+
super.merge({
|
144
68
|
:'quartile_method' => :'QuartileMethod',
|
145
69
|
:'show_inner_points' => :'ShowInnerPoints',
|
146
70
|
:'show_mean_line' => :'ShowMeanLine',
|
147
71
|
:'show_mean_markers' => :'ShowMeanMarkers',
|
148
|
-
:'show_outlier_points' => :'ShowOutlierPoints'
|
149
|
-
}
|
72
|
+
:'show_outlier_points' => :'ShowOutlierPoints',
|
73
|
+
})
|
150
74
|
end
|
151
75
|
|
152
76
|
# Attribute type mapping.
|
153
77
|
def self.swagger_types
|
154
|
-
{
|
155
|
-
:'type' => :'String',
|
156
|
-
:'name' => :'String',
|
157
|
-
:'is_color_varied' => :'BOOLEAN',
|
158
|
-
:'inverted_solid_fill_color' => :'String',
|
159
|
-
:'smooth' => :'BOOLEAN',
|
160
|
-
:'plot_on_second_axis' => :'BOOLEAN',
|
161
|
-
:'order' => :'Integer',
|
162
|
-
:'number_format_of_y_values' => :'String',
|
163
|
-
:'number_format_of_x_values' => :'String',
|
164
|
-
:'number_format_of_values' => :'String',
|
165
|
-
:'number_format_of_bubble_sizes' => :'String',
|
166
|
-
:'invert_if_negative' => :'BOOLEAN',
|
167
|
-
:'explosion' => :'Integer',
|
168
|
-
:'marker' => :'SeriesMarker',
|
169
|
-
:'fill_format' => :'FillFormat',
|
170
|
-
:'effect_format' => :'EffectFormat',
|
171
|
-
:'line_format' => :'LineFormat',
|
172
|
-
:'data_point_type' => :'String',
|
173
|
-
:'data_points' => :'Array<OneValueChartDataPoint>',
|
78
|
+
super.merge({
|
174
79
|
:'quartile_method' => :'String',
|
175
80
|
:'show_inner_points' => :'BOOLEAN',
|
176
81
|
:'show_mean_line' => :'BOOLEAN',
|
177
82
|
:'show_mean_markers' => :'BOOLEAN',
|
178
|
-
:'show_outlier_points' => :'BOOLEAN'
|
179
|
-
}
|
83
|
+
:'show_outlier_points' => :'BOOLEAN',
|
84
|
+
})
|
180
85
|
end
|
181
86
|
|
182
87
|
# Initializes the object
|
183
88
|
# @param [Hash] attributes Model attributes in the form of hash
|
184
89
|
def initialize(attributes = {})
|
185
|
-
|
186
|
-
|
187
|
-
# convert string to symbol for hash key
|
188
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
189
|
-
|
190
|
-
if attributes.has_key?(:'Type')
|
191
|
-
self.type = attributes[:'Type']
|
192
|
-
end
|
193
|
-
|
194
|
-
if attributes.has_key?(:'Name')
|
195
|
-
self.name = attributes[:'Name']
|
196
|
-
end
|
197
|
-
|
198
|
-
if attributes.has_key?(:'IsColorVaried')
|
199
|
-
self.is_color_varied = attributes[:'IsColorVaried']
|
200
|
-
end
|
201
|
-
|
202
|
-
if attributes.has_key?(:'InvertedSolidFillColor')
|
203
|
-
self.inverted_solid_fill_color = attributes[:'InvertedSolidFillColor']
|
204
|
-
end
|
205
|
-
|
206
|
-
if attributes.has_key?(:'Smooth')
|
207
|
-
self.smooth = attributes[:'Smooth']
|
208
|
-
end
|
209
|
-
|
210
|
-
if attributes.has_key?(:'PlotOnSecondAxis')
|
211
|
-
self.plot_on_second_axis = attributes[:'PlotOnSecondAxis']
|
212
|
-
end
|
213
|
-
|
214
|
-
if attributes.has_key?(:'Order')
|
215
|
-
self.order = attributes[:'Order']
|
216
|
-
end
|
217
|
-
|
218
|
-
if attributes.has_key?(:'NumberFormatOfYValues')
|
219
|
-
self.number_format_of_y_values = attributes[:'NumberFormatOfYValues']
|
220
|
-
end
|
221
|
-
|
222
|
-
if attributes.has_key?(:'NumberFormatOfXValues')
|
223
|
-
self.number_format_of_x_values = attributes[:'NumberFormatOfXValues']
|
224
|
-
end
|
225
|
-
|
226
|
-
if attributes.has_key?(:'NumberFormatOfValues')
|
227
|
-
self.number_format_of_values = attributes[:'NumberFormatOfValues']
|
228
|
-
end
|
229
|
-
|
230
|
-
if attributes.has_key?(:'NumberFormatOfBubbleSizes')
|
231
|
-
self.number_format_of_bubble_sizes = attributes[:'NumberFormatOfBubbleSizes']
|
232
|
-
end
|
233
|
-
|
234
|
-
if attributes.has_key?(:'InvertIfNegative')
|
235
|
-
self.invert_if_negative = attributes[:'InvertIfNegative']
|
236
|
-
end
|
237
|
-
|
238
|
-
if attributes.has_key?(:'Explosion')
|
239
|
-
self.explosion = attributes[:'Explosion']
|
240
|
-
end
|
241
|
-
|
242
|
-
if attributes.has_key?(:'Marker')
|
243
|
-
self.marker = attributes[:'Marker']
|
244
|
-
end
|
245
|
-
|
246
|
-
if attributes.has_key?(:'FillFormat')
|
247
|
-
self.fill_format = attributes[:'FillFormat']
|
248
|
-
end
|
249
|
-
|
250
|
-
if attributes.has_key?(:'EffectFormat')
|
251
|
-
self.effect_format = attributes[:'EffectFormat']
|
252
|
-
end
|
253
|
-
|
254
|
-
if attributes.has_key?(:'LineFormat')
|
255
|
-
self.line_format = attributes[:'LineFormat']
|
256
|
-
end
|
257
|
-
|
258
|
-
if attributes.has_key?(:'DataPointType')
|
259
|
-
self.data_point_type = attributes[:'DataPointType']
|
260
|
-
else
|
261
|
-
self.data_point_type = "OneValue"
|
262
|
-
end
|
263
|
-
|
264
|
-
if attributes.has_key?(:'DataPoints')
|
265
|
-
if (value = attributes[:'DataPoints']).is_a?(Array)
|
266
|
-
self.data_points = value
|
267
|
-
end
|
268
|
-
end
|
90
|
+
super
|
269
91
|
|
270
92
|
if attributes.has_key?(:'QuartileMethod')
|
271
93
|
self.quartile_method = attributes[:'QuartileMethod']
|
@@ -286,52 +108,25 @@ module AsposeSlidesCloud
|
|
286
108
|
if attributes.has_key?(:'ShowOutlierPoints')
|
287
109
|
self.show_outlier_points = attributes[:'ShowOutlierPoints']
|
288
110
|
end
|
111
|
+
self.data_point_type = "OneValue"
|
289
112
|
end
|
290
113
|
|
291
114
|
# Show invalid properties with the reasons. Usually used together with valid?
|
292
115
|
# @return Array for valid properties with the reasons
|
293
116
|
def list_invalid_properties
|
294
|
-
invalid_properties =
|
295
|
-
if @data_point_type.nil?
|
296
|
-
invalid_properties.push('invalid value for "data_point_type", data_point_type cannot be nil.')
|
297
|
-
end
|
298
|
-
|
117
|
+
invalid_properties = super
|
299
118
|
invalid_properties
|
300
119
|
end
|
301
120
|
|
302
121
|
# Check to see if the all the properties in the model are valid
|
303
122
|
# @return true if the model is valid
|
304
123
|
def valid?
|
305
|
-
|
306
|
-
return false unless type_validator.valid?(@type)
|
307
|
-
return false if @data_point_type.nil?
|
308
|
-
data_point_type_validator = EnumAttributeValidator.new('String', ['OneValue', 'Scatter', 'Bubble'])
|
309
|
-
return false unless data_point_type_validator.valid?(@data_point_type)
|
124
|
+
return false if !super
|
310
125
|
quartile_method_validator = EnumAttributeValidator.new('String', ['Exclusive', 'Inclusive'])
|
311
126
|
return false unless quartile_method_validator.valid?(@quartile_method)
|
312
127
|
true
|
313
128
|
end
|
314
129
|
|
315
|
-
# Custom attribute writer method checking allowed values (enum).
|
316
|
-
# @param [Object] type Object to be assigned
|
317
|
-
def type=(type)
|
318
|
-
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'])
|
319
|
-
unless validator.valid?(type)
|
320
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
321
|
-
end
|
322
|
-
@type = type
|
323
|
-
end
|
324
|
-
|
325
|
-
# Custom attribute writer method checking allowed values (enum).
|
326
|
-
# @param [Object] data_point_type Object to be assigned
|
327
|
-
def data_point_type=(data_point_type)
|
328
|
-
validator = EnumAttributeValidator.new('String', ['OneValue', 'Scatter', 'Bubble'])
|
329
|
-
unless validator.valid?(data_point_type)
|
330
|
-
fail ArgumentError, 'invalid value for "data_point_type", must be one of #{validator.allowable_values}.'
|
331
|
-
end
|
332
|
-
@data_point_type = data_point_type
|
333
|
-
end
|
334
|
-
|
335
130
|
# Custom attribute writer method checking allowed values (enum).
|
336
131
|
# @param [Object] quartile_method Object to be assigned
|
337
132
|
def quartile_method=(quartile_method)
|
@@ -24,49 +24,28 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Bubble chart data point.
|
27
|
-
class BubbleChartDataPoint
|
28
|
-
# X-value
|
29
|
-
attr_accessor :x_value
|
30
|
-
|
31
|
-
# Y-value
|
32
|
-
attr_accessor :y_value
|
33
|
-
|
27
|
+
class BubbleChartDataPoint < ScatterChartDataPoint
|
34
28
|
# Bubble size.
|
35
29
|
attr_accessor :bubble_size
|
36
30
|
|
37
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
32
|
def self.attribute_map
|
39
|
-
{
|
40
|
-
:'
|
41
|
-
|
42
|
-
:'bubble_size' => :'BubbleSize'
|
43
|
-
}
|
33
|
+
super.merge({
|
34
|
+
:'bubble_size' => :'BubbleSize',
|
35
|
+
})
|
44
36
|
end
|
45
37
|
|
46
38
|
# Attribute type mapping.
|
47
39
|
def self.swagger_types
|
48
|
-
{
|
49
|
-
:'
|
50
|
-
|
51
|
-
:'bubble_size' => :'Float'
|
52
|
-
}
|
40
|
+
super.merge({
|
41
|
+
:'bubble_size' => :'Float',
|
42
|
+
})
|
53
43
|
end
|
54
44
|
|
55
45
|
# Initializes the object
|
56
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
57
47
|
def initialize(attributes = {})
|
58
|
-
|
59
|
-
|
60
|
-
# convert string to symbol for hash key
|
61
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
62
|
-
|
63
|
-
if attributes.has_key?(:'XValue')
|
64
|
-
self.x_value = attributes[:'XValue']
|
65
|
-
end
|
66
|
-
|
67
|
-
if attributes.has_key?(:'YValue')
|
68
|
-
self.y_value = attributes[:'YValue']
|
69
|
-
end
|
48
|
+
super
|
70
49
|
|
71
50
|
if attributes.has_key?(:'BubbleSize')
|
72
51
|
self.bubble_size = attributes[:'BubbleSize']
|
@@ -76,15 +55,7 @@ module AsposeSlidesCloud
|
|
76
55
|
# Show invalid properties with the reasons. Usually used together with valid?
|
77
56
|
# @return Array for valid properties with the reasons
|
78
57
|
def list_invalid_properties
|
79
|
-
invalid_properties =
|
80
|
-
if @x_value.nil?
|
81
|
-
invalid_properties.push('invalid value for "x_value", x_value cannot be nil.')
|
82
|
-
end
|
83
|
-
|
84
|
-
if @y_value.nil?
|
85
|
-
invalid_properties.push('invalid value for "y_value", y_value cannot be nil.')
|
86
|
-
end
|
87
|
-
|
58
|
+
invalid_properties = super
|
88
59
|
if @bubble_size.nil?
|
89
60
|
invalid_properties.push('invalid value for "bubble_size", bubble_size cannot be nil.')
|
90
61
|
end
|
@@ -95,8 +66,7 @@ module AsposeSlidesCloud
|
|
95
66
|
# Check to see if the all the properties in the model are valid
|
96
67
|
# @return true if the model is valid
|
97
68
|
def valid?
|
98
|
-
return false if
|
99
|
-
return false if @y_value.nil?
|
69
|
+
return false if !super
|
100
70
|
return false if @bubble_size.nil?
|
101
71
|
true
|
102
72
|
end
|