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
|
@@ -115,6 +115,7 @@ module AsposeCellsCloud
|
|
|
115
115
|
# form parameters
|
|
116
116
|
form_params = {}
|
|
117
117
|
post_body = nil
|
|
118
|
+
|
|
118
119
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
119
120
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
120
121
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -139,6 +139,7 @@ module AsposeCellsCloud
|
|
|
139
139
|
# form parameters
|
|
140
140
|
form_params = {}
|
|
141
141
|
post_body = nil
|
|
142
|
+
|
|
142
143
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
143
144
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
144
145
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
<copyright company="Aspose" file="ReportAIAnalysis_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 ReportAIAnalysisRequest
|
|
33
|
+
|
|
34
|
+
attr_accessor :spreadsheet
|
|
35
|
+
attr_accessor :region
|
|
36
|
+
attr_accessor :password
|
|
37
|
+
|
|
38
|
+
def initialize(attributes = {})
|
|
39
|
+
return unless attributes.is_a?(Hash)
|
|
40
|
+
|
|
41
|
+
# convert string to symbol for hash key
|
|
42
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
43
|
+
|
|
44
|
+
if attributes.has_key?(:'Spreadsheet')
|
|
45
|
+
self.spreadsheet = attributes[:'Spreadsheet']
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
if attributes.has_key?(:'region')
|
|
49
|
+
self.region = attributes[:'region']
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
if attributes.has_key?(:'password')
|
|
53
|
+
self.password = attributes[:'password']
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
end
|
|
57
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
58
|
+
def self.attribute_map
|
|
59
|
+
{
|
|
60
|
+
:'spreadsheet' => :'Spreadsheet',
|
|
61
|
+
:'region' => :'region',
|
|
62
|
+
:'password' => :'password'
|
|
63
|
+
}
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Attribute type mapping.
|
|
67
|
+
def self.swagger_types
|
|
68
|
+
{
|
|
69
|
+
:'spreadsheet' => :'String',
|
|
70
|
+
:'region' => :'String',
|
|
71
|
+
:'password' => :'String'
|
|
72
|
+
}
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
def create_http_request(api_client,opts = {})
|
|
76
|
+
if api_client.config.debugging
|
|
77
|
+
api_client.config.logger.debug "Calling API: CellsApi.report_ai_analysis ..."
|
|
78
|
+
end
|
|
79
|
+
api_client.request_token_if_needed
|
|
80
|
+
# verify the required parameter 'spreadsheet' is set
|
|
81
|
+
if api_client.config.client_side_validation && spreadsheet.nil?
|
|
82
|
+
fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.report_ai_analysis "
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# resource path
|
|
86
|
+
local_var_path = "v4.0/cells/ai/report/analysis"
|
|
87
|
+
# query parameters
|
|
88
|
+
query_params = {}
|
|
89
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
|
90
|
+
query_params[:'password'] = self.password if !self.password.nil?
|
|
91
|
+
|
|
92
|
+
# header parameters
|
|
93
|
+
header_params = {}
|
|
94
|
+
# HTTP header 'Accept' (if needed)
|
|
95
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
|
96
|
+
# HTTP header 'Content-Type'
|
|
97
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
|
98
|
+
|
|
99
|
+
# form parameters
|
|
100
|
+
form_params = {}
|
|
101
|
+
post_body = nil
|
|
102
|
+
|
|
103
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
104
|
+
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
105
|
+
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
#auth_names = []
|
|
109
|
+
auth_names = ['JWT']
|
|
110
|
+
data, status_code, headers = api_client.call_api(:PUT, local_var_path,
|
|
111
|
+
:header_params => header_params,
|
|
112
|
+
:query_params => query_params,
|
|
113
|
+
:form_params => form_params,
|
|
114
|
+
:body => post_body,
|
|
115
|
+
:auth_names => auth_names)
|
|
116
|
+
if api_client.config.debugging
|
|
117
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.report_ai_analysis\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
118
|
+
end
|
|
119
|
+
return data, status_code, headers
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
end
|
|
@@ -39,6 +39,8 @@ module AsposeCellsCloud
|
|
|
39
39
|
attr_accessor :out_path
|
|
40
40
|
attr_accessor :out_storage_name
|
|
41
41
|
attr_accessor :fonts_location
|
|
42
|
+
attr_accessor :auto_rows_fit
|
|
43
|
+
attr_accessor :auto_columns_fit
|
|
42
44
|
attr_accessor :region
|
|
43
45
|
attr_accessor :password
|
|
44
46
|
|
|
@@ -80,6 +82,14 @@ module AsposeCellsCloud
|
|
|
80
82
|
self.fonts_location = attributes[:'fontsLocation']
|
|
81
83
|
end
|
|
82
84
|
|
|
85
|
+
if attributes.has_key?(:'AutoRowsFit')
|
|
86
|
+
self.auto_rows_fit = attributes[:'AutoRowsFit']
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
if attributes.has_key?(:'AutoColumnsFit')
|
|
90
|
+
self.auto_columns_fit = attributes[:'AutoColumnsFit']
|
|
91
|
+
end
|
|
92
|
+
|
|
83
93
|
if attributes.has_key?(:'region')
|
|
84
94
|
self.region = attributes[:'region']
|
|
85
95
|
end
|
|
@@ -100,6 +110,8 @@ module AsposeCellsCloud
|
|
|
100
110
|
:'out_path' => :'outPath',
|
|
101
111
|
:'out_storage_name' => :'outStorageName',
|
|
102
112
|
:'fonts_location' => :'fontsLocation',
|
|
113
|
+
:'auto_rows_fit' => :'AutoRowsFit',
|
|
114
|
+
:'auto_columns_fit' => :'AutoColumnsFit',
|
|
103
115
|
:'region' => :'region',
|
|
104
116
|
:'password' => :'password'
|
|
105
117
|
}
|
|
@@ -116,6 +128,8 @@ module AsposeCellsCloud
|
|
|
116
128
|
:'out_path' => :'String',
|
|
117
129
|
:'out_storage_name' => :'String',
|
|
118
130
|
:'fonts_location' => :'String',
|
|
131
|
+
:'auto_rows_fit' => :'String',
|
|
132
|
+
:'auto_columns_fit' => :'String',
|
|
119
133
|
:'region' => :'String',
|
|
120
134
|
:'password' => :'String'
|
|
121
135
|
}
|
|
@@ -145,6 +159,8 @@ module AsposeCellsCloud
|
|
|
145
159
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
|
146
160
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
|
147
161
|
query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
|
|
162
|
+
query_params[:'AutoRowsFit'] = self.auto_rows_fit if !self.auto_rows_fit.nil?
|
|
163
|
+
query_params[:'AutoColumnsFit'] = self.auto_columns_fit if !self.auto_columns_fit.nil?
|
|
148
164
|
query_params[:'region'] = self.region if !self.region.nil?
|
|
149
165
|
query_params[:'password'] = self.password if !self.password.nil?
|
|
150
166
|
|
|
@@ -99,6 +99,7 @@ module AsposeCellsCloud
|
|
|
99
99
|
# form parameters
|
|
100
100
|
form_params = {}
|
|
101
101
|
post_body = nil
|
|
102
|
+
|
|
102
103
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
103
104
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
104
105
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -115,6 +115,7 @@ module AsposeCellsCloud
|
|
|
115
115
|
# form parameters
|
|
116
116
|
form_params = {}
|
|
117
117
|
post_body = nil
|
|
118
|
+
|
|
118
119
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
119
120
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
120
121
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -135,6 +135,7 @@ module AsposeCellsCloud
|
|
|
135
135
|
# form parameters
|
|
136
136
|
form_params = {}
|
|
137
137
|
post_body = nil
|
|
138
|
+
|
|
138
139
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
139
140
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
140
141
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -147,6 +147,7 @@ module AsposeCellsCloud
|
|
|
147
147
|
# form parameters
|
|
148
148
|
form_params = {}
|
|
149
149
|
post_body = nil
|
|
150
|
+
|
|
150
151
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
151
152
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
152
153
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -207,6 +207,7 @@ module AsposeCellsCloud
|
|
|
207
207
|
# form parameters
|
|
208
208
|
form_params = {}
|
|
209
209
|
post_body = nil
|
|
210
|
+
|
|
210
211
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
211
212
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
212
213
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -175,6 +175,7 @@ module AsposeCellsCloud
|
|
|
175
175
|
# form parameters
|
|
176
176
|
form_params = {}
|
|
177
177
|
post_body = nil
|
|
178
|
+
|
|
178
179
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
179
180
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
180
181
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -119,6 +119,7 @@ module AsposeCellsCloud
|
|
|
119
119
|
# form parameters
|
|
120
120
|
form_params = {}
|
|
121
121
|
post_body = nil
|
|
122
|
+
|
|
122
123
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
123
124
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
124
125
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
<copyright company="Aspose" file="SummarizeSpreadsheet_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 SummarizeSpreadsheetRequest
|
|
33
|
+
|
|
34
|
+
attr_accessor :spreadsheet
|
|
35
|
+
attr_accessor :region
|
|
36
|
+
attr_accessor :password
|
|
37
|
+
|
|
38
|
+
def initialize(attributes = {})
|
|
39
|
+
return unless attributes.is_a?(Hash)
|
|
40
|
+
|
|
41
|
+
# convert string to symbol for hash key
|
|
42
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
43
|
+
|
|
44
|
+
if attributes.has_key?(:'Spreadsheet')
|
|
45
|
+
self.spreadsheet = attributes[:'Spreadsheet']
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
if attributes.has_key?(:'region')
|
|
49
|
+
self.region = attributes[:'region']
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
if attributes.has_key?(:'password')
|
|
53
|
+
self.password = attributes[:'password']
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
end
|
|
57
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
58
|
+
def self.attribute_map
|
|
59
|
+
{
|
|
60
|
+
:'spreadsheet' => :'Spreadsheet',
|
|
61
|
+
:'region' => :'region',
|
|
62
|
+
:'password' => :'password'
|
|
63
|
+
}
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Attribute type mapping.
|
|
67
|
+
def self.swagger_types
|
|
68
|
+
{
|
|
69
|
+
:'spreadsheet' => :'String',
|
|
70
|
+
:'region' => :'String',
|
|
71
|
+
:'password' => :'String'
|
|
72
|
+
}
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
def create_http_request(api_client,opts = {})
|
|
76
|
+
if api_client.config.debugging
|
|
77
|
+
api_client.config.logger.debug "Calling API: CellsApi.summarize_spreadsheet ..."
|
|
78
|
+
end
|
|
79
|
+
api_client.request_token_if_needed
|
|
80
|
+
# verify the required parameter 'spreadsheet' is set
|
|
81
|
+
if api_client.config.client_side_validation && spreadsheet.nil?
|
|
82
|
+
fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.summarize_spreadsheet "
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# resource path
|
|
86
|
+
local_var_path = "v4.0/cells/ai/summarize/spreadsheet"
|
|
87
|
+
# query parameters
|
|
88
|
+
query_params = {}
|
|
89
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
|
90
|
+
query_params[:'password'] = self.password if !self.password.nil?
|
|
91
|
+
|
|
92
|
+
# header parameters
|
|
93
|
+
header_params = {}
|
|
94
|
+
# HTTP header 'Accept' (if needed)
|
|
95
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
|
96
|
+
# HTTP header 'Content-Type'
|
|
97
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
|
98
|
+
|
|
99
|
+
# form parameters
|
|
100
|
+
form_params = {}
|
|
101
|
+
post_body = nil
|
|
102
|
+
|
|
103
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
104
|
+
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
105
|
+
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
#auth_names = []
|
|
109
|
+
auth_names = ['JWT']
|
|
110
|
+
data, status_code, headers = api_client.call_api(:PUT, local_var_path,
|
|
111
|
+
:header_params => header_params,
|
|
112
|
+
:query_params => query_params,
|
|
113
|
+
:form_params => form_params,
|
|
114
|
+
:body => post_body,
|
|
115
|
+
:auth_names => auth_names,
|
|
116
|
+
:return_type => 'File')
|
|
117
|
+
if api_client.config.debugging
|
|
118
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.summarize_spreadsheet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
119
|
+
end
|
|
120
|
+
return data, status_code, headers
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|
|
@@ -163,6 +163,7 @@ module AsposeCellsCloud
|
|
|
163
163
|
# form parameters
|
|
164
164
|
form_params = {}
|
|
165
165
|
post_body = nil
|
|
166
|
+
|
|
166
167
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
167
168
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
168
169
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -111,6 +111,7 @@ module AsposeCellsCloud
|
|
|
111
111
|
# form parameters
|
|
112
112
|
form_params = {}
|
|
113
113
|
post_body = nil
|
|
114
|
+
|
|
114
115
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
115
116
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
116
117
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -111,6 +111,7 @@ module AsposeCellsCloud
|
|
|
111
111
|
# form parameters
|
|
112
112
|
form_params = {}
|
|
113
113
|
post_body = nil
|
|
114
|
+
|
|
114
115
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
115
116
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
116
117
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
<copyright company="Aspose" file="TransposeData_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 TransposeDataRequest
|
|
33
|
+
|
|
34
|
+
attr_accessor :spreadsheet
|
|
35
|
+
attr_accessor :worksheet
|
|
36
|
+
attr_accessor :cell_area
|
|
37
|
+
attr_accessor :out_path
|
|
38
|
+
attr_accessor :out_storage_name
|
|
39
|
+
attr_accessor :region
|
|
40
|
+
attr_accessor :password
|
|
41
|
+
|
|
42
|
+
def initialize(attributes = {})
|
|
43
|
+
return unless attributes.is_a?(Hash)
|
|
44
|
+
|
|
45
|
+
# convert string to symbol for hash key
|
|
46
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
47
|
+
|
|
48
|
+
if attributes.has_key?(:'Spreadsheet')
|
|
49
|
+
self.spreadsheet = attributes[:'Spreadsheet']
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
if attributes.has_key?(:'worksheet')
|
|
53
|
+
self.worksheet = attributes[:'worksheet']
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
if attributes.has_key?(:'cellArea')
|
|
57
|
+
self.cell_area = attributes[:'cellArea']
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
if attributes.has_key?(:'outPath')
|
|
61
|
+
self.out_path = attributes[:'outPath']
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
if attributes.has_key?(:'outStorageName')
|
|
65
|
+
self.out_storage_name = attributes[:'outStorageName']
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
if attributes.has_key?(:'region')
|
|
69
|
+
self.region = attributes[:'region']
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
if attributes.has_key?(:'password')
|
|
73
|
+
self.password = attributes[:'password']
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
end
|
|
77
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
78
|
+
def self.attribute_map
|
|
79
|
+
{
|
|
80
|
+
:'spreadsheet' => :'Spreadsheet',
|
|
81
|
+
:'worksheet' => :'worksheet',
|
|
82
|
+
:'cell_area' => :'cellArea',
|
|
83
|
+
:'out_path' => :'outPath',
|
|
84
|
+
:'out_storage_name' => :'outStorageName',
|
|
85
|
+
:'region' => :'region',
|
|
86
|
+
:'password' => :'password'
|
|
87
|
+
}
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Attribute type mapping.
|
|
91
|
+
def self.swagger_types
|
|
92
|
+
{
|
|
93
|
+
:'spreadsheet' => :'String',
|
|
94
|
+
:'worksheet' => :'String',
|
|
95
|
+
:'cell_area' => :'String',
|
|
96
|
+
:'out_path' => :'String',
|
|
97
|
+
:'out_storage_name' => :'String',
|
|
98
|
+
:'region' => :'String',
|
|
99
|
+
:'password' => :'String'
|
|
100
|
+
}
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
def create_http_request(api_client,opts = {})
|
|
104
|
+
if api_client.config.debugging
|
|
105
|
+
api_client.config.logger.debug "Calling API: CellsApi.transpose_data ..."
|
|
106
|
+
end
|
|
107
|
+
api_client.request_token_if_needed
|
|
108
|
+
# verify the required parameter 'spreadsheet' is set
|
|
109
|
+
if api_client.config.client_side_validation && spreadsheet.nil?
|
|
110
|
+
fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.transpose_data "
|
|
111
|
+
end
|
|
112
|
+
# verify the required parameter 'worksheet' is set
|
|
113
|
+
if api_client.config.client_side_validation && worksheet.nil?
|
|
114
|
+
fail ArgumentError, "Missing the required parameter 'worksheet' when calling CellsApi.transpose_data "
|
|
115
|
+
end
|
|
116
|
+
# verify the required parameter 'cell_area' is set
|
|
117
|
+
if api_client.config.client_side_validation && cell_area.nil?
|
|
118
|
+
fail ArgumentError, "Missing the required parameter 'cell_area' when calling CellsApi.transpose_data "
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# resource path
|
|
122
|
+
local_var_path = "v4.0/cells/transpose"
|
|
123
|
+
# query parameters
|
|
124
|
+
query_params = {}
|
|
125
|
+
query_params[:'worksheet'] = self.worksheet if !self.worksheet.nil?
|
|
126
|
+
query_params[:'cellArea'] = self.cell_area if !self.cell_area.nil?
|
|
127
|
+
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
|
128
|
+
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
|
129
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
|
130
|
+
query_params[:'password'] = self.password if !self.password.nil?
|
|
131
|
+
|
|
132
|
+
# header parameters
|
|
133
|
+
header_params = {}
|
|
134
|
+
# HTTP header 'Accept' (if needed)
|
|
135
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
|
136
|
+
# HTTP header 'Content-Type'
|
|
137
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
|
138
|
+
|
|
139
|
+
# form parameters
|
|
140
|
+
form_params = {}
|
|
141
|
+
post_body = nil
|
|
142
|
+
|
|
143
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
144
|
+
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
145
|
+
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
#auth_names = []
|
|
149
|
+
auth_names = ['JWT']
|
|
150
|
+
data, status_code, headers = api_client.call_api(:PUT, local_var_path,
|
|
151
|
+
:header_params => header_params,
|
|
152
|
+
:query_params => query_params,
|
|
153
|
+
:form_params => form_params,
|
|
154
|
+
:body => post_body,
|
|
155
|
+
:auth_names => auth_names,
|
|
156
|
+
:return_type => 'File')
|
|
157
|
+
if api_client.config.debugging
|
|
158
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.transpose_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
159
|
+
end
|
|
160
|
+
return data, status_code, headers
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
end
|