aspose_cells_cloud 23.8 → 23.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +4 -1
- data/README.md +6 -4
- data/lib/aspose_cells_cloud/api/cells_api.rb +25 -2
- data/lib/aspose_cells_cloud/models/above_average.rb +3 -3
- data/lib/aspose_cells_cloud/models/abstract_calculation_engine.rb +234 -0
- data/lib/aspose_cells_cloud/models/{barcode_response.rb → abstract_calculation_monitor.rb} +33 -45
- data/lib/aspose_cells_cloud/models/arc_shape.rb +6 -6
- data/lib/aspose_cells_cloud/models/area.rb +5 -5
- data/lib/aspose_cells_cloud/models/auto_filter.rb +4 -4
- data/lib/aspose_cells_cloud/models/auto_fitter_options.rb +68 -8
- data/lib/aspose_cells_cloud/models/axis.rb +34 -34
- data/lib/aspose_cells_cloud/models/batch_convert_request.rb +7 -7
- data/lib/aspose_cells_cloud/models/batch_lock_request.rb +6 -6
- data/lib/aspose_cells_cloud/models/batch_protect_request.rb +6 -6
- data/lib/aspose_cells_cloud/models/batch_split_request.rb +9 -9
- data/lib/aspose_cells_cloud/models/border.rb +4 -4
- data/lib/aspose_cells_cloud/models/calculation_options.rb +44 -8
- data/lib/aspose_cells_cloud/models/cell.rb +15 -15
- data/lib/aspose_cells_cloud/models/cells.rb +4 -4
- data/lib/aspose_cells_cloud/models/cells_color.rb +7 -7
- data/lib/aspose_cells_cloud/models/chart.rb +43 -43
- data/lib/aspose_cells_cloud/models/chart_data_table.rb +8 -8
- data/lib/aspose_cells_cloud/models/chart_frame.rb +13 -13
- data/lib/aspose_cells_cloud/models/{barcode_response_list.rb → chart_globalization_settings.rb} +2 -2
- data/lib/aspose_cells_cloud/models/chart_point.rb +8 -8
- data/lib/aspose_cells_cloud/models/check_box.rb +3 -3
- data/lib/aspose_cells_cloud/models/color_filter.rb +1 -1
- data/lib/aspose_cells_cloud/models/color_filter_request.rb +3 -3
- data/lib/aspose_cells_cloud/models/color_scale.rb +6 -6
- data/lib/aspose_cells_cloud/models/column.rb +5 -5
- data/lib/aspose_cells_cloud/models/combo_box.rb +5 -5
- data/lib/aspose_cells_cloud/models/comment.rb +10 -10
- data/lib/aspose_cells_cloud/models/comment_shape.rb +1 -1
- data/lib/aspose_cells_cloud/models/conditional_formatting_icon.rb +3 -3
- data/lib/aspose_cells_cloud/models/conditional_formatting_value.rb +3 -3
- data/lib/aspose_cells_cloud/models/copy_options.rb +6 -6
- data/lib/aspose_cells_cloud/models/create_pivot_table_request.rb +7 -7
- data/lib/aspose_cells_cloud/models/custom_filter.rb +2 -2
- data/lib/aspose_cells_cloud/models/custom_parser_config.rb +2 -2
- data/lib/aspose_cells_cloud/models/data_bar.rb +12 -12
- data/lib/aspose_cells_cloud/models/data_bar_border.rb +2 -2
- data/lib/aspose_cells_cloud/models/data_labels.rb +13 -13
- data/lib/aspose_cells_cloud/models/data_sorter.rb +21 -9
- data/lib/aspose_cells_cloud/models/data_sorter_key.rb +270 -0
- data/lib/aspose_cells_cloud/models/date_time_group_item.rb +7 -7
- data/lib/aspose_cells_cloud/models/digital_signature.rb +8 -8
- data/lib/aspose_cells_cloud/models/display_unit_label.rb +1 -1
- data/lib/aspose_cells_cloud/models/drop_bars.rb +2 -2
- data/lib/aspose_cells_cloud/models/dynamic_filter.rb +3 -3
- data/lib/aspose_cells_cloud/models/error_bar.rb +6 -6
- data/lib/aspose_cells_cloud/models/fill_format.rb +6 -6
- data/lib/aspose_cells_cloud/models/filter_column.rb +3 -3
- data/lib/aspose_cells_cloud/models/floor.rb +1 -1
- data/lib/aspose_cells_cloud/models/font.rb +10 -10
- data/lib/aspose_cells_cloud/models/font_setting.rb +5 -5
- data/lib/aspose_cells_cloud/models/format_condition.rb +14 -14
- data/lib/aspose_cells_cloud/models/formula_format_condition.rb +3 -3
- data/lib/aspose_cells_cloud/models/formula_settings.rb +330 -0
- data/lib/aspose_cells_cloud/models/globalization_settings.rb +258 -0
- data/lib/aspose_cells_cloud/models/gradient_fill.rb +4 -4
- data/lib/aspose_cells_cloud/models/group_box.rb +1 -1
- data/lib/aspose_cells_cloud/models/horizontal_page_break.rb +3 -3
- data/lib/aspose_cells_cloud/models/html_save_options.rb +30 -30
- data/lib/aspose_cells_cloud/models/hyperlink.rb +5 -5
- data/lib/aspose_cells_cloud/models/icon_filter.rb +2 -2
- data/lib/aspose_cells_cloud/models/icon_set.rb +5 -5
- data/lib/aspose_cells_cloud/models/image_or_print_options.rb +8 -8
- data/lib/aspose_cells_cloud/models/image_save_options.rb +12 -12
- data/lib/aspose_cells_cloud/models/import_picture_option.rb +1 -1
- data/lib/aspose_cells_cloud/models/json_save_options.rb +4 -4
- data/lib/aspose_cells_cloud/models/label.rb +1 -1
- data/lib/aspose_cells_cloud/models/legend.rb +2 -2
- data/lib/aspose_cells_cloud/models/legend_entry.rb +4 -4
- data/lib/aspose_cells_cloud/models/line.rb +19 -19
- data/lib/aspose_cells_cloud/models/line_format.rb +11 -11
- data/lib/aspose_cells_cloud/models/line_shape.rb +6 -6
- data/lib/aspose_cells_cloud/models/list_box.rb +6 -6
- data/lib/aspose_cells_cloud/models/list_column.rb +20 -8
- data/lib/aspose_cells_cloud/models/list_object.rb +88 -16
- data/lib/aspose_cells_cloud/models/load_options.rb +8 -8
- data/lib/aspose_cells_cloud/models/m_html_save_options.rb +12 -12
- data/lib/aspose_cells_cloud/models/markdown_save_options.rb +3 -3
- data/lib/aspose_cells_cloud/models/marker.rb +4 -4
- data/lib/aspose_cells_cloud/models/match_condition_request.rb +2 -2
- data/lib/aspose_cells_cloud/models/name.rb +6 -6
- data/lib/aspose_cells_cloud/models/negative_bar_format.rb +4 -4
- data/lib/aspose_cells_cloud/models/ole_object.rb +7 -7
- data/lib/aspose_cells_cloud/models/ooxml_save_options.rb +5 -5
- data/lib/aspose_cells_cloud/models/page_setup.rb +34 -34
- data/lib/aspose_cells_cloud/models/password_request.rb +1 -1
- data/lib/aspose_cells_cloud/models/paste_options.rb +4 -4
- data/lib/aspose_cells_cloud/models/pattern_fill.rb +7 -7
- data/lib/aspose_cells_cloud/models/pdf_save_options.rb +19 -19
- data/lib/aspose_cells_cloud/models/pic_format_option.rb +6 -6
- data/lib/aspose_cells_cloud/models/picture.rb +5 -5
- data/lib/aspose_cells_cloud/models/pivot_globalization_settings.rb +198 -0
- data/lib/aspose_cells_cloud/models/pivot_table_field_request.rb +1 -1
- data/lib/aspose_cells_cloud/models/plot_area.rb +4 -4
- data/lib/aspose_cells_cloud/models/{protect_workbook_requst.rb → protect_workbook_request.rb} +18 -18
- data/lib/aspose_cells_cloud/models/protection.rb +17 -17
- data/lib/aspose_cells_cloud/models/query_table.rb +258 -0
- data/lib/aspose_cells_cloud/models/radio_button.rb +3 -3
- data/lib/aspose_cells_cloud/models/range.rb +9 -9
- data/lib/aspose_cells_cloud/models/range_copy_request.rb +4 -4
- data/lib/aspose_cells_cloud/models/range_set_outline_border_request.rb +4 -4
- data/lib/aspose_cells_cloud/models/range_set_style_request.rb +2 -2
- data/lib/aspose_cells_cloud/models/range_sort_request.rb +222 -0
- data/lib/aspose_cells_cloud/models/row.rb +7 -7
- data/lib/aspose_cells_cloud/models/save_options.rb +4 -4
- data/lib/aspose_cells_cloud/models/scroll_bar.rb +7 -7
- data/lib/aspose_cells_cloud/models/series.rb +47 -47
- data/lib/aspose_cells_cloud/models/shadow_effect.rb +7 -7
- data/lib/aspose_cells_cloud/models/shape.rb +36 -36
- data/lib/aspose_cells_cloud/models/solid_fill.rb +3 -3
- data/lib/aspose_cells_cloud/models/sparkline.rb +3 -3
- data/lib/aspose_cells_cloud/models/sparkline_group.rb +27 -27
- data/lib/aspose_cells_cloud/models/spinner.rb +5 -5
- data/lib/aspose_cells_cloud/models/split_result_response.rb +1 -1
- data/lib/aspose_cells_cloud/models/split_workbook_task_parameter.rb +3 -3
- data/lib/aspose_cells_cloud/models/sql_script_save_options.rb +14 -14
- data/lib/aspose_cells_cloud/models/style.rb +22 -22
- data/lib/aspose_cells_cloud/models/svg_save_options.rb +1 -1
- data/lib/aspose_cells_cloud/models/table_total_request.rb +3 -3
- data/lib/aspose_cells_cloud/models/text_format_condition.rb +1 -1
- data/lib/aspose_cells_cloud/models/text_water_marker_request.rb +4 -4
- data/lib/aspose_cells_cloud/models/texture_fill.rb +5 -5
- data/lib/aspose_cells_cloud/models/theme_color.rb +2 -2
- data/lib/aspose_cells_cloud/models/tick_labels.rb +11 -11
- data/lib/aspose_cells_cloud/models/tile_pic_option.rb +6 -6
- data/lib/aspose_cells_cloud/models/time_period_format_condition.rb +1 -1
- data/lib/aspose_cells_cloud/models/title.rb +2 -2
- data/lib/aspose_cells_cloud/models/top10.rb +3 -3
- data/lib/aspose_cells_cloud/models/top10_filter.rb +4 -4
- data/lib/aspose_cells_cloud/models/trendline.rb +12 -12
- data/lib/aspose_cells_cloud/models/txt_save_options.rb +4 -4
- data/lib/aspose_cells_cloud/models/validation.rb +16 -16
- data/lib/aspose_cells_cloud/models/vertical_page_break.rb +3 -3
- data/lib/aspose_cells_cloud/models/walls.rb +5 -5
- data/lib/aspose_cells_cloud/models/workbook.rb +4 -4
- data/lib/aspose_cells_cloud/models/workbook_protection_request.rb +1 -1
- data/lib/aspose_cells_cloud/models/workbook_settings.rb +263 -47
- data/lib/aspose_cells_cloud/models/worksheet.rb +29 -29
- data/lib/aspose_cells_cloud/models/worksheet_operate_parameter.rb +1 -1
- data/lib/aspose_cells_cloud/models/write_protection.rb +246 -0
- data/lib/aspose_cells_cloud/models/xml_data_binding.rb +210 -0
- data/lib/aspose_cells_cloud/models/xml_map.rb +234 -0
- data/lib/aspose_cells_cloud/requests/delete_un_protect_workbook_request.rb +9 -9
- data/lib/aspose_cells_cloud/requests/post_protect_request.rb +9 -9
- data/lib/aspose_cells_cloud/requests/post_protect_workbook_request.rb +9 -9
- data/lib/aspose_cells_cloud/requests/post_worksheet_cells_range_sort_request.rb +138 -0
- data/lib/aspose_cells_cloud/requests/{post_worksheet_cells_ranges_request.rb → post_worksheet_cells_ranges_copy_request.rb} +8 -8
- data/lib/aspose_cells_cloud/requests/post_worksheet_list_object_insert_slicer_request.rb +159 -0
- data/lib/aspose_cells_cloud/requests/post_worksheet_list_object_remove_duplicates_request.rb +137 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +28 -16
- data/spec/api/list_objects_controller_spec.rb +36 -0
- data/spec/api/pivot_tables_controller_spec.rb +3 -3
- data/spec/api/ranges_controller_spec.rb +24 -3
- data/spec/api/workbook_controller_spec.rb +3 -4
- data/spec/document/light_cells_spec.rb +17 -3
- data/spec/{onecase_spec.rb → one_case_spec.rb} +3 -5
- metadata +20 -8
- data/lib/aspose_cells_cloud/models/spreadsheet_m_l2003_save_options.rb +0 -330
@@ -31,23 +31,23 @@ require 'date'
|
|
31
31
|
module AsposeCellsCloud
|
32
32
|
|
33
33
|
class Range
|
34
|
-
#Gets the count of columns in the range.
|
34
|
+
#Gets the count of columns in the range.
|
35
35
|
attr_accessor :column_count
|
36
|
-
#Sets or gets the column width of this range
|
36
|
+
#Sets or gets the column width of this range
|
37
37
|
attr_accessor :column_width
|
38
|
-
#Gets the index of the first column of the range.
|
38
|
+
#Gets the index of the first column of the range.
|
39
39
|
attr_accessor :first_column
|
40
|
-
#Gets the index of the first row of the range.
|
40
|
+
#Gets the index of the first row of the range.
|
41
41
|
attr_accessor :first_row
|
42
|
-
#Gets or sets the name of the range.
|
42
|
+
#Gets or sets the name of the range.
|
43
43
|
attr_accessor :name
|
44
|
-
#Gets the range's refers to.
|
44
|
+
#Gets the range's refers to.
|
45
45
|
attr_accessor :refers_to
|
46
|
-
#Gets the count of rows in the range.
|
46
|
+
#Gets the count of rows in the range.
|
47
47
|
attr_accessor :row_count
|
48
|
-
#Sets or gets the height of rows in this range
|
48
|
+
#Sets or gets the height of rows in this range
|
49
49
|
attr_accessor :row_height
|
50
|
-
#Gets the
|
50
|
+
#Gets the object which contains this range.
|
51
51
|
attr_accessor :worksheet
|
52
52
|
|
53
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -31,13 +31,13 @@ require 'date'
|
|
31
31
|
module AsposeCellsCloud
|
32
32
|
|
33
33
|
class RangeCopyRequest
|
34
|
-
#
|
34
|
+
#copydata, copystyle, copyto, copyvalue.
|
35
35
|
attr_accessor :operate
|
36
|
-
#
|
36
|
+
#Source range.
|
37
37
|
attr_accessor :source
|
38
|
-
#
|
38
|
+
#Target range.
|
39
39
|
attr_accessor :target
|
40
|
-
#
|
40
|
+
#Represents the paste special options.
|
41
41
|
attr_accessor :paste_options
|
42
42
|
|
43
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -31,13 +31,13 @@ require 'date'
|
|
31
31
|
module AsposeCellsCloud
|
32
32
|
|
33
33
|
class RangeSetOutlineBorderRequest
|
34
|
-
#
|
34
|
+
#Encapsulates the object that represents a range of cells within a spreadsheet.
|
35
35
|
attr_accessor :range
|
36
|
-
#
|
36
|
+
#LeftBorder, RightBorder, TopBorder, BottomBorder, DiagonalDown, DiagonalUp, Vertical and Horizontal.
|
37
37
|
attr_accessor :border_edge
|
38
|
-
#
|
38
|
+
#None, Thin, Medium, Dashed, Dotted, Thick, Double, Hair, MediumDashed, DashDot, MediumDashDot, DashDotDot, MediumDashDotDot and SlantedDashDot.
|
39
39
|
attr_accessor :border_style
|
40
|
-
#
|
40
|
+
#Border color.
|
41
41
|
attr_accessor :border_color
|
42
42
|
|
43
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -31,9 +31,9 @@ require 'date'
|
|
31
31
|
module AsposeCellsCloud
|
32
32
|
|
33
33
|
class RangeSetStyleRequest
|
34
|
-
#
|
34
|
+
#Encapsulates the object that represents a range of cells within a spreadsheet.
|
35
35
|
attr_accessor :range
|
36
|
-
#
|
36
|
+
#Represents display style of excel document,such as font,color,alignment,border,etc.
|
37
37
|
attr_accessor :style
|
38
38
|
|
39
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -0,0 +1,222 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
<copyright company="Aspose" file="RangeSortRequestrb.cs">
|
4
|
+
Copyright (c) 2023 Aspose.Cells Cloud
|
5
|
+
</copyright>
|
6
|
+
<summary>
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
9
|
+
in the Software without restriction, including without limitation the rights
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
12
|
+
furnished to do so, subject to the following conditions:
|
13
|
+
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
15
|
+
copies or substantial portions of the Software.
|
16
|
+
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
23
|
+
SOFTWARE.
|
24
|
+
</summary>
|
25
|
+
--------------------------------------------------------------------------------------------------------------------
|
26
|
+
=end
|
27
|
+
|
28
|
+
|
29
|
+
require 'date'
|
30
|
+
|
31
|
+
module AsposeCellsCloud
|
32
|
+
|
33
|
+
class RangeSortRequest
|
34
|
+
#Summary description for DataSorter.
|
35
|
+
attr_accessor :data_sorter
|
36
|
+
#Encapsulates the object that represents a range of cells within a spreadsheet.
|
37
|
+
attr_accessor :cell_area
|
38
|
+
|
39
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
40
|
+
def self.attribute_map
|
41
|
+
{
|
42
|
+
:'data_sorter' => :'DataSorter',
|
43
|
+
:'cell_area' => :'CellArea'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# Attribute type mapping.
|
48
|
+
def self.swagger_types
|
49
|
+
{
|
50
|
+
:'data_sorter' => :'DataSorter',
|
51
|
+
:'cell_area' => :'Range'
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
# Initializes the object
|
56
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
57
|
+
def initialize(attributes = {})
|
58
|
+
return unless attributes.is_a?(Hash)
|
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?(:'DataSorter')
|
64
|
+
self.data_sorter = attributes[:'DataSorter']
|
65
|
+
end
|
66
|
+
if attributes.has_key?(:'CellArea')
|
67
|
+
self.cell_area = attributes[:'CellArea']
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
71
|
+
|
72
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
73
|
+
# @return Array for valid properies with the reasons
|
74
|
+
def list_invalid_properties
|
75
|
+
invalid_properties = Array.new
|
76
|
+
if @data_sorter.nil?
|
77
|
+
invalid_properties.push("invalid value for 'data_sorter', data_sorter cannot be nil.")
|
78
|
+
end
|
79
|
+
if @cell_area.nil?
|
80
|
+
invalid_properties.push("invalid value for 'cell_area', cell_area cannot be nil.")
|
81
|
+
end
|
82
|
+
|
83
|
+
return invalid_properties
|
84
|
+
end
|
85
|
+
|
86
|
+
# Check to see if the all the properties in the model are valid
|
87
|
+
# @return true if the model is valid
|
88
|
+
def valid?
|
89
|
+
return false if @data_sorter.nil?
|
90
|
+
return false if @cell_area.nil?
|
91
|
+
return true
|
92
|
+
end
|
93
|
+
|
94
|
+
# Checks equality by comparing each attribute.
|
95
|
+
# @param [Object] Object to be compared
|
96
|
+
def ==(o)
|
97
|
+
return true if self.equal?(o)
|
98
|
+
self.class == o.class &&
|
99
|
+
data_sorter == o.data_sorter &&
|
100
|
+
cell_area == o.cell_area
|
101
|
+
std_dev == o.std_dev
|
102
|
+
end
|
103
|
+
|
104
|
+
# @see the `==` method
|
105
|
+
# @param [Object] Object to be compared
|
106
|
+
def eql?(o)
|
107
|
+
self == o
|
108
|
+
end
|
109
|
+
|
110
|
+
# Calculates hash code according to all attributes.
|
111
|
+
# @return [Fixnum] Hash code
|
112
|
+
def hash
|
113
|
+
[ data_sorter , cell_area ].hash
|
114
|
+
end
|
115
|
+
|
116
|
+
# Builds the object from hash
|
117
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
118
|
+
# @return [Object] Returns the model itself
|
119
|
+
def build_from_hash(attributes)
|
120
|
+
return nil unless attributes.is_a?(Hash)
|
121
|
+
self.class.swagger_types.each_pair do |key, type|
|
122
|
+
if type =~ /\AArray<(.*)>/i
|
123
|
+
# check to ensure the input is an array given that the the attribute
|
124
|
+
# is documented as an array but the input is not
|
125
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
126
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
127
|
+
end
|
128
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
129
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
130
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
131
|
+
end
|
132
|
+
|
133
|
+
self
|
134
|
+
end
|
135
|
+
|
136
|
+
# Deserializes the data based on type
|
137
|
+
# @param string type Data type
|
138
|
+
# @param string value Value to be deserialized
|
139
|
+
# @return [Object] Deserialized data
|
140
|
+
def _deserialize(type, value)
|
141
|
+
case type.to_sym
|
142
|
+
when :DateTime
|
143
|
+
DateTime.parse(value)
|
144
|
+
when :Date
|
145
|
+
Date.parse(value)
|
146
|
+
when :String
|
147
|
+
value.to_s
|
148
|
+
when :Integer
|
149
|
+
value.to_i
|
150
|
+
when :Float
|
151
|
+
value.to_f
|
152
|
+
when :BOOLEAN
|
153
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
154
|
+
true
|
155
|
+
else
|
156
|
+
false
|
157
|
+
end
|
158
|
+
when :Object
|
159
|
+
# generic object (usually a Hash), return directly
|
160
|
+
value
|
161
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
162
|
+
inner_type = Regexp.last_match[:inner_type]
|
163
|
+
value.map { |v| _deserialize(inner_type, v) }
|
164
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
165
|
+
k_type = Regexp.last_match[:k_type]
|
166
|
+
v_type = Regexp.last_match[:v_type]
|
167
|
+
{}.tap do |hash|
|
168
|
+
value.each do |k, v|
|
169
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
170
|
+
end
|
171
|
+
end
|
172
|
+
else # model
|
173
|
+
temp_model = AsposeCellsCloud.const_get(type).new
|
174
|
+
temp_model.build_from_hash(value)
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
# Returns the string representation of the object
|
179
|
+
# @return [String] String presentation of the object
|
180
|
+
def to_s
|
181
|
+
to_hash.to_s
|
182
|
+
end
|
183
|
+
|
184
|
+
# to_body is an alias to to_hash (backward compatibility)
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
186
|
+
def to_body
|
187
|
+
to_hash
|
188
|
+
end
|
189
|
+
|
190
|
+
# Returns the object in the form of hash
|
191
|
+
# @return [Hash] Returns the object in the form of hash
|
192
|
+
def to_hash
|
193
|
+
hash = {}
|
194
|
+
self.class.attribute_map.each_pair do |attr, param|
|
195
|
+
value = self.send(attr)
|
196
|
+
next if value.nil?
|
197
|
+
hash[param] = _to_hash(value)
|
198
|
+
end
|
199
|
+
hash
|
200
|
+
end
|
201
|
+
|
202
|
+
# Outputs non-array value in the form of hash
|
203
|
+
# For object, use to_hash. Otherwise, just return the value
|
204
|
+
# @param [Object] value Any valid value
|
205
|
+
# @return [Hash] Returns the value in the form of hash
|
206
|
+
def _to_hash(value)
|
207
|
+
if value.is_a?(Array)
|
208
|
+
value.compact.map{ |v| _to_hash(v) }
|
209
|
+
elsif value.is_a?(Hash)
|
210
|
+
{}.tap do |hash|
|
211
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
212
|
+
end
|
213
|
+
elsif value.respond_to? :to_hash
|
214
|
+
value.to_hash
|
215
|
+
else
|
216
|
+
value
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
220
|
+
end
|
221
|
+
|
222
|
+
end
|
@@ -31,19 +31,19 @@ require 'date'
|
|
31
31
|
module AsposeCellsCloud
|
32
32
|
|
33
33
|
class Row
|
34
|
-
#
|
34
|
+
#Gets the group level of the row.
|
35
35
|
attr_accessor :group_level
|
36
|
-
#
|
36
|
+
#Gets and sets the row height in unit of Points.
|
37
37
|
attr_accessor :height
|
38
|
-
#
|
38
|
+
#Gets the index of this row.
|
39
39
|
attr_accessor :index
|
40
|
-
#
|
40
|
+
#Indicates whether the row contains any data
|
41
41
|
attr_accessor :is_blank
|
42
|
-
#
|
42
|
+
#Indicates that row height and default font height matches.
|
43
43
|
attr_accessor :is_height_matched
|
44
|
-
#
|
44
|
+
#Indicates whether the row is hidden.
|
45
45
|
attr_accessor :is_hidden
|
46
|
-
#
|
46
|
+
#Represents the style of this row.
|
47
47
|
attr_accessor :style
|
48
48
|
#
|
49
49
|
attr_accessor :link
|
@@ -31,7 +31,7 @@ require 'date'
|
|
31
31
|
module AsposeCellsCloud
|
32
32
|
|
33
33
|
class SaveOptions
|
34
|
-
#
|
34
|
+
#Save format name
|
35
35
|
attr_accessor :save_format
|
36
36
|
#The cached file folder is used to store some large data.
|
37
37
|
attr_accessor :cached_file_folder
|
@@ -39,11 +39,11 @@ module AsposeCellsCloud
|
|
39
39
|
attr_accessor :clear_data
|
40
40
|
#If true and the directory does not exist, the directory will be automatically created before saving the file.
|
41
41
|
attr_accessor :create_directory
|
42
|
-
#
|
42
|
+
#whether http compression is to be used.
|
43
43
|
attr_accessor :enable_http_compression
|
44
|
-
#
|
44
|
+
#Indicates whether refreshing chart cache data
|
45
45
|
attr_accessor :refresh_chart_cache
|
46
|
-
#
|
46
|
+
#Indicates whether sorting defined names before saving file.
|
47
47
|
attr_accessor :sort_names
|
48
48
|
#Indicates whether validate merged areas before saving the file.The default value is false.
|
49
49
|
attr_accessor :validate_merged_areas
|
@@ -31,19 +31,19 @@ require 'date'
|
|
31
31
|
module AsposeCellsCloud
|
32
32
|
|
33
33
|
class ScrollBar
|
34
|
-
#
|
34
|
+
#Gets or sets the current value.
|
35
35
|
attr_accessor :current_value
|
36
|
-
#
|
36
|
+
#Gets or sets the amount that the scroll bar or spinner is incremented a line scroll.
|
37
37
|
attr_accessor :incremental_change
|
38
|
-
#
|
38
|
+
#Indicates whether this is a horizontal scroll bar.
|
39
39
|
attr_accessor :is_horizontal
|
40
|
-
#
|
40
|
+
#Gets or sets the maximum value of a scroll bar or spinner range.
|
41
41
|
attr_accessor :max
|
42
|
-
#
|
42
|
+
#Gets or sets the minimum value of a scroll bar or spinner range.
|
43
43
|
attr_accessor :min
|
44
|
-
#
|
44
|
+
#Gets or sets page change
|
45
45
|
attr_accessor :page_change
|
46
|
-
#
|
46
|
+
#Indicates whether the shape has 3-D shading.
|
47
47
|
attr_accessor :shadow
|
48
48
|
#
|
49
49
|
attr_accessor :name
|
@@ -31,101 +31,101 @@ require 'date'
|
|
31
31
|
module AsposeCellsCloud
|
32
32
|
|
33
33
|
class Series
|
34
|
-
#
|
34
|
+
#Represents the background area of Series object.
|
35
35
|
attr_accessor :area
|
36
|
-
#
|
36
|
+
#Gets or sets the 3D shape type used with the 3-D bar or column chart.
|
37
37
|
attr_accessor :bar3_d_shape_type
|
38
|
-
#
|
38
|
+
#Represents border of Series object.
|
39
39
|
attr_accessor :border
|
40
|
-
#
|
40
|
+
#Gets or sets the scale factor for bubbles in the specified chart group. It can be an integer value from 0 (zero) to 300, corresponding to a percentage of the default size. Applies only to bubble charts.
|
41
41
|
attr_accessor :bubble_scale
|
42
|
-
#
|
42
|
+
#Gets or sets the bubble sizes values of the chart series.
|
43
43
|
attr_accessor :bubble_sizes
|
44
|
-
#
|
44
|
+
#Gets the number of the data values.
|
45
45
|
attr_accessor :count_of_data_values
|
46
|
-
#
|
46
|
+
#Represents the DataLabels object for the specified ASeries.
|
47
47
|
attr_accessor :data_labels
|
48
|
-
#
|
48
|
+
#Gets the series's name that displays on the chart graph.
|
49
49
|
attr_accessor :display_name
|
50
|
-
#
|
50
|
+
#Returns or sets the size of the hole in a doughnut chart group. The hole size is expressed as a percentage of the chart size, between 10 and 90 percent.
|
51
51
|
attr_accessor :doughnut_hole_size
|
52
|
-
#
|
52
|
+
#Returns a object that represents the down bars on a line chart. Applies only to line charts.
|
53
53
|
attr_accessor :down_bars
|
54
|
-
#
|
54
|
+
#Returns a object that represents the drop lines for a series on the line chart or area chart. Applies only to line chart or area charts.
|
55
55
|
attr_accessor :drop_lines
|
56
|
-
#
|
56
|
+
#The distance of an open pie slice from the center of the pie chart is expressed as a percentage of the pie diameter.
|
57
57
|
attr_accessor :explosion
|
58
|
-
#
|
58
|
+
#Gets or sets the angle of the first pie-chart or doughnut-chart slice, in degrees (clockwise from vertical). Applies only to pie, 3-D pie, and doughnut charts, 0 to 360.
|
59
59
|
attr_accessor :first_slice_angle
|
60
|
-
#
|
60
|
+
#Returns or sets the space between bar or column clusters, as a percentage of the bar or column width. The value of this property must be between 0 and 500.
|
61
61
|
attr_accessor :gap_width
|
62
|
-
#
|
62
|
+
#True if the series has a three-dimensional appearance. Applies only to bubble charts.
|
63
63
|
attr_accessor :has3_d_effect
|
64
|
-
#
|
64
|
+
#True if the chart has drop lines. Applies only to line chart or area charts.
|
65
65
|
attr_accessor :has_drop_lines
|
66
|
-
#
|
66
|
+
#True if the line chart has high-low lines. Applies only to line charts.
|
67
67
|
attr_accessor :has_hi_lo_lines
|
68
|
-
#
|
68
|
+
#True if the series has leader lines.
|
69
69
|
attr_accessor :has_leader_lines
|
70
|
-
#
|
70
|
+
#True if a radar chart has category axis labels. Applies only to radar charts.
|
71
71
|
attr_accessor :has_radar_axis_labels
|
72
|
-
#
|
72
|
+
#True if a stacked column chart or bar chart has series lines or if a Pie of Pie chart or Bar of Pie chart has connector lines between the two sections. Applies only to stacked column charts, bar charts, Pie of Pie charts, or Bar of Pie charts.
|
73
73
|
attr_accessor :has_series_lines
|
74
|
-
#
|
74
|
+
#True if a line chart has up and down bars. Applies only to line charts.
|
75
75
|
attr_accessor :has_up_down_bars
|
76
|
-
#
|
76
|
+
#Returns a HiLoLines object that represents the high-low lines for a series on a line chart. Applies only to line charts.
|
77
77
|
attr_accessor :hi_lo_lines
|
78
|
-
#
|
78
|
+
#Indicates whether the threshold value is automatic.
|
79
79
|
attr_accessor :is_auto_split
|
80
|
-
#
|
80
|
+
#Represents if the color of points is varied. The chart must contain only one series.
|
81
81
|
attr_accessor :is_color_varied
|
82
|
-
#
|
82
|
+
#Represents leader lines on a chart. Leader lines connect data labels to data points. This object isn’t a collection; there’s no object that represents a single leader line.
|
83
83
|
attr_accessor :leader_lines
|
84
|
-
#
|
84
|
+
#Gets the legend entry according to this series.
|
85
85
|
attr_accessor :legend_entry
|
86
86
|
#
|
87
87
|
attr_accessor :line
|
88
|
-
#
|
88
|
+
#Gets the marker.
|
89
89
|
attr_accessor :marker
|
90
|
-
#
|
90
|
+
#Gets or sets the name of the data series.
|
91
91
|
attr_accessor :name
|
92
|
-
#
|
92
|
+
#Specifies how bars and columns are positioned. Can be a value between – 100 and 100. Applies only to 2-D bar and 2-D column charts.
|
93
93
|
attr_accessor :overlap
|
94
|
-
#
|
94
|
+
#Indicates if this series is plotted on second value axis.
|
95
95
|
attr_accessor :plot_on_second_axis
|
96
|
-
#
|
96
|
+
#Gets the collection of points in a series in a chart.
|
97
97
|
attr_accessor :points
|
98
|
-
#
|
98
|
+
#Returns or sets the size of the secondary section of either a pie of pie chart or a bar of pie chart, as a percentage of the size of the primary pie. Can be a value from 5 to 200.
|
99
99
|
attr_accessor :second_plot_size
|
100
|
-
#
|
100
|
+
#Returns a SeriesLines object that represents the series lines for a stacked bar chart or a stacked column chart. Applies only to stacked bar and stacked column charts.
|
101
101
|
attr_accessor :series_lines
|
102
|
-
#
|
102
|
+
#True if the series has a shadow.
|
103
103
|
attr_accessor :shadow
|
104
|
-
#
|
104
|
+
#Gets the object that holds the visual shape properties of the Series.
|
105
105
|
attr_accessor :shape_properties
|
106
|
-
#
|
106
|
+
#True if negative bubbles are shown for the chart group. Valid only for bubble charts.
|
107
107
|
attr_accessor :show_negative_bubbles
|
108
|
-
#
|
108
|
+
#Gets or sets what the bubble size represents on a bubble chart.
|
109
109
|
attr_accessor :size_represents
|
110
|
-
#
|
110
|
+
#Represents curve smoothing. True if curve smoothing is turned on for the line chart or scatter chart. Applies only to line and scatter connected by lines charts.
|
111
111
|
attr_accessor :smooth
|
112
|
-
#
|
112
|
+
#Returns or sets a value that how to determine which data points are in the second pie or bar on a pie of pie or bar of pie chart.
|
113
113
|
attr_accessor :split_type
|
114
|
-
#
|
114
|
+
#Returns or sets a value that shall be used to determine which data points are in the second pie or bar on a pie of pie or bar of pie chart.
|
115
115
|
attr_accessor :split_value
|
116
|
-
#
|
116
|
+
#Returns an object that represents a collection of all the trendlines for the series.
|
117
117
|
attr_accessor :trend_lines
|
118
|
-
#
|
118
|
+
#Gets or sets a data series' type.
|
119
119
|
attr_accessor :type
|
120
|
-
#
|
120
|
+
#Returns an DropBars object that represents the up bars on a line chart. Applies only to line charts.
|
121
121
|
attr_accessor :up_bars
|
122
|
-
#
|
122
|
+
#Represents the data of the chart series.
|
123
123
|
attr_accessor :values
|
124
|
-
#
|
124
|
+
#Represents X direction error bar of the series.
|
125
125
|
attr_accessor :x_error_bar
|
126
|
-
#
|
126
|
+
#Represents the x values of the chart series.
|
127
127
|
attr_accessor :x_values
|
128
|
-
#
|
128
|
+
#Represents Y direction error bar of the series.
|
129
129
|
attr_accessor :y_error_bar
|
130
130
|
#
|
131
131
|
attr_accessor :link
|
@@ -31,19 +31,19 @@ require 'date'
|
|
31
31
|
module AsposeCellsCloud
|
32
32
|
|
33
33
|
class ShadowEffect
|
34
|
-
#
|
34
|
+
#Gets and sets the lighting angle. Range from 0 to 359.9 degrees.
|
35
35
|
attr_accessor :angle
|
36
|
-
#
|
36
|
+
#Gets and sets the blur of the shadow. Range from 0 to 100 points.
|
37
37
|
attr_accessor :blur
|
38
|
-
#
|
38
|
+
#Gets and sets the color of the shadow.
|
39
39
|
attr_accessor :color
|
40
|
-
#
|
40
|
+
#Gets and sets the distance of the shadow. Range from 0 to 200 points.
|
41
41
|
attr_accessor :distance
|
42
|
-
#
|
42
|
+
#Gets and sets the preset shadow type of the shadow.
|
43
43
|
attr_accessor :preset_type
|
44
|
-
#
|
44
|
+
#Gets and sets the size of the shadow. Range from 0 to 2.0. Meaningless in inner shadow.
|
45
45
|
attr_accessor :size
|
46
|
-
#
|
46
|
+
#Gets and sets the degree of transparency of the shadow. Range from 0.0 (opaque) to 1.0 (clear).
|
47
47
|
attr_accessor :transparency
|
48
48
|
|
49
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|