aspose_cells_cloud 26.3.1 → 26.6.4
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 +9 -11
- data/lib/aspose_cells_cloud/api/cells_api.rb +111 -0
- data/lib/aspose_cells_cloud/models/ebook_save_options.rb +822 -0
- data/lib/aspose_cells_cloud/requests/accept_all_revisions_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/add_text_in_remote_spreadsheet_request.rb +196 -0
- data/lib/aspose_cells_cloud/requests/add_text_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/add_worksheet_to_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/aggregate_cells_by_color_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/compress_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_chart_to_image_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_chart_to_pdf_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_range_to_csv_request.rb +17 -0
- data/lib/aspose_cells_cloud/requests/convert_range_to_html_request.rb +17 -0
- data/lib/aspose_cells_cloud/requests/convert_range_to_image_request.rb +17 -0
- data/lib/aspose_cells_cloud/requests/convert_range_to_json_request.rb +17 -0
- data/lib/aspose_cells_cloud/requests/convert_range_to_pdf_request.rb +17 -0
- data/lib/aspose_cells_cloud/requests/convert_spreadsheet_request.rb +17 -0
- data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_csv_request.rb +17 -0
- data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_json_request.rb +17 -0
- data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_pdf_request.rb +17 -0
- data/lib/aspose_cells_cloud/requests/convert_table_to_csv_request.rb +17 -0
- data/lib/aspose_cells_cloud/requests/convert_table_to_html_request.rb +17 -0
- data/lib/aspose_cells_cloud/requests/convert_table_to_image_request.rb +17 -0
- data/lib/aspose_cells_cloud/requests/convert_table_to_json_request.rb +17 -0
- data/lib/aspose_cells_cloud/requests/convert_table_to_pdf_request.rb +17 -0
- data/lib/aspose_cells_cloud/requests/convert_text_in_remote_spreadsheet_request.rb +184 -0
- data/lib/aspose_cells_cloud/requests/convert_text_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_csv_request.rb +17 -0
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_html_request.rb +17 -0
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_html_table_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_image_request.rb +17 -0
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_json_request.rb +17 -0
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_pdf_request.rb +17 -0
- data/lib/aspose_cells_cloud/requests/delete_metadata_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/delete_worksheet_from_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/export_range_as_format_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/export_spreadsheet_as_format_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/export_table_as_format_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/export_worksheet_as_format_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/extract_text_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/flip_data_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/get_merged_cells_in_worksheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/get_metadata_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/get_spreadsheet_structure_request.rb +123 -0
- data/lib/aspose_cells_cloud/requests/get_structure_in_remote_spreadsheet_request.rb +134 -0
- data/lib/aspose_cells_cloud/requests/get_worksheets_with_local_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/import_csv_data_into_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/import_data_into_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/import_json_data_into_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/import_xml_data_into_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/math_calculate_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/merge_spreadsheets_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/move_worksheet_in_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/post_assemble_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/post_clear_objects_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_compress_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_csv_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_docx_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_html_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_json_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_markdown_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_pdf_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_png_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_pptx_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_sql_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_export_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_import_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_lock_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_merge_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/post_metadata_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_protect_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_repair_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_replace_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_reverse_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_rotate_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_search_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_split_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_unlock_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_watermark_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/protect_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/put_workbook_background_request.rb +4 -3
- data/lib/aspose_cells_cloud/requests/put_worksheet_background_request.rb +4 -3
- data/lib/aspose_cells_cloud/requests/remove_characters_by_position_in_remote_spreadsheet_request.rb +196 -0
- data/lib/aspose_cells_cloud/requests/remove_characters_by_position_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/remove_characters_in_remote_spreadsheet_request.rb +188 -0
- data/lib/aspose_cells_cloud/requests/remove_characters_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/remove_duplicate_substrings_in_remote_spreadsheet_request.rb +184 -0
- data/lib/aspose_cells_cloud/requests/remove_duplicate_substrings_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/remove_duplicates_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/remove_spreadsheet_blank_columns_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/remove_spreadsheet_blank_rows_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/remove_spreadsheet_blank_worksheets_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/rename_worksheet_in_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/repair_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/replace_spreadsheet_content_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/report_ai_analysis_request.rb +122 -0
- data/lib/aspose_cells_cloud/requests/save_spreadsheet_as_request.rb +16 -0
- data/lib/aspose_cells_cloud/requests/search_spreadsheet_all_text_items_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/search_spreadsheet_broken_links_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/search_spreadsheet_content_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/split_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/split_table_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/split_text_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/spreadsheet_digitalsignature_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/summarize_spreadsheet_request.rb +123 -0
- data/lib/aspose_cells_cloud/requests/swap_range_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/translate_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/translate_text_file_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/transpose_data_request.rb +163 -0
- data/lib/aspose_cells_cloud/requests/trim_character_in_remote_spreadsheet_request.rb +212 -0
- data/lib/aspose_cells_cloud/requests/trim_character_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/unpivot_range_request.rb +171 -0
- data/lib/aspose_cells_cloud/requests/unpivot_table_request.rb +171 -0
- data/lib/aspose_cells_cloud/requests/unprotect_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/update_word_case_in_remote_spreadsheet_request.rb +168 -0
- data/lib/aspose_cells_cloud/requests/update_word_case_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/upload_file_request.rb +1 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +15 -0
- data/spec/TestData/AggregateCellsByColor.xlsx +0 -0
- data/spec/TestData/Book1.xlsx +0 -0
- data/spec/TestData/BookCsvDuplicateData.csv +21 -0
- data/spec/TestData/BookDuplicateData.xlsx +0 -0
- data/spec/TestData/BookFormula.xlsx +0 -0
- data/spec/TestData/BookTableL2W.xlsx +0 -0
- data/spec/TestData/BookText.xlsx +0 -0
- data/spec/TestData/CompanySales.xlsx +0 -0
- data/spec/TestData/EmployeeSalesSummary-BlankWorksheet.xlsx +0 -0
- data/spec/TestData/EmployeeSalesSummary.xlsx +0 -0
- data/spec/TestData/EmployeeSalesSummary_Locked.xlsx +0 -0
- data/spec/TestData/Formula tutorial.xlsx +0 -0
- data/spec/TestData/Group.xlsx +0 -0
- data/spec/TestData/Home inventory.xlsx +0 -0
- data/spec/TestData/LockedEmployeeSalesSummary.xlsx +0 -0
- data/spec/TestData/OLEDoc.docx +0 -0
- data/spec/TestData/ReportData.xml +1 -0
- data/spec/TestData/Simple invoice.xlsx +0 -0
- data/spec/TestData/Template.xlsx +0 -0
- data/spec/TestData/TestCase.xlsx +0 -0
- data/spec/TestData/TestTables.xlsx +0 -0
- data/spec/TestData/WaterMark.png +0 -0
- data/spec/TestData/assemblytest.xlsx +0 -0
- data/spec/TestData/data.xml +1 -0
- data/spec/TestData/datasource.xlsx +0 -0
- data/spec/TestData/myDocument.xlsx +0 -0
- data/spec/TestData/needUnlock.xlsx +0 -0
- data/spec/TestData/needlock.xlsx +0 -0
- data/spec/TestData/roywang.pfx +0 -0
- data/spec/TestData/word.jpg +0 -0
- data/spec/calculate/calculate_spec.rb +29 -0
- data/spec/cells_cloud30/auto_filter_controller_spec.rb +211 -0
- data/spec/cells_cloud30/batch_controller_spec.rb +113 -0
- data/spec/cells_cloud30/cells_controller_spec.rb +627 -0
- data/spec/cells_cloud30/cells_status_controller_spec.rb +43 -0
- data/spec/cells_cloud30/chart_area_controller_spec.rb +58 -0
- data/spec/cells_cloud30/charts_controller_spec.rb +227 -0
- data/spec/cells_cloud30/conditional_formattings_controller_spec.rb +149 -0
- data/spec/cells_cloud30/conversion30_spec.rb +1112 -0
- data/spec/cells_cloud30/data_processing_controller_spec.rb +97 -0
- data/spec/cells_cloud30/hypelinks_controller_spec.rb +104 -0
- data/spec/cells_cloud30/light_cells_spec.rb +1059 -0
- data/spec/cells_cloud30/list_objects_controller_spec.rb +225 -0
- data/spec/cells_cloud30/ole_objects_controller_spec.rb +108 -0
- data/spec/cells_cloud30/page_breaks_controller_spec.rb +163 -0
- data/spec/cells_cloud30/page_setup_controller_spec.rb +149 -0
- data/spec/cells_cloud30/pictures_controller_spec.rb +106 -0
- data/spec/cells_cloud30/pivot_tables_controller_spec.rb +312 -0
- data/spec/cells_cloud30/properties_controller_spec.rb +89 -0
- data/spec/cells_cloud30/ranges_controller_spec.rb +227 -0
- data/spec/cells_cloud30/shapes_controller_spec.rb +139 -0
- data/spec/cells_cloud30/sparkline_groups_controller_spec.rb +104 -0
- data/spec/cells_cloud30/text_processing_controller_spec.rb +67 -0
- data/spec/cells_cloud30/workbook_controller_spec.rb +519 -0
- data/spec/cells_cloud30/worksheet_controller_spec.rb +609 -0
- data/spec/cells_cloud30/worksheet_validations_controller_spec.rb +104 -0
- data/spec/cells_cloud30/xml_controller_spec.rb +48 -0
- data/spec/data_processing/conversion_spec.rb +428 -0
- data/spec/data_processing/import_data_spec.rb +24 -0
- data/spec/data_processing/merger_spec.rb +28 -0
- data/spec/data_processing/protection_spec.rb +29 -0
- data/spec/data_processing/splitter_spec.rb +47 -0
- data/spec/data_processing/transform_spec.rb +43 -0
- data/spec/dynabic/file_controller_spec.rb +60 -0
- data/spec/dynabic/folder_controller_spec.rb +88 -0
- data/spec/dynabic/storage_controller_spec.rb +73 -0
- data/spec/management/management_spec.rb +111 -0
- data/spec/search2_replace/replacer_spec.rb +46 -0
- data/spec/search2_replace/searcher_spec.rb +131 -0
- data/spec/spec_helper.rb +134 -0
- data/spec/text_processing/add_text_spec.rb +45 -0
- data/spec/text_processing/convert_text_spec.rb +37 -0
- data/spec/text_processing/extract_text_spec.rb +37 -0
- data/spec/text_processing/remove_characters_spec.rb +53 -0
- data/spec/text_processing/split_text_spec.rb +21 -0
- data/spec/text_processing/trim_spreadsheet_spec.rb +29 -0
- data/spec/text_processing/update_word_case_spec.rb +37 -0
- metadata +95 -3
|
@@ -35,6 +35,8 @@ module AsposeCellsCloud
|
|
|
35
35
|
attr_accessor :out_path
|
|
36
36
|
attr_accessor :out_storage_name
|
|
37
37
|
attr_accessor :fonts_location
|
|
38
|
+
attr_accessor :auto_rows_fit
|
|
39
|
+
attr_accessor :auto_columns_fit
|
|
38
40
|
attr_accessor :region
|
|
39
41
|
attr_accessor :password
|
|
40
42
|
|
|
@@ -60,6 +62,14 @@ module AsposeCellsCloud
|
|
|
60
62
|
self.fonts_location = attributes[:'fontsLocation']
|
|
61
63
|
end
|
|
62
64
|
|
|
65
|
+
if attributes.has_key?(:'AutoRowsFit')
|
|
66
|
+
self.auto_rows_fit = attributes[:'AutoRowsFit']
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
if attributes.has_key?(:'AutoColumnsFit')
|
|
70
|
+
self.auto_columns_fit = attributes[:'AutoColumnsFit']
|
|
71
|
+
end
|
|
72
|
+
|
|
63
73
|
if attributes.has_key?(:'region')
|
|
64
74
|
self.region = attributes[:'region']
|
|
65
75
|
end
|
|
@@ -76,6 +86,8 @@ module AsposeCellsCloud
|
|
|
76
86
|
:'out_path' => :'outPath',
|
|
77
87
|
:'out_storage_name' => :'outStorageName',
|
|
78
88
|
:'fonts_location' => :'fontsLocation',
|
|
89
|
+
:'auto_rows_fit' => :'AutoRowsFit',
|
|
90
|
+
:'auto_columns_fit' => :'AutoColumnsFit',
|
|
79
91
|
:'region' => :'region',
|
|
80
92
|
:'password' => :'password'
|
|
81
93
|
}
|
|
@@ -88,6 +100,8 @@ module AsposeCellsCloud
|
|
|
88
100
|
:'out_path' => :'String',
|
|
89
101
|
:'out_storage_name' => :'String',
|
|
90
102
|
:'fonts_location' => :'String',
|
|
103
|
+
:'auto_rows_fit' => :'String',
|
|
104
|
+
:'auto_columns_fit' => :'String',
|
|
91
105
|
:'region' => :'String',
|
|
92
106
|
:'password' => :'String'
|
|
93
107
|
}
|
|
@@ -110,6 +124,8 @@ module AsposeCellsCloud
|
|
|
110
124
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
|
111
125
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
|
112
126
|
query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
|
|
127
|
+
query_params[:'AutoRowsFit'] = self.auto_rows_fit if !self.auto_rows_fit.nil?
|
|
128
|
+
query_params[:'AutoColumnsFit'] = self.auto_columns_fit if !self.auto_columns_fit.nil?
|
|
113
129
|
query_params[:'region'] = self.region if !self.region.nil?
|
|
114
130
|
query_params[:'password'] = self.password if !self.password.nil?
|
|
115
131
|
|
|
@@ -123,6 +139,7 @@ module AsposeCellsCloud
|
|
|
123
139
|
# form parameters
|
|
124
140
|
form_params = {}
|
|
125
141
|
post_body = nil
|
|
142
|
+
|
|
126
143
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
127
144
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
128
145
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -35,6 +35,8 @@ module AsposeCellsCloud
|
|
|
35
35
|
attr_accessor :out_path
|
|
36
36
|
attr_accessor :out_storage_name
|
|
37
37
|
attr_accessor :fonts_location
|
|
38
|
+
attr_accessor :auto_rows_fit
|
|
39
|
+
attr_accessor :auto_columns_fit
|
|
38
40
|
attr_accessor :region
|
|
39
41
|
attr_accessor :password
|
|
40
42
|
|
|
@@ -60,6 +62,14 @@ module AsposeCellsCloud
|
|
|
60
62
|
self.fonts_location = attributes[:'fontsLocation']
|
|
61
63
|
end
|
|
62
64
|
|
|
65
|
+
if attributes.has_key?(:'AutoRowsFit')
|
|
66
|
+
self.auto_rows_fit = attributes[:'AutoRowsFit']
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
if attributes.has_key?(:'AutoColumnsFit')
|
|
70
|
+
self.auto_columns_fit = attributes[:'AutoColumnsFit']
|
|
71
|
+
end
|
|
72
|
+
|
|
63
73
|
if attributes.has_key?(:'region')
|
|
64
74
|
self.region = attributes[:'region']
|
|
65
75
|
end
|
|
@@ -76,6 +86,8 @@ module AsposeCellsCloud
|
|
|
76
86
|
:'out_path' => :'outPath',
|
|
77
87
|
:'out_storage_name' => :'outStorageName',
|
|
78
88
|
:'fonts_location' => :'fontsLocation',
|
|
89
|
+
:'auto_rows_fit' => :'AutoRowsFit',
|
|
90
|
+
:'auto_columns_fit' => :'AutoColumnsFit',
|
|
79
91
|
:'region' => :'region',
|
|
80
92
|
:'password' => :'password'
|
|
81
93
|
}
|
|
@@ -88,6 +100,8 @@ module AsposeCellsCloud
|
|
|
88
100
|
:'out_path' => :'String',
|
|
89
101
|
:'out_storage_name' => :'String',
|
|
90
102
|
:'fonts_location' => :'String',
|
|
103
|
+
:'auto_rows_fit' => :'String',
|
|
104
|
+
:'auto_columns_fit' => :'String',
|
|
91
105
|
:'region' => :'String',
|
|
92
106
|
:'password' => :'String'
|
|
93
107
|
}
|
|
@@ -110,6 +124,8 @@ module AsposeCellsCloud
|
|
|
110
124
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
|
111
125
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
|
112
126
|
query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
|
|
127
|
+
query_params[:'AutoRowsFit'] = self.auto_rows_fit if !self.auto_rows_fit.nil?
|
|
128
|
+
query_params[:'AutoColumnsFit'] = self.auto_columns_fit if !self.auto_columns_fit.nil?
|
|
113
129
|
query_params[:'region'] = self.region if !self.region.nil?
|
|
114
130
|
query_params[:'password'] = self.password if !self.password.nil?
|
|
115
131
|
|
|
@@ -123,6 +139,7 @@ module AsposeCellsCloud
|
|
|
123
139
|
# form parameters
|
|
124
140
|
form_params = {}
|
|
125
141
|
post_body = nil
|
|
142
|
+
|
|
126
143
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
127
144
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
128
145
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -37,6 +37,8 @@ module AsposeCellsCloud
|
|
|
37
37
|
attr_accessor :out_path
|
|
38
38
|
attr_accessor :out_storage_name
|
|
39
39
|
attr_accessor :fonts_location
|
|
40
|
+
attr_accessor :auto_rows_fit
|
|
41
|
+
attr_accessor :auto_columns_fit
|
|
40
42
|
attr_accessor :region
|
|
41
43
|
attr_accessor :password
|
|
42
44
|
|
|
@@ -70,6 +72,14 @@ module AsposeCellsCloud
|
|
|
70
72
|
self.fonts_location = attributes[:'fontsLocation']
|
|
71
73
|
end
|
|
72
74
|
|
|
75
|
+
if attributes.has_key?(:'AutoRowsFit')
|
|
76
|
+
self.auto_rows_fit = attributes[:'AutoRowsFit']
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
if attributes.has_key?(:'AutoColumnsFit')
|
|
80
|
+
self.auto_columns_fit = attributes[:'AutoColumnsFit']
|
|
81
|
+
end
|
|
82
|
+
|
|
73
83
|
if attributes.has_key?(:'region')
|
|
74
84
|
self.region = attributes[:'region']
|
|
75
85
|
end
|
|
@@ -88,6 +98,8 @@ module AsposeCellsCloud
|
|
|
88
98
|
:'out_path' => :'outPath',
|
|
89
99
|
:'out_storage_name' => :'outStorageName',
|
|
90
100
|
:'fonts_location' => :'fontsLocation',
|
|
101
|
+
:'auto_rows_fit' => :'AutoRowsFit',
|
|
102
|
+
:'auto_columns_fit' => :'AutoColumnsFit',
|
|
91
103
|
:'region' => :'region',
|
|
92
104
|
:'password' => :'password'
|
|
93
105
|
}
|
|
@@ -102,6 +114,8 @@ module AsposeCellsCloud
|
|
|
102
114
|
:'out_path' => :'String',
|
|
103
115
|
:'out_storage_name' => :'String',
|
|
104
116
|
:'fonts_location' => :'String',
|
|
117
|
+
:'auto_rows_fit' => :'String',
|
|
118
|
+
:'auto_columns_fit' => :'String',
|
|
105
119
|
:'region' => :'String',
|
|
106
120
|
:'password' => :'String'
|
|
107
121
|
}
|
|
@@ -134,6 +148,8 @@ module AsposeCellsCloud
|
|
|
134
148
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
|
135
149
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
|
136
150
|
query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
|
|
151
|
+
query_params[:'AutoRowsFit'] = self.auto_rows_fit if !self.auto_rows_fit.nil?
|
|
152
|
+
query_params[:'AutoColumnsFit'] = self.auto_columns_fit if !self.auto_columns_fit.nil?
|
|
137
153
|
query_params[:'region'] = self.region if !self.region.nil?
|
|
138
154
|
query_params[:'password'] = self.password if !self.password.nil?
|
|
139
155
|
|
|
@@ -147,6 +163,7 @@ module AsposeCellsCloud
|
|
|
147
163
|
# form parameters
|
|
148
164
|
form_params = {}
|
|
149
165
|
post_body = nil
|
|
166
|
+
|
|
150
167
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
151
168
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
152
169
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -37,6 +37,8 @@ module AsposeCellsCloud
|
|
|
37
37
|
attr_accessor :out_path
|
|
38
38
|
attr_accessor :out_storage_name
|
|
39
39
|
attr_accessor :fonts_location
|
|
40
|
+
attr_accessor :auto_rows_fit
|
|
41
|
+
attr_accessor :auto_columns_fit
|
|
40
42
|
attr_accessor :region
|
|
41
43
|
attr_accessor :password
|
|
42
44
|
|
|
@@ -70,6 +72,14 @@ module AsposeCellsCloud
|
|
|
70
72
|
self.fonts_location = attributes[:'fontsLocation']
|
|
71
73
|
end
|
|
72
74
|
|
|
75
|
+
if attributes.has_key?(:'AutoRowsFit')
|
|
76
|
+
self.auto_rows_fit = attributes[:'AutoRowsFit']
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
if attributes.has_key?(:'AutoColumnsFit')
|
|
80
|
+
self.auto_columns_fit = attributes[:'AutoColumnsFit']
|
|
81
|
+
end
|
|
82
|
+
|
|
73
83
|
if attributes.has_key?(:'region')
|
|
74
84
|
self.region = attributes[:'region']
|
|
75
85
|
end
|
|
@@ -88,6 +98,8 @@ module AsposeCellsCloud
|
|
|
88
98
|
:'out_path' => :'outPath',
|
|
89
99
|
:'out_storage_name' => :'outStorageName',
|
|
90
100
|
:'fonts_location' => :'fontsLocation',
|
|
101
|
+
:'auto_rows_fit' => :'AutoRowsFit',
|
|
102
|
+
:'auto_columns_fit' => :'AutoColumnsFit',
|
|
91
103
|
:'region' => :'region',
|
|
92
104
|
:'password' => :'password'
|
|
93
105
|
}
|
|
@@ -102,6 +114,8 @@ module AsposeCellsCloud
|
|
|
102
114
|
:'out_path' => :'String',
|
|
103
115
|
:'out_storage_name' => :'String',
|
|
104
116
|
:'fonts_location' => :'String',
|
|
117
|
+
:'auto_rows_fit' => :'String',
|
|
118
|
+
:'auto_columns_fit' => :'String',
|
|
105
119
|
:'region' => :'String',
|
|
106
120
|
:'password' => :'String'
|
|
107
121
|
}
|
|
@@ -134,6 +148,8 @@ module AsposeCellsCloud
|
|
|
134
148
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
|
135
149
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
|
136
150
|
query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
|
|
151
|
+
query_params[:'AutoRowsFit'] = self.auto_rows_fit if !self.auto_rows_fit.nil?
|
|
152
|
+
query_params[:'AutoColumnsFit'] = self.auto_columns_fit if !self.auto_columns_fit.nil?
|
|
137
153
|
query_params[:'region'] = self.region if !self.region.nil?
|
|
138
154
|
query_params[:'password'] = self.password if !self.password.nil?
|
|
139
155
|
|
|
@@ -147,6 +163,7 @@ module AsposeCellsCloud
|
|
|
147
163
|
# form parameters
|
|
148
164
|
form_params = {}
|
|
149
165
|
post_body = nil
|
|
166
|
+
|
|
150
167
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
151
168
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
152
169
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -38,6 +38,8 @@ module AsposeCellsCloud
|
|
|
38
38
|
attr_accessor :out_path
|
|
39
39
|
attr_accessor :out_storage_name
|
|
40
40
|
attr_accessor :fonts_location
|
|
41
|
+
attr_accessor :auto_rows_fit
|
|
42
|
+
attr_accessor :auto_columns_fit
|
|
41
43
|
attr_accessor :region
|
|
42
44
|
attr_accessor :password
|
|
43
45
|
|
|
@@ -75,6 +77,14 @@ module AsposeCellsCloud
|
|
|
75
77
|
self.fonts_location = attributes[:'fontsLocation']
|
|
76
78
|
end
|
|
77
79
|
|
|
80
|
+
if attributes.has_key?(:'AutoRowsFit')
|
|
81
|
+
self.auto_rows_fit = attributes[:'AutoRowsFit']
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if attributes.has_key?(:'AutoColumnsFit')
|
|
85
|
+
self.auto_columns_fit = attributes[:'AutoColumnsFit']
|
|
86
|
+
end
|
|
87
|
+
|
|
78
88
|
if attributes.has_key?(:'region')
|
|
79
89
|
self.region = attributes[:'region']
|
|
80
90
|
end
|
|
@@ -94,6 +104,8 @@ module AsposeCellsCloud
|
|
|
94
104
|
:'out_path' => :'outPath',
|
|
95
105
|
:'out_storage_name' => :'outStorageName',
|
|
96
106
|
:'fonts_location' => :'fontsLocation',
|
|
107
|
+
:'auto_rows_fit' => :'AutoRowsFit',
|
|
108
|
+
:'auto_columns_fit' => :'AutoColumnsFit',
|
|
97
109
|
:'region' => :'region',
|
|
98
110
|
:'password' => :'password'
|
|
99
111
|
}
|
|
@@ -109,6 +121,8 @@ module AsposeCellsCloud
|
|
|
109
121
|
:'out_path' => :'String',
|
|
110
122
|
:'out_storage_name' => :'String',
|
|
111
123
|
:'fonts_location' => :'String',
|
|
124
|
+
:'auto_rows_fit' => :'String',
|
|
125
|
+
:'auto_columns_fit' => :'String',
|
|
112
126
|
:'region' => :'String',
|
|
113
127
|
:'password' => :'String'
|
|
114
128
|
}
|
|
@@ -146,6 +160,8 @@ module AsposeCellsCloud
|
|
|
146
160
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
|
147
161
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
|
148
162
|
query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
|
|
163
|
+
query_params[:'AutoRowsFit'] = self.auto_rows_fit if !self.auto_rows_fit.nil?
|
|
164
|
+
query_params[:'AutoColumnsFit'] = self.auto_columns_fit if !self.auto_columns_fit.nil?
|
|
149
165
|
query_params[:'region'] = self.region if !self.region.nil?
|
|
150
166
|
query_params[:'password'] = self.password if !self.password.nil?
|
|
151
167
|
|
|
@@ -159,6 +175,7 @@ module AsposeCellsCloud
|
|
|
159
175
|
# form parameters
|
|
160
176
|
form_params = {}
|
|
161
177
|
post_body = nil
|
|
178
|
+
|
|
162
179
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
163
180
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
164
181
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -37,6 +37,8 @@ module AsposeCellsCloud
|
|
|
37
37
|
attr_accessor :out_path
|
|
38
38
|
attr_accessor :out_storage_name
|
|
39
39
|
attr_accessor :fonts_location
|
|
40
|
+
attr_accessor :auto_rows_fit
|
|
41
|
+
attr_accessor :auto_columns_fit
|
|
40
42
|
attr_accessor :region
|
|
41
43
|
attr_accessor :password
|
|
42
44
|
|
|
@@ -70,6 +72,14 @@ module AsposeCellsCloud
|
|
|
70
72
|
self.fonts_location = attributes[:'fontsLocation']
|
|
71
73
|
end
|
|
72
74
|
|
|
75
|
+
if attributes.has_key?(:'AutoRowsFit')
|
|
76
|
+
self.auto_rows_fit = attributes[:'AutoRowsFit']
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
if attributes.has_key?(:'AutoColumnsFit')
|
|
80
|
+
self.auto_columns_fit = attributes[:'AutoColumnsFit']
|
|
81
|
+
end
|
|
82
|
+
|
|
73
83
|
if attributes.has_key?(:'region')
|
|
74
84
|
self.region = attributes[:'region']
|
|
75
85
|
end
|
|
@@ -88,6 +98,8 @@ module AsposeCellsCloud
|
|
|
88
98
|
:'out_path' => :'outPath',
|
|
89
99
|
:'out_storage_name' => :'outStorageName',
|
|
90
100
|
:'fonts_location' => :'fontsLocation',
|
|
101
|
+
:'auto_rows_fit' => :'AutoRowsFit',
|
|
102
|
+
:'auto_columns_fit' => :'AutoColumnsFit',
|
|
91
103
|
:'region' => :'region',
|
|
92
104
|
:'password' => :'password'
|
|
93
105
|
}
|
|
@@ -102,6 +114,8 @@ module AsposeCellsCloud
|
|
|
102
114
|
:'out_path' => :'String',
|
|
103
115
|
:'out_storage_name' => :'String',
|
|
104
116
|
:'fonts_location' => :'String',
|
|
117
|
+
:'auto_rows_fit' => :'String',
|
|
118
|
+
:'auto_columns_fit' => :'String',
|
|
105
119
|
:'region' => :'String',
|
|
106
120
|
:'password' => :'String'
|
|
107
121
|
}
|
|
@@ -134,6 +148,8 @@ module AsposeCellsCloud
|
|
|
134
148
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
|
135
149
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
|
136
150
|
query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
|
|
151
|
+
query_params[:'AutoRowsFit'] = self.auto_rows_fit if !self.auto_rows_fit.nil?
|
|
152
|
+
query_params[:'AutoColumnsFit'] = self.auto_columns_fit if !self.auto_columns_fit.nil?
|
|
137
153
|
query_params[:'region'] = self.region if !self.region.nil?
|
|
138
154
|
query_params[:'password'] = self.password if !self.password.nil?
|
|
139
155
|
|
|
@@ -147,6 +163,7 @@ module AsposeCellsCloud
|
|
|
147
163
|
# form parameters
|
|
148
164
|
form_params = {}
|
|
149
165
|
post_body = nil
|
|
166
|
+
|
|
150
167
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
151
168
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
152
169
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -37,6 +37,8 @@ module AsposeCellsCloud
|
|
|
37
37
|
attr_accessor :out_path
|
|
38
38
|
attr_accessor :out_storage_name
|
|
39
39
|
attr_accessor :fonts_location
|
|
40
|
+
attr_accessor :auto_rows_fit
|
|
41
|
+
attr_accessor :auto_columns_fit
|
|
40
42
|
attr_accessor :region
|
|
41
43
|
attr_accessor :password
|
|
42
44
|
|
|
@@ -70,6 +72,14 @@ module AsposeCellsCloud
|
|
|
70
72
|
self.fonts_location = attributes[:'fontsLocation']
|
|
71
73
|
end
|
|
72
74
|
|
|
75
|
+
if attributes.has_key?(:'AutoRowsFit')
|
|
76
|
+
self.auto_rows_fit = attributes[:'AutoRowsFit']
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
if attributes.has_key?(:'AutoColumnsFit')
|
|
80
|
+
self.auto_columns_fit = attributes[:'AutoColumnsFit']
|
|
81
|
+
end
|
|
82
|
+
|
|
73
83
|
if attributes.has_key?(:'region')
|
|
74
84
|
self.region = attributes[:'region']
|
|
75
85
|
end
|
|
@@ -88,6 +98,8 @@ module AsposeCellsCloud
|
|
|
88
98
|
:'out_path' => :'outPath',
|
|
89
99
|
:'out_storage_name' => :'outStorageName',
|
|
90
100
|
:'fonts_location' => :'fontsLocation',
|
|
101
|
+
:'auto_rows_fit' => :'AutoRowsFit',
|
|
102
|
+
:'auto_columns_fit' => :'AutoColumnsFit',
|
|
91
103
|
:'region' => :'region',
|
|
92
104
|
:'password' => :'password'
|
|
93
105
|
}
|
|
@@ -102,6 +114,8 @@ module AsposeCellsCloud
|
|
|
102
114
|
:'out_path' => :'String',
|
|
103
115
|
:'out_storage_name' => :'String',
|
|
104
116
|
:'fonts_location' => :'String',
|
|
117
|
+
:'auto_rows_fit' => :'String',
|
|
118
|
+
:'auto_columns_fit' => :'String',
|
|
105
119
|
:'region' => :'String',
|
|
106
120
|
:'password' => :'String'
|
|
107
121
|
}
|
|
@@ -134,6 +148,8 @@ module AsposeCellsCloud
|
|
|
134
148
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
|
135
149
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
|
136
150
|
query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
|
|
151
|
+
query_params[:'AutoRowsFit'] = self.auto_rows_fit if !self.auto_rows_fit.nil?
|
|
152
|
+
query_params[:'AutoColumnsFit'] = self.auto_columns_fit if !self.auto_columns_fit.nil?
|
|
137
153
|
query_params[:'region'] = self.region if !self.region.nil?
|
|
138
154
|
query_params[:'password'] = self.password if !self.password.nil?
|
|
139
155
|
|
|
@@ -147,6 +163,7 @@ module AsposeCellsCloud
|
|
|
147
163
|
# form parameters
|
|
148
164
|
form_params = {}
|
|
149
165
|
post_body = nil
|
|
166
|
+
|
|
150
167
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
151
168
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
152
169
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
<copyright company="Aspose" file="ConvertTextInRemoteSpreadsheet_request.rb.cs">
|
|
4
|
+
Copyright (c) 2026 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 ConvertTextInRemoteSpreadsheetRequest
|
|
33
|
+
|
|
34
|
+
attr_accessor :name
|
|
35
|
+
attr_accessor :worksheet
|
|
36
|
+
attr_accessor :range
|
|
37
|
+
attr_accessor :convert_text_type
|
|
38
|
+
attr_accessor :source_characters
|
|
39
|
+
attr_accessor :target_characters
|
|
40
|
+
attr_accessor :folder
|
|
41
|
+
attr_accessor :storage_name
|
|
42
|
+
attr_accessor :region
|
|
43
|
+
attr_accessor :password
|
|
44
|
+
|
|
45
|
+
def initialize(attributes = {})
|
|
46
|
+
return unless attributes.is_a?(Hash)
|
|
47
|
+
|
|
48
|
+
# convert string to symbol for hash key
|
|
49
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
50
|
+
|
|
51
|
+
if attributes.has_key?(:'name')
|
|
52
|
+
self.name = attributes[:'name']
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
if attributes.has_key?(:'worksheet')
|
|
56
|
+
self.worksheet = attributes[:'worksheet']
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
if attributes.has_key?(:'range')
|
|
60
|
+
self.range = attributes[:'range']
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
if attributes.has_key?(:'convertTextType')
|
|
64
|
+
self.convert_text_type = attributes[:'convertTextType']
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
if attributes.has_key?(:'sourceCharacters')
|
|
68
|
+
self.source_characters = attributes[:'sourceCharacters']
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
if attributes.has_key?(:'targetCharacters')
|
|
72
|
+
self.target_characters = attributes[:'targetCharacters']
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
if attributes.has_key?(:'folder')
|
|
76
|
+
self.folder = attributes[:'folder']
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
if attributes.has_key?(:'storageName')
|
|
80
|
+
self.storage_name = attributes[:'storageName']
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
if attributes.has_key?(:'region')
|
|
84
|
+
self.region = attributes[:'region']
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
if attributes.has_key?(:'password')
|
|
88
|
+
self.password = attributes[:'password']
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
end
|
|
92
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
93
|
+
def self.attribute_map
|
|
94
|
+
{
|
|
95
|
+
:'name' => :'name',
|
|
96
|
+
:'worksheet' => :'worksheet',
|
|
97
|
+
:'range' => :'range',
|
|
98
|
+
:'convert_text_type' => :'convertTextType',
|
|
99
|
+
:'source_characters' => :'sourceCharacters',
|
|
100
|
+
:'target_characters' => :'targetCharacters',
|
|
101
|
+
:'folder' => :'folder',
|
|
102
|
+
:'storage_name' => :'storageName',
|
|
103
|
+
:'region' => :'region',
|
|
104
|
+
:'password' => :'password'
|
|
105
|
+
}
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Attribute type mapping.
|
|
109
|
+
def self.swagger_types
|
|
110
|
+
{
|
|
111
|
+
:'name' => :'String',
|
|
112
|
+
:'worksheet' => :'String',
|
|
113
|
+
:'range' => :'String',
|
|
114
|
+
:'convert_text_type' => :'String',
|
|
115
|
+
:'source_characters' => :'String',
|
|
116
|
+
:'target_characters' => :'String',
|
|
117
|
+
:'folder' => :'String',
|
|
118
|
+
:'storage_name' => :'String',
|
|
119
|
+
:'region' => :'String',
|
|
120
|
+
:'password' => :'String'
|
|
121
|
+
}
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
def create_http_request(api_client,opts = {})
|
|
125
|
+
if api_client.config.debugging
|
|
126
|
+
api_client.config.logger.debug "Calling API: CellsApi.convert_text_in_remote_spreadsheet ..."
|
|
127
|
+
end
|
|
128
|
+
api_client.request_token_if_needed
|
|
129
|
+
# verify the required parameter 'name' is set
|
|
130
|
+
if api_client.config.client_side_validation && name.nil?
|
|
131
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.convert_text_in_remote_spreadsheet "
|
|
132
|
+
end
|
|
133
|
+
# verify the required parameter 'worksheet' is set
|
|
134
|
+
if api_client.config.client_side_validation && worksheet.nil?
|
|
135
|
+
fail ArgumentError, "Missing the required parameter 'worksheet' when calling CellsApi.convert_text_in_remote_spreadsheet "
|
|
136
|
+
end
|
|
137
|
+
# verify the required parameter 'range' is set
|
|
138
|
+
if api_client.config.client_side_validation && range.nil?
|
|
139
|
+
fail ArgumentError, "Missing the required parameter 'range' when calling CellsApi.convert_text_in_remote_spreadsheet "
|
|
140
|
+
end
|
|
141
|
+
# verify the required parameter 'convert_text_type' is set
|
|
142
|
+
if api_client.config.client_side_validation && convert_text_type.nil?
|
|
143
|
+
fail ArgumentError, "Missing the required parameter 'convert_text_type' when calling CellsApi.convert_text_in_remote_spreadsheet "
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# resource path
|
|
147
|
+
local_var_path = "v4.0/cells/{name}/worksheets/{worksheet}/range/{range}/content/convert/text".sub('{' + 'name' + '}', name.to_s).sub('{' + 'worksheet' + '}', worksheet.to_s).sub('{' + 'range' + '}', range.to_s)
|
|
148
|
+
# query parameters
|
|
149
|
+
query_params = {}
|
|
150
|
+
query_params[:'convertTextType'] = self.convert_text_type if !self.convert_text_type.nil?
|
|
151
|
+
query_params[:'sourceCharacters'] = self.source_characters if !self.source_characters.nil?
|
|
152
|
+
query_params[:'targetCharacters'] = self.target_characters if !self.target_characters.nil?
|
|
153
|
+
query_params[:'folder'] = self.folder if !self.folder.nil?
|
|
154
|
+
query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
|
|
155
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
|
156
|
+
query_params[:'password'] = self.password if !self.password.nil?
|
|
157
|
+
|
|
158
|
+
# header parameters
|
|
159
|
+
header_params = {}
|
|
160
|
+
# HTTP header 'Accept' (if needed)
|
|
161
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
|
162
|
+
# HTTP header 'Content-Type'
|
|
163
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
|
164
|
+
|
|
165
|
+
# form parameters
|
|
166
|
+
form_params = {}
|
|
167
|
+
post_body = nil
|
|
168
|
+
|
|
169
|
+
#auth_names = []
|
|
170
|
+
auth_names = ['JWT']
|
|
171
|
+
data, status_code, headers = api_client.call_api(:PUT, local_var_path,
|
|
172
|
+
:header_params => header_params,
|
|
173
|
+
:query_params => query_params,
|
|
174
|
+
:form_params => form_params,
|
|
175
|
+
:body => post_body,
|
|
176
|
+
:auth_names => auth_names,
|
|
177
|
+
:return_type => 'CellsCloudResponse')
|
|
178
|
+
if api_client.config.debugging
|
|
179
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.convert_text_in_remote_spreadsheet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
180
|
+
end
|
|
181
|
+
return data, status_code, headers
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
end
|
|
@@ -159,6 +159,7 @@ module AsposeCellsCloud
|
|
|
159
159
|
# form parameters
|
|
160
160
|
form_params = {}
|
|
161
161
|
post_body = nil
|
|
162
|
+
|
|
162
163
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
163
164
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
164
165
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -36,6 +36,8 @@ module AsposeCellsCloud
|
|
|
36
36
|
attr_accessor :out_path
|
|
37
37
|
attr_accessor :out_storage_name
|
|
38
38
|
attr_accessor :fonts_location
|
|
39
|
+
attr_accessor :auto_rows_fit
|
|
40
|
+
attr_accessor :auto_columns_fit
|
|
39
41
|
attr_accessor :region
|
|
40
42
|
attr_accessor :password
|
|
41
43
|
|
|
@@ -65,6 +67,14 @@ module AsposeCellsCloud
|
|
|
65
67
|
self.fonts_location = attributes[:'fontsLocation']
|
|
66
68
|
end
|
|
67
69
|
|
|
70
|
+
if attributes.has_key?(:'AutoRowsFit')
|
|
71
|
+
self.auto_rows_fit = attributes[:'AutoRowsFit']
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
if attributes.has_key?(:'AutoColumnsFit')
|
|
75
|
+
self.auto_columns_fit = attributes[:'AutoColumnsFit']
|
|
76
|
+
end
|
|
77
|
+
|
|
68
78
|
if attributes.has_key?(:'region')
|
|
69
79
|
self.region = attributes[:'region']
|
|
70
80
|
end
|
|
@@ -82,6 +92,8 @@ module AsposeCellsCloud
|
|
|
82
92
|
:'out_path' => :'outPath',
|
|
83
93
|
:'out_storage_name' => :'outStorageName',
|
|
84
94
|
:'fonts_location' => :'fontsLocation',
|
|
95
|
+
:'auto_rows_fit' => :'AutoRowsFit',
|
|
96
|
+
:'auto_columns_fit' => :'AutoColumnsFit',
|
|
85
97
|
:'region' => :'region',
|
|
86
98
|
:'password' => :'password'
|
|
87
99
|
}
|
|
@@ -95,6 +107,8 @@ module AsposeCellsCloud
|
|
|
95
107
|
:'out_path' => :'String',
|
|
96
108
|
:'out_storage_name' => :'String',
|
|
97
109
|
:'fonts_location' => :'String',
|
|
110
|
+
:'auto_rows_fit' => :'String',
|
|
111
|
+
:'auto_columns_fit' => :'String',
|
|
98
112
|
:'region' => :'String',
|
|
99
113
|
:'password' => :'String'
|
|
100
114
|
}
|
|
@@ -122,6 +136,8 @@ module AsposeCellsCloud
|
|
|
122
136
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
|
123
137
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
|
124
138
|
query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
|
|
139
|
+
query_params[:'AutoRowsFit'] = self.auto_rows_fit if !self.auto_rows_fit.nil?
|
|
140
|
+
query_params[:'AutoColumnsFit'] = self.auto_columns_fit if !self.auto_columns_fit.nil?
|
|
125
141
|
query_params[:'region'] = self.region if !self.region.nil?
|
|
126
142
|
query_params[:'password'] = self.password if !self.password.nil?
|
|
127
143
|
|
|
@@ -135,6 +151,7 @@ module AsposeCellsCloud
|
|
|
135
151
|
# form parameters
|
|
136
152
|
form_params = {}
|
|
137
153
|
post_body = nil
|
|
154
|
+
|
|
138
155
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
139
156
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
140
157
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|