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,37 +31,37 @@ require 'date'
|
|
31
31
|
module AsposeCellsCloud
|
32
32
|
|
33
33
|
class DataLabels
|
34
|
-
#
|
34
|
+
#Indicates the text is auto generated.
|
35
35
|
attr_accessor :is_auto_text
|
36
36
|
#
|
37
37
|
attr_accessor :is_deleted
|
38
38
|
#
|
39
39
|
attr_accessor :linked_source
|
40
|
-
#
|
40
|
+
#Gets and sets the built-in number format.
|
41
41
|
attr_accessor :number
|
42
|
-
#
|
42
|
+
#Represents the format string for the DataLabels object.
|
43
43
|
attr_accessor :number_format
|
44
|
-
#
|
44
|
+
#True if the number format is linked to the cells (so that the number format changes in the labels when it changes in the cells).
|
45
45
|
attr_accessor :number_format_linked
|
46
|
-
#
|
46
|
+
#Represents the position of the data label.
|
47
47
|
attr_accessor :position
|
48
48
|
#
|
49
49
|
attr_accessor :rotation_angle
|
50
|
-
#
|
50
|
+
#Gets or sets the separator type used for the data labels on a chart.
|
51
51
|
attr_accessor :separator
|
52
|
-
#
|
52
|
+
#Represents a specified chart's data label percentage value display behavior. True displays the percentage value. False to hide.
|
53
53
|
attr_accessor :show_bubble_size
|
54
|
-
#
|
54
|
+
#Represents a specified chart's data label category name display behavior.True to display the category name for the data labels on a chart. False to hide.
|
55
55
|
attr_accessor :show_category_name
|
56
|
-
#
|
56
|
+
#Represents a specified chart's data label legend key display behavior. True if the data label legend key is visible.
|
57
57
|
attr_accessor :show_legend_key
|
58
|
-
#
|
58
|
+
#Represents a specified chart's data label percentage value display behavior. True displays the percentage value. False to hide.
|
59
59
|
attr_accessor :show_percentage
|
60
|
-
#
|
60
|
+
#Returns or sets a Boolean to indicate the series name display behavior for the data labels on a chart. True to show the series name. False to hide.
|
61
61
|
attr_accessor :show_series_name
|
62
|
-
#
|
62
|
+
#Represents a specified chart's data label values display behavior. True displays the values. False to hide.
|
63
63
|
attr_accessor :show_value
|
64
|
-
#
|
64
|
+
#Gets or sets the text of data label.
|
65
65
|
attr_accessor :text
|
66
66
|
#
|
67
67
|
attr_accessor :text_direction
|
@@ -31,16 +31,18 @@ require 'date'
|
|
31
31
|
module AsposeCellsCloud
|
32
32
|
|
33
33
|
class DataSorter
|
34
|
-
#
|
34
|
+
#Gets and sets whether case sensitive when comparing string.
|
35
35
|
attr_accessor :case_sensitive
|
36
|
-
#
|
36
|
+
#Represents whether the range has headers.
|
37
37
|
attr_accessor :has_headers
|
38
|
-
#
|
38
|
+
#Gets the key list of data sorter.
|
39
39
|
attr_accessor :key_list
|
40
|
-
#
|
40
|
+
#True means that sorting orientation is from left to right. False means that sorting orientation is from top to bottom. The default value is false.
|
41
41
|
attr_accessor :sort_left_to_right
|
42
|
-
#
|
42
|
+
#Indicates whether sorting anything that looks like a number.
|
43
43
|
attr_accessor :sort_as_number
|
44
|
+
#Gets the key list of data sorter.
|
45
|
+
attr_accessor :keys
|
44
46
|
|
45
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
46
48
|
def self.attribute_map
|
@@ -49,7 +51,8 @@ module AsposeCellsCloud
|
|
49
51
|
:'has_headers' => :'HasHeaders',
|
50
52
|
:'key_list' => :'KeyList',
|
51
53
|
:'sort_left_to_right' => :'SortLeftToRight',
|
52
|
-
:'sort_as_number' => :'SortAsNumber'
|
54
|
+
:'sort_as_number' => :'SortAsNumber',
|
55
|
+
:'keys' => :'Keys'
|
53
56
|
}
|
54
57
|
end
|
55
58
|
|
@@ -60,7 +63,8 @@ module AsposeCellsCloud
|
|
60
63
|
:'has_headers' => :'BOOLEAN',
|
61
64
|
:'key_list' => :'Array<SortKey>',
|
62
65
|
:'sort_left_to_right' => :'BOOLEAN',
|
63
|
-
:'sort_as_number' => :'BOOLEAN'
|
66
|
+
:'sort_as_number' => :'BOOLEAN',
|
67
|
+
:'keys' => :'Array<DataSorterKey>'
|
64
68
|
}
|
65
69
|
end
|
66
70
|
|
@@ -87,6 +91,9 @@ module AsposeCellsCloud
|
|
87
91
|
if attributes.has_key?(:'SortAsNumber')
|
88
92
|
self.sort_as_number = attributes[:'SortAsNumber']
|
89
93
|
end
|
94
|
+
if attributes.has_key?(:'Keys')
|
95
|
+
self.keys = attributes[:'Keys']
|
96
|
+
end
|
90
97
|
|
91
98
|
end
|
92
99
|
|
@@ -109,6 +116,9 @@ module AsposeCellsCloud
|
|
109
116
|
if @sort_as_number.nil?
|
110
117
|
invalid_properties.push("invalid value for 'sort_as_number', sort_as_number cannot be nil.")
|
111
118
|
end
|
119
|
+
if @keys.nil?
|
120
|
+
invalid_properties.push("invalid value for 'keys', keys cannot be nil.")
|
121
|
+
end
|
112
122
|
|
113
123
|
return invalid_properties
|
114
124
|
end
|
@@ -121,6 +131,7 @@ module AsposeCellsCloud
|
|
121
131
|
return false if @key_list.nil?
|
122
132
|
return false if @sort_left_to_right.nil?
|
123
133
|
return false if @sort_as_number.nil?
|
134
|
+
return false if @keys.nil?
|
124
135
|
return true
|
125
136
|
end
|
126
137
|
|
@@ -133,7 +144,8 @@ module AsposeCellsCloud
|
|
133
144
|
has_headers == o.has_headers &&
|
134
145
|
key_list == o.key_list &&
|
135
146
|
sort_left_to_right == o.sort_left_to_right &&
|
136
|
-
sort_as_number == o.sort_as_number
|
147
|
+
sort_as_number == o.sort_as_number &&
|
148
|
+
keys == o.keys
|
137
149
|
std_dev == o.std_dev
|
138
150
|
end
|
139
151
|
|
@@ -146,7 +158,7 @@ module AsposeCellsCloud
|
|
146
158
|
# Calculates hash code according to all attributes.
|
147
159
|
# @return [Fixnum] Hash code
|
148
160
|
def hash
|
149
|
-
[ case_sensitive , has_headers , key_list , sort_left_to_right , sort_as_number ].hash
|
161
|
+
[ case_sensitive , has_headers , key_list , sort_left_to_right , sort_as_number , keys ].hash
|
150
162
|
end
|
151
163
|
|
152
164
|
# Builds the object from hash
|
@@ -0,0 +1,270 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
<copyright company="Aspose" file="DataSorterKeyrb.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 DataSorterKey
|
34
|
+
#Indicates the order of sorting.
|
35
|
+
attr_accessor :order
|
36
|
+
#Gets the sorted column index(absolute position, column A is 0, B is 1, ...).
|
37
|
+
attr_accessor :index
|
38
|
+
#Represents the type of sorting.
|
39
|
+
attr_accessor :type
|
40
|
+
#Represents the icon set type.
|
41
|
+
attr_accessor :icon_set_type
|
42
|
+
#Represents the id of the icon set type.
|
43
|
+
attr_accessor :icon_id
|
44
|
+
#Gets the sorted color.
|
45
|
+
attr_accessor :color
|
46
|
+
|
47
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
48
|
+
def self.attribute_map
|
49
|
+
{
|
50
|
+
:'order' => :'Order',
|
51
|
+
:'index' => :'Index',
|
52
|
+
:'type' => :'Type',
|
53
|
+
:'icon_set_type' => :'IconSetType',
|
54
|
+
:'icon_id' => :'IconId',
|
55
|
+
:'color' => :'Color'
|
56
|
+
}
|
57
|
+
end
|
58
|
+
|
59
|
+
# Attribute type mapping.
|
60
|
+
def self.swagger_types
|
61
|
+
{
|
62
|
+
:'order' => :'String',
|
63
|
+
:'index' => :'Integer',
|
64
|
+
:'type' => :'String',
|
65
|
+
:'icon_set_type' => :'String',
|
66
|
+
:'icon_id' => :'Integer',
|
67
|
+
:'color' => :'Color'
|
68
|
+
}
|
69
|
+
end
|
70
|
+
|
71
|
+
# Initializes the object
|
72
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
73
|
+
def initialize(attributes = {})
|
74
|
+
return unless attributes.is_a?(Hash)
|
75
|
+
|
76
|
+
# convert string to symbol for hash key
|
77
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
78
|
+
|
79
|
+
if attributes.has_key?(:'Order')
|
80
|
+
self.order = attributes[:'Order']
|
81
|
+
end
|
82
|
+
if attributes.has_key?(:'Index')
|
83
|
+
self.index = attributes[:'Index']
|
84
|
+
end
|
85
|
+
if attributes.has_key?(:'Type')
|
86
|
+
self.type = attributes[:'Type']
|
87
|
+
end
|
88
|
+
if attributes.has_key?(:'IconSetType')
|
89
|
+
self.icon_set_type = attributes[:'IconSetType']
|
90
|
+
end
|
91
|
+
if attributes.has_key?(:'IconId')
|
92
|
+
self.icon_id = attributes[:'IconId']
|
93
|
+
end
|
94
|
+
if attributes.has_key?(:'Color')
|
95
|
+
self.color = attributes[:'Color']
|
96
|
+
end
|
97
|
+
|
98
|
+
end
|
99
|
+
|
100
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
101
|
+
# @return Array for valid properies with the reasons
|
102
|
+
def list_invalid_properties
|
103
|
+
invalid_properties = Array.new
|
104
|
+
if @order.nil?
|
105
|
+
invalid_properties.push("invalid value for 'order', order cannot be nil.")
|
106
|
+
end
|
107
|
+
if @index.nil?
|
108
|
+
invalid_properties.push("invalid value for 'index', index cannot be nil.")
|
109
|
+
end
|
110
|
+
if @type.nil?
|
111
|
+
invalid_properties.push("invalid value for 'type', type cannot be nil.")
|
112
|
+
end
|
113
|
+
if @icon_set_type.nil?
|
114
|
+
invalid_properties.push("invalid value for 'icon_set_type', icon_set_type cannot be nil.")
|
115
|
+
end
|
116
|
+
if @icon_id.nil?
|
117
|
+
invalid_properties.push("invalid value for 'icon_id', icon_id cannot be nil.")
|
118
|
+
end
|
119
|
+
if @color.nil?
|
120
|
+
invalid_properties.push("invalid value for 'color', color cannot be nil.")
|
121
|
+
end
|
122
|
+
|
123
|
+
return invalid_properties
|
124
|
+
end
|
125
|
+
|
126
|
+
# Check to see if the all the properties in the model are valid
|
127
|
+
# @return true if the model is valid
|
128
|
+
def valid?
|
129
|
+
return false if @order.nil?
|
130
|
+
return false if @index.nil?
|
131
|
+
return false if @type.nil?
|
132
|
+
return false if @icon_set_type.nil?
|
133
|
+
return false if @icon_id.nil?
|
134
|
+
return false if @color.nil?
|
135
|
+
return true
|
136
|
+
end
|
137
|
+
|
138
|
+
# Checks equality by comparing each attribute.
|
139
|
+
# @param [Object] Object to be compared
|
140
|
+
def ==(o)
|
141
|
+
return true if self.equal?(o)
|
142
|
+
self.class == o.class &&
|
143
|
+
order == o.order &&
|
144
|
+
index == o.index &&
|
145
|
+
type == o.type &&
|
146
|
+
icon_set_type == o.icon_set_type &&
|
147
|
+
icon_id == o.icon_id &&
|
148
|
+
color == o.color
|
149
|
+
std_dev == o.std_dev
|
150
|
+
end
|
151
|
+
|
152
|
+
# @see the `==` method
|
153
|
+
# @param [Object] Object to be compared
|
154
|
+
def eql?(o)
|
155
|
+
self == o
|
156
|
+
end
|
157
|
+
|
158
|
+
# Calculates hash code according to all attributes.
|
159
|
+
# @return [Fixnum] Hash code
|
160
|
+
def hash
|
161
|
+
[ order , index , type , icon_set_type , icon_id , color ].hash
|
162
|
+
end
|
163
|
+
|
164
|
+
# Builds the object from hash
|
165
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
166
|
+
# @return [Object] Returns the model itself
|
167
|
+
def build_from_hash(attributes)
|
168
|
+
return nil unless attributes.is_a?(Hash)
|
169
|
+
self.class.swagger_types.each_pair do |key, type|
|
170
|
+
if type =~ /\AArray<(.*)>/i
|
171
|
+
# check to ensure the input is an array given that the the attribute
|
172
|
+
# is documented as an array but the input is not
|
173
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
174
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
175
|
+
end
|
176
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
177
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
178
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
179
|
+
end
|
180
|
+
|
181
|
+
self
|
182
|
+
end
|
183
|
+
|
184
|
+
# Deserializes the data based on type
|
185
|
+
# @param string type Data type
|
186
|
+
# @param string value Value to be deserialized
|
187
|
+
# @return [Object] Deserialized data
|
188
|
+
def _deserialize(type, value)
|
189
|
+
case type.to_sym
|
190
|
+
when :DateTime
|
191
|
+
DateTime.parse(value)
|
192
|
+
when :Date
|
193
|
+
Date.parse(value)
|
194
|
+
when :String
|
195
|
+
value.to_s
|
196
|
+
when :Integer
|
197
|
+
value.to_i
|
198
|
+
when :Float
|
199
|
+
value.to_f
|
200
|
+
when :BOOLEAN
|
201
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
202
|
+
true
|
203
|
+
else
|
204
|
+
false
|
205
|
+
end
|
206
|
+
when :Object
|
207
|
+
# generic object (usually a Hash), return directly
|
208
|
+
value
|
209
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
210
|
+
inner_type = Regexp.last_match[:inner_type]
|
211
|
+
value.map { |v| _deserialize(inner_type, v) }
|
212
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
213
|
+
k_type = Regexp.last_match[:k_type]
|
214
|
+
v_type = Regexp.last_match[:v_type]
|
215
|
+
{}.tap do |hash|
|
216
|
+
value.each do |k, v|
|
217
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
218
|
+
end
|
219
|
+
end
|
220
|
+
else # model
|
221
|
+
temp_model = AsposeCellsCloud.const_get(type).new
|
222
|
+
temp_model.build_from_hash(value)
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
# Returns the string representation of the object
|
227
|
+
# @return [String] String presentation of the object
|
228
|
+
def to_s
|
229
|
+
to_hash.to_s
|
230
|
+
end
|
231
|
+
|
232
|
+
# to_body is an alias to to_hash (backward compatibility)
|
233
|
+
# @return [Hash] Returns the object in the form of hash
|
234
|
+
def to_body
|
235
|
+
to_hash
|
236
|
+
end
|
237
|
+
|
238
|
+
# Returns the object in the form of hash
|
239
|
+
# @return [Hash] Returns the object in the form of hash
|
240
|
+
def to_hash
|
241
|
+
hash = {}
|
242
|
+
self.class.attribute_map.each_pair do |attr, param|
|
243
|
+
value = self.send(attr)
|
244
|
+
next if value.nil?
|
245
|
+
hash[param] = _to_hash(value)
|
246
|
+
end
|
247
|
+
hash
|
248
|
+
end
|
249
|
+
|
250
|
+
# Outputs non-array value in the form of hash
|
251
|
+
# For object, use to_hash. Otherwise, just return the value
|
252
|
+
# @param [Object] value Any valid value
|
253
|
+
# @return [Hash] Returns the value in the form of hash
|
254
|
+
def _to_hash(value)
|
255
|
+
if value.is_a?(Array)
|
256
|
+
value.compact.map{ |v| _to_hash(v) }
|
257
|
+
elsif value.is_a?(Hash)
|
258
|
+
{}.tap do |hash|
|
259
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
260
|
+
end
|
261
|
+
elsif value.respond_to? :to_hash
|
262
|
+
value.to_hash
|
263
|
+
else
|
264
|
+
value
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
268
|
+
end
|
269
|
+
|
270
|
+
end
|
@@ -31,19 +31,19 @@ require 'date'
|
|
31
31
|
module AsposeCellsCloud
|
32
32
|
|
33
33
|
class DateTimeGroupItem
|
34
|
-
#
|
34
|
+
#Gets and sets the group type.
|
35
35
|
attr_accessor :date_time_grouping_type
|
36
|
-
#
|
36
|
+
#Gets and sets the day of the grouped date time.
|
37
37
|
attr_accessor :day
|
38
|
-
#
|
38
|
+
#Gets and sets the hour of the grouped date time.
|
39
39
|
attr_accessor :hour
|
40
|
-
#
|
40
|
+
#Gets and sets the minute of the grouped date time.
|
41
41
|
attr_accessor :minute
|
42
|
-
#
|
42
|
+
#Gets and sets the month of the grouped date time.
|
43
43
|
attr_accessor :month
|
44
|
-
#
|
44
|
+
#Gets and sets the second of the grouped date time.
|
45
45
|
attr_accessor :second
|
46
|
-
#
|
46
|
+
#Gets and sets the year of the grouped date time.
|
47
47
|
attr_accessor :year
|
48
48
|
|
49
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -31,21 +31,21 @@ require 'date'
|
|
31
31
|
module AsposeCellsCloud
|
32
32
|
|
33
33
|
class DigitalSignature
|
34
|
-
#
|
34
|
+
#The purpose to signature.
|
35
35
|
attr_accessor :comments
|
36
|
-
#
|
36
|
+
#The time when the document was signed.
|
37
37
|
attr_accessor :sign_time
|
38
|
-
#
|
38
|
+
#Specifies a GUID which can be cross-referenced with the GUID of the signature line stored in the document content. Default value is Empty (all zeroes) Guid.
|
39
39
|
attr_accessor :id
|
40
|
-
#
|
40
|
+
#Specifies the text of actual signature in the digital signature. Default value is Empty.
|
41
41
|
attr_accessor :password
|
42
|
-
#
|
42
|
+
#Specifies an image for the digital signature. Default value is null.
|
43
43
|
attr_accessor :image
|
44
|
-
#
|
44
|
+
#Specifies the class ID of the signature provider. Default value is Empty (all zeroes) Guid.
|
45
45
|
attr_accessor :provider_id
|
46
|
-
#
|
46
|
+
#If this digital signature is valid and the document has not been tampered with, this value will be true.
|
47
47
|
attr_accessor :is_valid
|
48
|
-
#
|
48
|
+
#XAdES type. Default value is None(XAdES is off).
|
49
49
|
attr_accessor :x_ad_es_type
|
50
50
|
|
51
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -31,11 +31,11 @@ require 'date'
|
|
31
31
|
module AsposeCellsCloud
|
32
32
|
|
33
33
|
class DynamicFilter
|
34
|
-
#
|
34
|
+
#Gets and sets the dynamic filter type.
|
35
35
|
attr_accessor :dynamic_filter_type
|
36
|
-
#
|
36
|
+
#Gets and sets the dynamic filter max value.
|
37
37
|
attr_accessor :max_value
|
38
|
-
#
|
38
|
+
#Gets and sets the dynamic filter value.
|
39
39
|
attr_accessor :value
|
40
40
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -33,17 +33,17 @@ module AsposeCellsCloud
|
|
33
33
|
class ErrorBar
|
34
34
|
#
|
35
35
|
attr_accessor :link
|
36
|
-
#
|
36
|
+
#Represents amount of error bar. The amount must be greater than or equal to zero.
|
37
37
|
attr_accessor :amount
|
38
|
-
#
|
38
|
+
#Represents error bar display type.
|
39
39
|
attr_accessor :display_type
|
40
|
-
#
|
40
|
+
#Represents negative error amount when error bar type is Custom.
|
41
41
|
attr_accessor :minus_value
|
42
|
-
#
|
42
|
+
#Represents positive error amount when error bar type is Custom.
|
43
43
|
attr_accessor :plus_value
|
44
|
-
#
|
44
|
+
#Indicates if formatting error bars with a T-top.
|
45
45
|
attr_accessor :show_marker_t_top
|
46
|
-
#
|
46
|
+
#Represents error bar amount type.
|
47
47
|
attr_accessor :type
|
48
48
|
#
|
49
49
|
attr_accessor :begin_arrow_length
|
@@ -31,17 +31,17 @@ require 'date'
|
|
31
31
|
module AsposeCellsCloud
|
32
32
|
|
33
33
|
class FillFormat
|
34
|
-
#
|
34
|
+
#Gets and sets the fill type.
|
35
35
|
attr_accessor :type
|
36
|
-
#
|
36
|
+
#Gets object.
|
37
37
|
attr_accessor :solid_fill
|
38
|
-
#
|
38
|
+
#Gets object.
|
39
39
|
attr_accessor :pattern_fill
|
40
|
-
#
|
40
|
+
#Gets object.
|
41
41
|
attr_accessor :texture_fill
|
42
|
-
#
|
42
|
+
#Gets object.
|
43
43
|
attr_accessor :gradient_fill
|
44
|
-
#
|
44
|
+
#Gets and sets the picture image data.
|
45
45
|
attr_accessor :image_data
|
46
46
|
|
47
47
|
# 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 FilterColumn
|
34
|
-
#
|
34
|
+
#Gets and sets the column offset in the range.
|
35
35
|
attr_accessor :field_index
|
36
|
-
#
|
36
|
+
#Gets and sets the type fo filtering data.
|
37
37
|
attr_accessor :filter_type
|
38
38
|
#
|
39
39
|
attr_accessor :multiple_filters
|
@@ -47,7 +47,7 @@ module AsposeCellsCloud
|
|
47
47
|
attr_accessor :icon_filter
|
48
48
|
#
|
49
49
|
attr_accessor :top10_filter
|
50
|
-
#
|
50
|
+
#Indicates whether the AutoFilter button for this column is visible.
|
51
51
|
attr_accessor :visibledropdown
|
52
52
|
|
53
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -31,25 +31,25 @@ require 'date'
|
|
31
31
|
module AsposeCellsCloud
|
32
32
|
|
33
33
|
class Font
|
34
|
-
#
|
34
|
+
#Gets or sets the of the font.
|
35
35
|
attr_accessor :color
|
36
|
-
#
|
36
|
+
#Gets and sets the double size of the font.
|
37
37
|
attr_accessor :double_size
|
38
|
-
#
|
38
|
+
#Gets or sets a value indicating whether the font is bold.
|
39
39
|
attr_accessor :is_bold
|
40
|
-
#
|
40
|
+
#Gets or sets a value indicating whether the font is italic.
|
41
41
|
attr_accessor :is_italic
|
42
|
-
#
|
42
|
+
#Gets or sets a value indicating whether the font is single strikeout.
|
43
43
|
attr_accessor :is_strikeout
|
44
|
-
#
|
44
|
+
#Gets or sets a value indicating whether the font is subscript.
|
45
45
|
attr_accessor :is_subscript
|
46
|
-
#
|
46
|
+
#Gets or sets a value indicating whether the font is super script.
|
47
47
|
attr_accessor :is_superscript
|
48
|
-
#
|
48
|
+
#Gets or sets the name of the .
|
49
49
|
attr_accessor :name
|
50
|
-
#
|
50
|
+
#Gets or sets the size of the font.
|
51
51
|
attr_accessor :size
|
52
|
-
#
|
52
|
+
#Gets or sets the font underline type.
|
53
53
|
attr_accessor :underline
|
54
54
|
|
55
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -31,15 +31,15 @@ require 'date'
|
|
31
31
|
module AsposeCellsCloud
|
32
32
|
|
33
33
|
class FontSetting
|
34
|
-
#
|
34
|
+
#Returns the font of this object.
|
35
35
|
attr_accessor :font
|
36
|
-
#
|
36
|
+
#Gets the length of the characters.
|
37
37
|
attr_accessor :length
|
38
|
-
#
|
38
|
+
#Gets the start index of the characters.
|
39
39
|
attr_accessor :start_index
|
40
|
-
#
|
40
|
+
#Returns the text options.
|
41
41
|
attr_accessor :text_options
|
42
|
-
#
|
42
|
+
#Gets the type of text node.
|
43
43
|
attr_accessor :type
|
44
44
|
|
45
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|