aspose_cells_cloud 25.8 → 25.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +13 -16
- data/lib/aspose_cells_cloud/api/cells_api.rb +105 -12
- data/lib/aspose_cells_cloud/models/aggregate_result_by_color.rb +4 -16
- data/lib/aspose_cells_cloud/models/{broken_links_reponse.rb → broken_links_response.rb} +2 -2
- data/lib/aspose_cells_cloud/models/remove_characters_by_position.rb +1 -1
- data/lib/aspose_cells_cloud/requests/add_text_request.rb +198 -0
- data/lib/aspose_cells_cloud/requests/add_worksheet_to_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/aggregate_cells_by_color_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/codegen_spec_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/compress_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_chart_to_image_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_chart_to_pdf_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_range_to_csv_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_range_to_html_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_range_to_image_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_range_to_json_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_range_to_pdf_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_csv_request.rb +146 -0
- data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_pdf_request.rb +146 -0
- data/lib/aspose_cells_cloud/requests/convert_table_to_csv_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_table_to_html_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_table_to_image_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_table_to_json_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_table_to_pdf_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_text_request.rb +190 -0
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_image_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_pdf_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/create_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/delete_worksheet_from_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/export_chart_as_format_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/export_range_as_format_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/export_spreadsheet_as_format_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/export_table_as_format_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/export_worksheet_as_format_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/extract_text_request.rb +226 -0
- data/lib/aspose_cells_cloud/requests/import_data_into_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/math_calculate_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/merge_remote_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/merge_spreadsheets_in_remote_folder_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/merge_spreadsheets_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/move_worksheet_in_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/protect_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/put_workbook_background_request.rb +4 -5
- data/lib/aspose_cells_cloud/requests/put_worksheet_background_request.rb +3 -3
- data/lib/aspose_cells_cloud/requests/remove_characters_request.rb +246 -0
- data/lib/aspose_cells_cloud/requests/remove_duplicates_request.rb +162 -0
- data/lib/aspose_cells_cloud/requests/{delete_spreadsheet_blank_columns_request.rb → remove_spreadsheet_blank_columns_request.rb} +12 -12
- data/lib/aspose_cells_cloud/requests/{delete_spreadsheet_blank_rows_request.rb → remove_spreadsheet_blank_rows_request.rb} +12 -12
- data/lib/aspose_cells_cloud/requests/{delete_spreadsheet_blank_worksheets_request.rb → remove_spreadsheet_blank_worksheets_request.rb} +12 -12
- data/lib/aspose_cells_cloud/requests/rename_worksheet_in_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/repair_spreadsheet_request.rb +138 -0
- data/lib/aspose_cells_cloud/requests/replace_content_in_remote_range_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/replace_content_in_remote_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/replace_content_in_remote_worksheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/replace_spreadsheet_content_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/save_spreadsheet_as_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_range_request.rb +7 -7
- data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_spreadsheet_request.rb +7 -7
- data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_worksheet_request.rb +7 -7
- data/lib/aspose_cells_cloud/requests/search_content_in_remote_range_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/search_content_in_remote_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/search_content_in_remote_worksheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/search_spreadsheet_broken_links_request.rb +7 -7
- data/lib/aspose_cells_cloud/requests/search_spreadsheet_content_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/spec_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/split_remote_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/split_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/split_text_request.rb +214 -0
- data/lib/aspose_cells_cloud/requests/spreadsheet_digitalsignature_request.rb +142 -0
- data/lib/aspose_cells_cloud/requests/{sawp_range_request.rb → swap_range_request.rb} +15 -15
- data/lib/aspose_cells_cloud/requests/trim_character_request.rb +210 -0
- data/lib/aspose_cells_cloud/requests/unprotect_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/update_word_case_request.rb +166 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +18 -6
- metadata +19 -7
@@ -35,7 +35,7 @@ module AsposeCellsCloud
|
|
35
35
|
attr_accessor :template
|
36
36
|
attr_accessor :out_path
|
37
37
|
attr_accessor :out_storage_name
|
38
|
-
attr_accessor :
|
38
|
+
attr_accessor :region
|
39
39
|
attr_accessor :password
|
40
40
|
|
41
41
|
def initialize(attributes = {})
|
@@ -60,8 +60,8 @@ module AsposeCellsCloud
|
|
60
60
|
self.out_storage_name = attributes[:'outStorageName']
|
61
61
|
end
|
62
62
|
|
63
|
-
if attributes.has_key?(:'
|
64
|
-
self.
|
63
|
+
if attributes.has_key?(:'region')
|
64
|
+
self.region = attributes[:'region']
|
65
65
|
end
|
66
66
|
|
67
67
|
if attributes.has_key?(:'password')
|
@@ -76,7 +76,7 @@ module AsposeCellsCloud
|
|
76
76
|
:'template' => :'template',
|
77
77
|
:'out_path' => :'outPath',
|
78
78
|
:'out_storage_name' => :'outStorageName',
|
79
|
-
:'
|
79
|
+
:'region' => :'region',
|
80
80
|
:'password' => :'password'
|
81
81
|
}
|
82
82
|
end
|
@@ -88,7 +88,7 @@ module AsposeCellsCloud
|
|
88
88
|
:'template' => :'String',
|
89
89
|
:'out_path' => :'String',
|
90
90
|
:'out_storage_name' => :'String',
|
91
|
-
:'
|
91
|
+
:'region' => :'String',
|
92
92
|
:'password' => :'String'
|
93
93
|
}
|
94
94
|
end
|
@@ -107,7 +107,7 @@ module AsposeCellsCloud
|
|
107
107
|
query_params[:'template'] = self.template if !self.template.nil?
|
108
108
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
109
109
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
110
|
-
query_params[:'
|
110
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
111
111
|
query_params[:'password'] = self.password if !self.password.nil?
|
112
112
|
|
113
113
|
# header parameters
|
@@ -35,7 +35,7 @@ module AsposeCellsCloud
|
|
35
35
|
attr_accessor :sheet_name
|
36
36
|
attr_accessor :out_path
|
37
37
|
attr_accessor :out_storage_name
|
38
|
-
attr_accessor :
|
38
|
+
attr_accessor :region
|
39
39
|
attr_accessor :password
|
40
40
|
|
41
41
|
def initialize(attributes = {})
|
@@ -60,8 +60,8 @@ module AsposeCellsCloud
|
|
60
60
|
self.out_storage_name = attributes[:'outStorageName']
|
61
61
|
end
|
62
62
|
|
63
|
-
if attributes.has_key?(:'
|
64
|
-
self.
|
63
|
+
if attributes.has_key?(:'region')
|
64
|
+
self.region = attributes[:'region']
|
65
65
|
end
|
66
66
|
|
67
67
|
if attributes.has_key?(:'password')
|
@@ -76,7 +76,7 @@ module AsposeCellsCloud
|
|
76
76
|
:'sheet_name' => :'sheetName',
|
77
77
|
:'out_path' => :'outPath',
|
78
78
|
:'out_storage_name' => :'outStorageName',
|
79
|
-
:'
|
79
|
+
:'region' => :'region',
|
80
80
|
:'password' => :'password'
|
81
81
|
}
|
82
82
|
end
|
@@ -88,7 +88,7 @@ module AsposeCellsCloud
|
|
88
88
|
:'sheet_name' => :'String',
|
89
89
|
:'out_path' => :'String',
|
90
90
|
:'out_storage_name' => :'String',
|
91
|
-
:'
|
91
|
+
:'region' => :'String',
|
92
92
|
:'password' => :'String'
|
93
93
|
}
|
94
94
|
end
|
@@ -114,7 +114,7 @@ module AsposeCellsCloud
|
|
114
114
|
query_params[:'sheetName'] = self.sheet_name if !self.sheet_name.nil?
|
115
115
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
116
116
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
117
|
-
query_params[:'
|
117
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
118
118
|
query_params[:'password'] = self.password if !self.password.nil?
|
119
119
|
|
120
120
|
# header parameters
|
@@ -40,7 +40,7 @@ module AsposeCellsCloud
|
|
40
40
|
attr_accessor :out_path
|
41
41
|
attr_accessor :out_storage_name
|
42
42
|
attr_accessor :fonts_location
|
43
|
-
attr_accessor :
|
43
|
+
attr_accessor :region
|
44
44
|
attr_accessor :password
|
45
45
|
|
46
46
|
def initialize(attributes = {})
|
@@ -85,8 +85,8 @@ module AsposeCellsCloud
|
|
85
85
|
self.fonts_location = attributes[:'fontsLocation']
|
86
86
|
end
|
87
87
|
|
88
|
-
if attributes.has_key?(:'
|
89
|
-
self.
|
88
|
+
if attributes.has_key?(:'region')
|
89
|
+
self.region = attributes[:'region']
|
90
90
|
end
|
91
91
|
|
92
92
|
if attributes.has_key?(:'password')
|
@@ -106,7 +106,7 @@ module AsposeCellsCloud
|
|
106
106
|
:'out_path' => :'outPath',
|
107
107
|
:'out_storage_name' => :'outStorageName',
|
108
108
|
:'fonts_location' => :'fontsLocation',
|
109
|
-
:'
|
109
|
+
:'region' => :'region',
|
110
110
|
:'password' => :'password'
|
111
111
|
}
|
112
112
|
end
|
@@ -123,7 +123,7 @@ module AsposeCellsCloud
|
|
123
123
|
:'out_path' => :'String',
|
124
124
|
:'out_storage_name' => :'String',
|
125
125
|
:'fonts_location' => :'String',
|
126
|
-
:'
|
126
|
+
:'region' => :'String',
|
127
127
|
:'password' => :'String'
|
128
128
|
}
|
129
129
|
end
|
@@ -160,7 +160,7 @@ module AsposeCellsCloud
|
|
160
160
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
161
161
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
162
162
|
query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
|
163
|
-
query_params[:'
|
163
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
164
164
|
query_params[:'password'] = self.password if !self.password.nil?
|
165
165
|
|
166
166
|
# header parameters
|
@@ -40,7 +40,7 @@ module AsposeCellsCloud
|
|
40
40
|
attr_accessor :out_path
|
41
41
|
attr_accessor :out_storage_name
|
42
42
|
attr_accessor :fonts_location
|
43
|
-
attr_accessor :
|
43
|
+
attr_accessor :region
|
44
44
|
attr_accessor :password
|
45
45
|
|
46
46
|
def initialize(attributes = {})
|
@@ -85,8 +85,8 @@ module AsposeCellsCloud
|
|
85
85
|
self.fonts_location = attributes[:'fontsLocation']
|
86
86
|
end
|
87
87
|
|
88
|
-
if attributes.has_key?(:'
|
89
|
-
self.
|
88
|
+
if attributes.has_key?(:'region')
|
89
|
+
self.region = attributes[:'region']
|
90
90
|
end
|
91
91
|
|
92
92
|
if attributes.has_key?(:'password')
|
@@ -106,7 +106,7 @@ module AsposeCellsCloud
|
|
106
106
|
:'out_path' => :'outPath',
|
107
107
|
:'out_storage_name' => :'outStorageName',
|
108
108
|
:'fonts_location' => :'fontsLocation',
|
109
|
-
:'
|
109
|
+
:'region' => :'region',
|
110
110
|
:'password' => :'password'
|
111
111
|
}
|
112
112
|
end
|
@@ -123,7 +123,7 @@ module AsposeCellsCloud
|
|
123
123
|
:'out_path' => :'String',
|
124
124
|
:'out_storage_name' => :'String',
|
125
125
|
:'fonts_location' => :'String',
|
126
|
-
:'
|
126
|
+
:'region' => :'String',
|
127
127
|
:'password' => :'String'
|
128
128
|
}
|
129
129
|
end
|
@@ -160,7 +160,7 @@ module AsposeCellsCloud
|
|
160
160
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
161
161
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
162
162
|
query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
|
163
|
-
query_params[:'
|
163
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
164
164
|
query_params[:'password'] = self.password if !self.password.nil?
|
165
165
|
|
166
166
|
# header parameters
|
@@ -38,7 +38,7 @@ module AsposeCellsCloud
|
|
38
38
|
attr_accessor :out_path
|
39
39
|
attr_accessor :out_storage_name
|
40
40
|
attr_accessor :fonts_location
|
41
|
-
attr_accessor :
|
41
|
+
attr_accessor :region
|
42
42
|
attr_accessor :password
|
43
43
|
|
44
44
|
def initialize(attributes = {})
|
@@ -75,8 +75,8 @@ module AsposeCellsCloud
|
|
75
75
|
self.fonts_location = attributes[:'fontsLocation']
|
76
76
|
end
|
77
77
|
|
78
|
-
if attributes.has_key?(:'
|
79
|
-
self.
|
78
|
+
if attributes.has_key?(:'region')
|
79
|
+
self.region = attributes[:'region']
|
80
80
|
end
|
81
81
|
|
82
82
|
if attributes.has_key?(:'password')
|
@@ -94,7 +94,7 @@ module AsposeCellsCloud
|
|
94
94
|
:'out_path' => :'outPath',
|
95
95
|
:'out_storage_name' => :'outStorageName',
|
96
96
|
:'fonts_location' => :'fontsLocation',
|
97
|
-
:'
|
97
|
+
:'region' => :'region',
|
98
98
|
:'password' => :'password'
|
99
99
|
}
|
100
100
|
end
|
@@ -109,7 +109,7 @@ module AsposeCellsCloud
|
|
109
109
|
:'out_path' => :'String',
|
110
110
|
:'out_storage_name' => :'String',
|
111
111
|
:'fonts_location' => :'String',
|
112
|
-
:'
|
112
|
+
:'region' => :'String',
|
113
113
|
:'password' => :'String'
|
114
114
|
}
|
115
115
|
end
|
@@ -138,7 +138,7 @@ module AsposeCellsCloud
|
|
138
138
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
139
139
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
140
140
|
query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
|
141
|
-
query_params[:'
|
141
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
142
142
|
query_params[:'password'] = self.password if !self.password.nil?
|
143
143
|
|
144
144
|
# header parameters
|
@@ -40,7 +40,7 @@ module AsposeCellsCloud
|
|
40
40
|
attr_accessor :out_path
|
41
41
|
attr_accessor :out_storage_name
|
42
42
|
attr_accessor :fonts_location
|
43
|
-
attr_accessor :
|
43
|
+
attr_accessor :region
|
44
44
|
attr_accessor :password
|
45
45
|
|
46
46
|
def initialize(attributes = {})
|
@@ -85,8 +85,8 @@ module AsposeCellsCloud
|
|
85
85
|
self.fonts_location = attributes[:'fontsLocation']
|
86
86
|
end
|
87
87
|
|
88
|
-
if attributes.has_key?(:'
|
89
|
-
self.
|
88
|
+
if attributes.has_key?(:'region')
|
89
|
+
self.region = attributes[:'region']
|
90
90
|
end
|
91
91
|
|
92
92
|
if attributes.has_key?(:'password')
|
@@ -106,7 +106,7 @@ module AsposeCellsCloud
|
|
106
106
|
:'out_path' => :'outPath',
|
107
107
|
:'out_storage_name' => :'outStorageName',
|
108
108
|
:'fonts_location' => :'fontsLocation',
|
109
|
-
:'
|
109
|
+
:'region' => :'region',
|
110
110
|
:'password' => :'password'
|
111
111
|
}
|
112
112
|
end
|
@@ -123,7 +123,7 @@ module AsposeCellsCloud
|
|
123
123
|
:'out_path' => :'String',
|
124
124
|
:'out_storage_name' => :'String',
|
125
125
|
:'fonts_location' => :'String',
|
126
|
-
:'
|
126
|
+
:'region' => :'String',
|
127
127
|
:'password' => :'String'
|
128
128
|
}
|
129
129
|
end
|
@@ -160,7 +160,7 @@ module AsposeCellsCloud
|
|
160
160
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
161
161
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
162
162
|
query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
|
163
|
-
query_params[:'
|
163
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
164
164
|
query_params[:'password'] = self.password if !self.password.nil?
|
165
165
|
|
166
166
|
# header parameters
|
@@ -39,7 +39,7 @@ module AsposeCellsCloud
|
|
39
39
|
attr_accessor :out_path
|
40
40
|
attr_accessor :out_storage_name
|
41
41
|
attr_accessor :fonts_location
|
42
|
-
attr_accessor :
|
42
|
+
attr_accessor :region
|
43
43
|
attr_accessor :password
|
44
44
|
|
45
45
|
def initialize(attributes = {})
|
@@ -80,8 +80,8 @@ module AsposeCellsCloud
|
|
80
80
|
self.fonts_location = attributes[:'fontsLocation']
|
81
81
|
end
|
82
82
|
|
83
|
-
if attributes.has_key?(:'
|
84
|
-
self.
|
83
|
+
if attributes.has_key?(:'region')
|
84
|
+
self.region = attributes[:'region']
|
85
85
|
end
|
86
86
|
|
87
87
|
if attributes.has_key?(:'password')
|
@@ -100,7 +100,7 @@ module AsposeCellsCloud
|
|
100
100
|
:'out_path' => :'outPath',
|
101
101
|
:'out_storage_name' => :'outStorageName',
|
102
102
|
:'fonts_location' => :'fontsLocation',
|
103
|
-
:'
|
103
|
+
:'region' => :'region',
|
104
104
|
:'password' => :'password'
|
105
105
|
}
|
106
106
|
end
|
@@ -116,7 +116,7 @@ module AsposeCellsCloud
|
|
116
116
|
:'out_path' => :'String',
|
117
117
|
:'out_storage_name' => :'String',
|
118
118
|
:'fonts_location' => :'String',
|
119
|
-
:'
|
119
|
+
:'region' => :'String',
|
120
120
|
:'password' => :'String'
|
121
121
|
}
|
122
122
|
end
|
@@ -149,7 +149,7 @@ module AsposeCellsCloud
|
|
149
149
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
150
150
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
151
151
|
query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
|
152
|
-
query_params[:'
|
152
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
153
153
|
query_params[:'password'] = self.password if !self.password.nil?
|
154
154
|
|
155
155
|
# header parameters
|
@@ -0,0 +1,226 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
<copyright company="Aspose" file="ExtractText_request.rb.cs">
|
4
|
+
Copyright (c) 2025 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 "uri"
|
30
|
+
|
31
|
+
module AsposeCellsCloud
|
32
|
+
class ExtractTextRequest
|
33
|
+
|
34
|
+
attr_accessor :spreadsheet
|
35
|
+
attr_accessor :extract_text_type
|
36
|
+
attr_accessor :before_text
|
37
|
+
attr_accessor :after_text
|
38
|
+
attr_accessor :before_position
|
39
|
+
attr_accessor :after_position
|
40
|
+
attr_accessor :out_position_range
|
41
|
+
attr_accessor :worksheet
|
42
|
+
attr_accessor :range
|
43
|
+
attr_accessor :out_path
|
44
|
+
attr_accessor :out_storage_name
|
45
|
+
attr_accessor :region
|
46
|
+
attr_accessor :password
|
47
|
+
|
48
|
+
def initialize(attributes = {})
|
49
|
+
return unless attributes.is_a?(Hash)
|
50
|
+
|
51
|
+
# convert string to symbol for hash key
|
52
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
53
|
+
|
54
|
+
if attributes.has_key?(:'Spreadsheet')
|
55
|
+
self.spreadsheet = attributes[:'Spreadsheet']
|
56
|
+
end
|
57
|
+
|
58
|
+
if attributes.has_key?(:'extractTextType')
|
59
|
+
self.extract_text_type = attributes[:'extractTextType']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.has_key?(:'beforeText')
|
63
|
+
self.before_text = attributes[:'beforeText']
|
64
|
+
end
|
65
|
+
|
66
|
+
if attributes.has_key?(:'afterText')
|
67
|
+
self.after_text = attributes[:'afterText']
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes.has_key?(:'beforePosition')
|
71
|
+
self.before_position = attributes[:'beforePosition']
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes.has_key?(:'afterPosition')
|
75
|
+
self.after_position = attributes[:'afterPosition']
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes.has_key?(:'outPositionRange')
|
79
|
+
self.out_position_range = attributes[:'outPositionRange']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes.has_key?(:'worksheet')
|
83
|
+
self.worksheet = attributes[:'worksheet']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.has_key?(:'range')
|
87
|
+
self.range = attributes[:'range']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.has_key?(:'outPath')
|
91
|
+
self.out_path = attributes[:'outPath']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes.has_key?(:'outStorageName')
|
95
|
+
self.out_storage_name = attributes[:'outStorageName']
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes.has_key?(:'region')
|
99
|
+
self.region = attributes[:'region']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes.has_key?(:'password')
|
103
|
+
self.password = attributes[:'password']
|
104
|
+
end
|
105
|
+
|
106
|
+
end
|
107
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
108
|
+
def self.attribute_map
|
109
|
+
{
|
110
|
+
:'spreadsheet' => :'Spreadsheet',
|
111
|
+
:'extract_text_type' => :'extractTextType',
|
112
|
+
:'before_text' => :'beforeText',
|
113
|
+
:'after_text' => :'afterText',
|
114
|
+
:'before_position' => :'beforePosition',
|
115
|
+
:'after_position' => :'afterPosition',
|
116
|
+
:'out_position_range' => :'outPositionRange',
|
117
|
+
:'worksheet' => :'worksheet',
|
118
|
+
:'range' => :'range',
|
119
|
+
:'out_path' => :'outPath',
|
120
|
+
:'out_storage_name' => :'outStorageName',
|
121
|
+
:'region' => :'region',
|
122
|
+
:'password' => :'password'
|
123
|
+
}
|
124
|
+
end
|
125
|
+
|
126
|
+
# Attribute type mapping.
|
127
|
+
def self.swagger_types
|
128
|
+
{
|
129
|
+
:'spreadsheet' => :'String',
|
130
|
+
:'extract_text_type' => :'String',
|
131
|
+
:'before_text' => :'String',
|
132
|
+
:'after_text' => :'String',
|
133
|
+
:'before_position' => :'Integer',
|
134
|
+
:'after_position' => :'Integer',
|
135
|
+
:'out_position_range' => :'String',
|
136
|
+
:'worksheet' => :'String',
|
137
|
+
:'range' => :'String',
|
138
|
+
:'out_path' => :'String',
|
139
|
+
:'out_storage_name' => :'String',
|
140
|
+
:'region' => :'String',
|
141
|
+
:'password' => :'String'
|
142
|
+
}
|
143
|
+
end
|
144
|
+
|
145
|
+
def create_http_request(api_client,opts = {})
|
146
|
+
if api_client.config.debugging
|
147
|
+
api_client.config.logger.debug "Calling API: CellsApi.extract_text ..."
|
148
|
+
end
|
149
|
+
api_client.request_token_if_needed
|
150
|
+
# verify the required parameter 'spreadsheet' is set
|
151
|
+
if api_client.config.client_side_validation && spreadsheet.nil?
|
152
|
+
fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.extract_text "
|
153
|
+
end
|
154
|
+
# verify the required parameter 'extract_text_type' is set
|
155
|
+
if api_client.config.client_side_validation && extract_text_type.nil?
|
156
|
+
fail ArgumentError, "Missing the required parameter 'extract_text_type' when calling CellsApi.extract_text "
|
157
|
+
end
|
158
|
+
# verify the required parameter 'before_text' is set
|
159
|
+
if api_client.config.client_side_validation && before_text.nil?
|
160
|
+
fail ArgumentError, "Missing the required parameter 'before_text' when calling CellsApi.extract_text "
|
161
|
+
end
|
162
|
+
# verify the required parameter 'after_text' is set
|
163
|
+
if api_client.config.client_side_validation && after_text.nil?
|
164
|
+
fail ArgumentError, "Missing the required parameter 'after_text' when calling CellsApi.extract_text "
|
165
|
+
end
|
166
|
+
# verify the required parameter 'before_position' is set
|
167
|
+
if api_client.config.client_side_validation && before_position.nil?
|
168
|
+
fail ArgumentError, "Missing the required parameter 'before_position' when calling CellsApi.extract_text "
|
169
|
+
end
|
170
|
+
# verify the required parameter 'after_position' is set
|
171
|
+
if api_client.config.client_side_validation && after_position.nil?
|
172
|
+
fail ArgumentError, "Missing the required parameter 'after_position' when calling CellsApi.extract_text "
|
173
|
+
end
|
174
|
+
# verify the required parameter 'out_position_range' is set
|
175
|
+
if api_client.config.client_side_validation && out_position_range.nil?
|
176
|
+
fail ArgumentError, "Missing the required parameter 'out_position_range' when calling CellsApi.extract_text "
|
177
|
+
end
|
178
|
+
|
179
|
+
# resource path
|
180
|
+
local_var_path = "v4.0/cells/content/extract/text"
|
181
|
+
# query parameters
|
182
|
+
query_params = {}
|
183
|
+
query_params[:'extractTextType'] = self.extract_text_type if !self.extract_text_type.nil?
|
184
|
+
query_params[:'beforeText'] = self.before_text if !self.before_text.nil?
|
185
|
+
query_params[:'afterText'] = self.after_text if !self.after_text.nil?
|
186
|
+
query_params[:'beforePosition'] = self.before_position if !self.before_position.nil?
|
187
|
+
query_params[:'afterPosition'] = self.after_position if !self.after_position.nil?
|
188
|
+
query_params[:'outPositionRange'] = self.out_position_range if !self.out_position_range.nil?
|
189
|
+
query_params[:'worksheet'] = self.worksheet if !self.worksheet.nil?
|
190
|
+
query_params[:'range'] = self.range if !self.range.nil?
|
191
|
+
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
192
|
+
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
193
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
194
|
+
query_params[:'password'] = self.password if !self.password.nil?
|
195
|
+
|
196
|
+
# header parameters
|
197
|
+
header_params = {}
|
198
|
+
# HTTP header 'Accept' (if needed)
|
199
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
200
|
+
# HTTP header 'Content-Type'
|
201
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
202
|
+
|
203
|
+
# form parameters
|
204
|
+
form_params = {}
|
205
|
+
post_body = nil
|
206
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
207
|
+
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
208
|
+
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
209
|
+
end
|
210
|
+
|
211
|
+
#auth_names = []
|
212
|
+
auth_names = ['JWT']
|
213
|
+
data, status_code, headers = api_client.call_api(:PUT, local_var_path,
|
214
|
+
:header_params => header_params,
|
215
|
+
:query_params => query_params,
|
216
|
+
:form_params => form_params,
|
217
|
+
:body => post_body,
|
218
|
+
:auth_names => auth_names,
|
219
|
+
:return_type => 'File')
|
220
|
+
if api_client.config.debugging
|
221
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.extract_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
222
|
+
end
|
223
|
+
return data, status_code, headers
|
224
|
+
end
|
225
|
+
end
|
226
|
+
end
|
@@ -41,7 +41,7 @@ module AsposeCellsCloud
|
|
41
41
|
attr_accessor :out_path
|
42
42
|
attr_accessor :out_storage_name
|
43
43
|
attr_accessor :fonts_location
|
44
|
-
attr_accessor :
|
44
|
+
attr_accessor :region
|
45
45
|
attr_accessor :password
|
46
46
|
|
47
47
|
def initialize(attributes = {})
|
@@ -90,8 +90,8 @@ module AsposeCellsCloud
|
|
90
90
|
self.fonts_location = attributes[:'fontsLocation']
|
91
91
|
end
|
92
92
|
|
93
|
-
if attributes.has_key?(:'
|
94
|
-
self.
|
93
|
+
if attributes.has_key?(:'region')
|
94
|
+
self.region = attributes[:'region']
|
95
95
|
end
|
96
96
|
|
97
97
|
if attributes.has_key?(:'password')
|
@@ -112,7 +112,7 @@ module AsposeCellsCloud
|
|
112
112
|
:'out_path' => :'outPath',
|
113
113
|
:'out_storage_name' => :'outStorageName',
|
114
114
|
:'fonts_location' => :'fontsLocation',
|
115
|
-
:'
|
115
|
+
:'region' => :'region',
|
116
116
|
:'password' => :'password'
|
117
117
|
}
|
118
118
|
end
|
@@ -130,7 +130,7 @@ module AsposeCellsCloud
|
|
130
130
|
:'out_path' => :'String',
|
131
131
|
:'out_storage_name' => :'String',
|
132
132
|
:'fonts_location' => :'String',
|
133
|
-
:'
|
133
|
+
:'region' => :'String',
|
134
134
|
:'password' => :'String'
|
135
135
|
}
|
136
136
|
end
|
@@ -169,7 +169,7 @@ module AsposeCellsCloud
|
|
169
169
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
170
170
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
171
171
|
query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
|
172
|
-
query_params[:'
|
172
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
173
173
|
query_params[:'password'] = self.password if !self.password.nil?
|
174
174
|
|
175
175
|
# header parameters
|
@@ -36,7 +36,7 @@ module AsposeCellsCloud
|
|
36
36
|
attr_accessor :value
|
37
37
|
attr_accessor :worksheet
|
38
38
|
attr_accessor :range
|
39
|
-
attr_accessor :
|
39
|
+
attr_accessor :region
|
40
40
|
attr_accessor :password
|
41
41
|
|
42
42
|
def initialize(attributes = {})
|
@@ -65,8 +65,8 @@ module AsposeCellsCloud
|
|
65
65
|
self.range = attributes[:'range']
|
66
66
|
end
|
67
67
|
|
68
|
-
if attributes.has_key?(:'
|
69
|
-
self.
|
68
|
+
if attributes.has_key?(:'region')
|
69
|
+
self.region = attributes[:'region']
|
70
70
|
end
|
71
71
|
|
72
72
|
if attributes.has_key?(:'password')
|
@@ -82,7 +82,7 @@ module AsposeCellsCloud
|
|
82
82
|
:'value' => :'value',
|
83
83
|
:'worksheet' => :'worksheet',
|
84
84
|
:'range' => :'range',
|
85
|
-
:'
|
85
|
+
:'region' => :'region',
|
86
86
|
:'password' => :'password'
|
87
87
|
}
|
88
88
|
end
|
@@ -95,7 +95,7 @@ module AsposeCellsCloud
|
|
95
95
|
:'value' => :'String',
|
96
96
|
:'worksheet' => :'String',
|
97
97
|
:'range' => :'String',
|
98
|
-
:'
|
98
|
+
:'region' => :'String',
|
99
99
|
:'password' => :'String'
|
100
100
|
}
|
101
101
|
end
|
@@ -126,7 +126,7 @@ module AsposeCellsCloud
|
|
126
126
|
query_params[:'value'] = self.value if !self.value.nil?
|
127
127
|
query_params[:'worksheet'] = self.worksheet if !self.worksheet.nil?
|
128
128
|
query_params[:'range'] = self.range if !self.range.nil?
|
129
|
-
query_params[:'
|
129
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
130
130
|
query_params[:'password'] = self.password if !self.password.nil?
|
131
131
|
|
132
132
|
# header parameters
|