aspose_cells_cloud 26.8 → 26.10.5

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.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +61 -43
  3. data/lib/aspose_cells_cloud/api/cells_api.rb +92 -7
  4. data/lib/aspose_cells_cloud/models/shared_drive_info.rb +222 -0
  5. data/lib/aspose_cells_cloud/requests/aggregate_cells_by_color__deprecated_request.rb +155 -0
  6. data/lib/aspose_cells_cloud/requests/aggregate_cells_by_color_request.rb +1 -1
  7. data/lib/aspose_cells_cloud/requests/search_all_text_items_in_remote_spreadsheet__legacy_put_request.rb +138 -0
  8. data/lib/aspose_cells_cloud/requests/search_all_text_items_in_remote_spreadsheet_request.rb +1 -1
  9. data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_range__legacy_put_request.rb +156 -0
  10. data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_range_request.rb +1 -1
  11. data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_spreadsheet__legacy_put_request.rb +150 -0
  12. data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_spreadsheet_request.rb +1 -1
  13. data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_worksheet__legacy_put_request.rb +145 -0
  14. data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_worksheet_request.rb +1 -1
  15. data/lib/aspose_cells_cloud/requests/search_content_in_remote_range__legacy_put_request.rb +176 -0
  16. data/lib/aspose_cells_cloud/requests/search_content_in_remote_range_request.rb +1 -1
  17. data/lib/aspose_cells_cloud/requests/search_content_in_remote_spreadsheet__legacy_put_request.rb +154 -0
  18. data/lib/aspose_cells_cloud/requests/search_content_in_remote_spreadsheet_request.rb +1 -1
  19. data/lib/aspose_cells_cloud/requests/search_content_in_remote_worksheet__legacy_put_request.rb +165 -0
  20. data/lib/aspose_cells_cloud/requests/search_content_in_remote_worksheet_request.rb +1 -1
  21. data/lib/aspose_cells_cloud/requests/smart_marker_template_request.rb +30 -0
  22. data/lib/aspose_cells_cloud/requests/translate_spreadsheet_request.rb +24 -0
  23. data/lib/aspose_cells_cloud/requests/translate_text_file_request.rb +24 -0
  24. data/lib/aspose_cells_cloud/version.rb +1 -1
  25. data/lib/aspose_cells_cloud.rb +9 -0
  26. metadata +12 -80
  27. data/spec/TestData/AggregateCellsByColor.xlsx +0 -0
  28. data/spec/TestData/Book1.xlsx +0 -0
  29. data/spec/TestData/BookCsvDuplicateData.csv +0 -21
  30. data/spec/TestData/BookDuplicateData.xlsx +0 -0
  31. data/spec/TestData/BookFormula.xlsx +0 -0
  32. data/spec/TestData/BookTableL2W.xlsx +0 -0
  33. data/spec/TestData/BookText.xlsx +0 -0
  34. data/spec/TestData/CompanySales.xlsx +0 -0
  35. data/spec/TestData/EmployeeSalesSummary-BlankWorksheet.xlsx +0 -0
  36. data/spec/TestData/EmployeeSalesSummary.xlsx +0 -0
  37. data/spec/TestData/EmployeeSalesSummary_Locked.xlsx +0 -0
  38. data/spec/TestData/Formula tutorial.xlsx +0 -0
  39. data/spec/TestData/Group.xlsx +0 -0
  40. data/spec/TestData/Home inventory.xlsx +0 -0
  41. data/spec/TestData/LockedEmployeeSalesSummary.xlsx +0 -0
  42. data/spec/TestData/OLEDoc.docx +0 -0
  43. data/spec/TestData/ReportData.xml +0 -1
  44. data/spec/TestData/Simple invoice.xlsx +0 -0
  45. data/spec/TestData/Template.xlsx +0 -0
  46. data/spec/TestData/TestCase.xlsx +0 -0
  47. data/spec/TestData/TestTables.xlsx +0 -0
  48. data/spec/TestData/WaterMark.png +0 -0
  49. data/spec/TestData/assemblytest.xlsx +0 -0
  50. data/spec/TestData/data.xml +0 -1
  51. data/spec/TestData/datasource.xlsx +0 -0
  52. data/spec/TestData/myDocument.xlsx +0 -0
  53. data/spec/TestData/needUnlock.xlsx +0 -0
  54. data/spec/TestData/needlock.xlsx +0 -0
  55. data/spec/TestData/roywang.pfx +0 -0
  56. data/spec/TestData/word.jpg +0 -0
  57. data/spec/calculate/calculate_spec.rb +0 -29
  58. data/spec/cells_cloud30/auto_filter_controller_spec.rb +0 -211
  59. data/spec/cells_cloud30/batch_controller_spec.rb +0 -113
  60. data/spec/cells_cloud30/cells_controller_spec.rb +0 -627
  61. data/spec/cells_cloud30/cells_status_controller_spec.rb +0 -43
  62. data/spec/cells_cloud30/chart_area_controller_spec.rb +0 -58
  63. data/spec/cells_cloud30/charts_controller_spec.rb +0 -227
  64. data/spec/cells_cloud30/conditional_formattings_controller_spec.rb +0 -149
  65. data/spec/cells_cloud30/conversion30_spec.rb +0 -1112
  66. data/spec/cells_cloud30/data_processing_controller_spec.rb +0 -97
  67. data/spec/cells_cloud30/hypelinks_controller_spec.rb +0 -104
  68. data/spec/cells_cloud30/light_cells_spec.rb +0 -1059
  69. data/spec/cells_cloud30/list_objects_controller_spec.rb +0 -225
  70. data/spec/cells_cloud30/ole_objects_controller_spec.rb +0 -108
  71. data/spec/cells_cloud30/page_breaks_controller_spec.rb +0 -163
  72. data/spec/cells_cloud30/page_setup_controller_spec.rb +0 -149
  73. data/spec/cells_cloud30/pictures_controller_spec.rb +0 -106
  74. data/spec/cells_cloud30/pivot_tables_controller_spec.rb +0 -312
  75. data/spec/cells_cloud30/properties_controller_spec.rb +0 -89
  76. data/spec/cells_cloud30/ranges_controller_spec.rb +0 -227
  77. data/spec/cells_cloud30/shapes_controller_spec.rb +0 -139
  78. data/spec/cells_cloud30/sparkline_groups_controller_spec.rb +0 -104
  79. data/spec/cells_cloud30/text_processing_controller_spec.rb +0 -67
  80. data/spec/cells_cloud30/workbook_controller_spec.rb +0 -519
  81. data/spec/cells_cloud30/worksheet_controller_spec.rb +0 -609
  82. data/spec/cells_cloud30/worksheet_validations_controller_spec.rb +0 -104
  83. data/spec/cells_cloud30/xml_controller_spec.rb +0 -48
  84. data/spec/data_processing/conversion_spec.rb +0 -428
  85. data/spec/data_processing/import_data_spec.rb +0 -24
  86. data/spec/data_processing/merger_spec.rb +0 -28
  87. data/spec/data_processing/protection_spec.rb +0 -29
  88. data/spec/data_processing/splitter_spec.rb +0 -47
  89. data/spec/data_processing/transform_spec.rb +0 -43
  90. data/spec/dynabic/file_controller_spec.rb +0 -60
  91. data/spec/dynabic/folder_controller_spec.rb +0 -88
  92. data/spec/dynabic/storage_controller_spec.rb +0 -73
  93. data/spec/management/management_spec.rb +0 -111
  94. data/spec/search2_replace/replacer_spec.rb +0 -46
  95. data/spec/search2_replace/searcher_spec.rb +0 -131
  96. data/spec/spec_helper.rb +0 -134
  97. data/spec/text_processing/add_text_spec.rb +0 -45
  98. data/spec/text_processing/convert_text_spec.rb +0 -37
  99. data/spec/text_processing/extract_text_spec.rb +0 -37
  100. data/spec/text_processing/remove_characters_spec.rb +0 -53
  101. data/spec/text_processing/split_text_spec.rb +0 -21
  102. data/spec/text_processing/trim_spreadsheet_spec.rb +0 -29
  103. data/spec/text_processing/update_word_case_spec.rb +0 -37
@@ -0,0 +1,222 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="SharedDriveInforb.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 'date'
30
+
31
+ module AsposeCellsCloud
32
+
33
+ class SharedDriveInfo
34
+ #
35
+ attr_accessor :id
36
+ #
37
+ attr_accessor :name
38
+
39
+ # Attribute mapping from ruby-style variable name to JSON key.
40
+ def self.attribute_map
41
+ {
42
+ :'id' => :'Id',
43
+ :'name' => :'Name'
44
+ }
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.swagger_types
49
+ {
50
+ :'id' => :'String',
51
+ :'name' => :'String'
52
+ }
53
+ end
54
+
55
+ # Initializes the object
56
+ # @param [Hash] attributes Model attributes in the form of hash
57
+ def initialize(attributes = {})
58
+ return unless attributes.is_a?(Hash)
59
+
60
+ # convert string to symbol for hash key
61
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
62
+
63
+ if attributes.has_key?(:'Id')
64
+ self.id = attributes[:'Id']
65
+ end
66
+ if attributes.has_key?(:'Name')
67
+ self.name = attributes[:'Name']
68
+ end
69
+
70
+ end
71
+
72
+ # Show invalid properties with the reasons. Usually used together with valid?
73
+ # @return Array for valid properies with the reasons
74
+ def list_invalid_properties
75
+ invalid_properties = Array.new
76
+ if @id.nil?
77
+ invalid_properties.push("invalid value for 'id', id cannot be nil.")
78
+ end
79
+ if @name.nil?
80
+ invalid_properties.push("invalid value for 'name', name cannot be nil.")
81
+ end
82
+
83
+ return invalid_properties
84
+ end
85
+
86
+ # Check to see if the all the properties in the model are valid
87
+ # @return true if the model is valid
88
+ def valid?
89
+ return false if @id.nil?
90
+ return false if @name.nil?
91
+ return true
92
+ end
93
+
94
+ # Checks equality by comparing each attribute.
95
+ # @param [Object] Object to be compared
96
+ def ==(o)
97
+ return true if self.equal?(o)
98
+ self.class == o.class &&
99
+ id == o.id &&
100
+ name == o.name
101
+ std_dev == o.std_dev
102
+ end
103
+
104
+ # @see the `==` method
105
+ # @param [Object] Object to be compared
106
+ def eql?(o)
107
+ self == o
108
+ end
109
+
110
+ # Calculates hash code according to all attributes.
111
+ # @return [Fixnum] Hash code
112
+ def hash
113
+ [ id , name ].hash
114
+ end
115
+
116
+ # Builds the object from hash
117
+ # @param [Hash] attributes Model attributes in the form of hash
118
+ # @return [Object] Returns the model itself
119
+ def build_from_hash(attributes)
120
+ return nil unless attributes.is_a?(Hash)
121
+ self.class.swagger_types.each_pair do |key, type|
122
+ if type =~ /\AArray<(.*)>/i
123
+ # check to ensure the input is an array given that the the attribute
124
+ # is documented as an array but the input is not
125
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
126
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
127
+ end
128
+ elsif !attributes[self.class.attribute_map[key]].nil?
129
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
130
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
131
+ end
132
+
133
+ self
134
+ end
135
+
136
+ # Deserializes the data based on type
137
+ # @param string type Data type
138
+ # @param string value Value to be deserialized
139
+ # @return [Object] Deserialized data
140
+ def _deserialize(type, value)
141
+ case type.to_sym
142
+ when :DateTime
143
+ DateTime.parse(value)
144
+ when :Date
145
+ Date.parse(value)
146
+ when :String
147
+ value.to_s
148
+ when :Integer
149
+ value.to_i
150
+ when :Float
151
+ value.to_f
152
+ when :BOOLEAN
153
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
154
+ true
155
+ else
156
+ false
157
+ end
158
+ when :Object
159
+ # generic object (usually a Hash), return directly
160
+ value
161
+ when /\AArray<(?<inner_type>.+)>\z/
162
+ inner_type = Regexp.last_match[:inner_type]
163
+ value.map { |v| _deserialize(inner_type, v) }
164
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
165
+ k_type = Regexp.last_match[:k_type]
166
+ v_type = Regexp.last_match[:v_type]
167
+ {}.tap do |hash|
168
+ value.each do |k, v|
169
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
170
+ end
171
+ end
172
+ else # model
173
+ temp_model = AsposeCellsCloud.const_get(type).new
174
+ temp_model.build_from_hash(value)
175
+ end
176
+ end
177
+
178
+ # Returns the string representation of the object
179
+ # @return [String] String presentation of the object
180
+ def to_s
181
+ to_hash.to_s
182
+ end
183
+
184
+ # to_body is an alias to to_hash (backward compatibility)
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_body
187
+ to_hash
188
+ end
189
+
190
+ # Returns the object in the form of hash
191
+ # @return [Hash] Returns the object in the form of hash
192
+ def to_hash
193
+ hash = {}
194
+ self.class.attribute_map.each_pair do |attr, param|
195
+ value = self.send(attr)
196
+ next if value.nil?
197
+ hash[param] = _to_hash(value)
198
+ end
199
+ hash
200
+ end
201
+
202
+ # Outputs non-array value in the form of hash
203
+ # For object, use to_hash. Otherwise, just return the value
204
+ # @param [Object] value Any valid value
205
+ # @return [Hash] Returns the value in the form of hash
206
+ def _to_hash(value)
207
+ if value.is_a?(Array)
208
+ value.compact.map{ |v| _to_hash(v) }
209
+ elsif value.is_a?(Hash)
210
+ {}.tap do |hash|
211
+ value.each { |k, v| hash[k] = _to_hash(v) }
212
+ end
213
+ elsif value.respond_to? :to_hash
214
+ value.to_hash
215
+ else
216
+ value
217
+ end
218
+ end
219
+
220
+ end
221
+
222
+ end
@@ -0,0 +1,155 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="AggregateCellsByColor_Deprecated_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 AggregateCellsByColor_DeprecatedRequest
33
+
34
+ attr_accessor :spreadsheet
35
+ attr_accessor :worksheet
36
+ attr_accessor :range
37
+ attr_accessor :operation
38
+ attr_accessor :color_position
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?(:'range')
57
+ self.range = attributes[:'range']
58
+ end
59
+
60
+ if attributes.has_key?(:'operation')
61
+ self.operation = attributes[:'operation']
62
+ end
63
+
64
+ if attributes.has_key?(:'colorPosition')
65
+ self.color_position = attributes[:'colorPosition']
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
+ :'range' => :'range',
83
+ :'operation' => :'operation',
84
+ :'color_position' => :'colorPosition',
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
+ :'range' => :'String',
96
+ :'operation' => :'String',
97
+ :'color_position' => :'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.aggregate_cells_by_color__deprecated ..."
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.aggregate_cells_by_color__deprecated "
111
+ end
112
+
113
+ # resource path
114
+ local_var_path = "v4.0/cells/calculate/aggergate/color"
115
+ # query parameters
116
+ query_params = {}
117
+ query_params[:'worksheet'] = self.worksheet if !self.worksheet.nil?
118
+ query_params[:'range'] = self.range if !self.range.nil?
119
+ query_params[:'operation'] = self.operation if !self.operation.nil?
120
+ query_params[:'colorPosition'] = self.color_position if !self.color_position.nil?
121
+ query_params[:'region'] = self.region if !self.region.nil?
122
+ query_params[:'password'] = self.password if !self.password.nil?
123
+
124
+ # header parameters
125
+ header_params = {}
126
+ # HTTP header 'Accept' (if needed)
127
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
128
+ # HTTP header 'Content-Type'
129
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
130
+
131
+ # form parameters
132
+ form_params = {}
133
+ post_body = nil
134
+
135
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
136
+ if !spreadsheet.empty? && File.exist?(spreadsheet )
137
+ form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
138
+ end
139
+
140
+ #auth_names = []
141
+ auth_names = ['JWT']
142
+ data, status_code, headers = api_client.call_api(:PUT, local_var_path,
143
+ :header_params => header_params,
144
+ :query_params => query_params,
145
+ :form_params => form_params,
146
+ :body => post_body,
147
+ :auth_names => auth_names,
148
+ :return_type => 'AggregateResultByColorResponse')
149
+ if api_client.config.debugging
150
+ api_client.config.logger.debug "API called: Specification.Name>Api.aggregate_cells_by_color__deprecated\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
151
+ end
152
+ return data, status_code, headers
153
+ end
154
+ end
155
+ end
@@ -111,7 +111,7 @@ module AsposeCellsCloud
111
111
  end
112
112
 
113
113
  # resource path
114
- local_var_path = "v4.0/cells/calculate/aggergate/color"
114
+ local_var_path = "v4.0/cells/calculate/aggregate/color"
115
115
  # query parameters
116
116
  query_params = {}
117
117
  query_params[:'worksheet'] = self.worksheet if !self.worksheet.nil?
@@ -0,0 +1,138 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="SearchAllTextItemsInRemoteSpreadsheet_LegacyPut_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 SearchAllTextItemsInRemoteSpreadsheet_LegacyPutRequest
33
+
34
+ attr_accessor :name
35
+ attr_accessor :folder
36
+ attr_accessor :storage_name
37
+ attr_accessor :region
38
+ attr_accessor :password
39
+
40
+ def initialize(attributes = {})
41
+ return unless attributes.is_a?(Hash)
42
+
43
+ # convert string to symbol for hash key
44
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
45
+
46
+ if attributes.has_key?(:'name')
47
+ self.name = attributes[:'name']
48
+ end
49
+
50
+ if attributes.has_key?(:'folder')
51
+ self.folder = attributes[:'folder']
52
+ end
53
+
54
+ if attributes.has_key?(:'storageName')
55
+ self.storage_name = attributes[:'storageName']
56
+ end
57
+
58
+ if attributes.has_key?(:'region')
59
+ self.region = attributes[:'region']
60
+ end
61
+
62
+ if attributes.has_key?(:'password')
63
+ self.password = attributes[:'password']
64
+ end
65
+
66
+ end
67
+ # Attribute mapping from ruby-style variable name to JSON key.
68
+ def self.attribute_map
69
+ {
70
+ :'name' => :'name',
71
+ :'folder' => :'folder',
72
+ :'storage_name' => :'storageName',
73
+ :'region' => :'region',
74
+ :'password' => :'password'
75
+ }
76
+ end
77
+
78
+ # Attribute type mapping.
79
+ def self.swagger_types
80
+ {
81
+ :'name' => :'String',
82
+ :'folder' => :'String',
83
+ :'storage_name' => :'String',
84
+ :'region' => :'String',
85
+ :'password' => :'String'
86
+ }
87
+ end
88
+
89
+ def create_http_request(api_client,opts = {})
90
+ if api_client.config.debugging
91
+ api_client.config.logger.debug "Calling API: CellsApi.search_all_text_items_in_remote_spreadsheet__legacy_put ..."
92
+ end
93
+ api_client.request_token_if_needed
94
+ # verify the required parameter 'name' is set
95
+ if api_client.config.client_side_validation && name.nil?
96
+ fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.search_all_text_items_in_remote_spreadsheet__legacy_put "
97
+ end
98
+ # verify the required parameter 'folder' is set
99
+ if api_client.config.client_side_validation && folder.nil?
100
+ fail ArgumentError, "Missing the required parameter 'folder' when calling CellsApi.search_all_text_items_in_remote_spreadsheet__legacy_put "
101
+ end
102
+
103
+ # resource path
104
+ local_var_path = "v4.0/cells/{name}/search/content/all-textitems".sub('{' + 'name' + '}', name.to_s)
105
+ # query parameters
106
+ query_params = {}
107
+ query_params[:'folder'] = self.folder if !self.folder.nil?
108
+ query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
109
+ query_params[:'region'] = self.region if !self.region.nil?
110
+ query_params[:'password'] = self.password if !self.password.nil?
111
+
112
+ # header parameters
113
+ header_params = {}
114
+ # HTTP header 'Accept' (if needed)
115
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
116
+ # HTTP header 'Content-Type'
117
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
118
+
119
+ # form parameters
120
+ form_params = {}
121
+ post_body = nil
122
+
123
+ #auth_names = []
124
+ auth_names = ['JWT']
125
+ data, status_code, headers = api_client.call_api(:PUT, local_var_path,
126
+ :header_params => header_params,
127
+ :query_params => query_params,
128
+ :form_params => form_params,
129
+ :body => post_body,
130
+ :auth_names => auth_names,
131
+ :return_type => 'SearchResponse')
132
+ if api_client.config.debugging
133
+ api_client.config.logger.debug "API called: Specification.Name>Api.search_all_text_items_in_remote_spreadsheet__legacy_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
134
+ end
135
+ return data, status_code, headers
136
+ end
137
+ end
138
+ end
@@ -122,7 +122,7 @@ module AsposeCellsCloud
122
122
 
123
123
  #auth_names = []
124
124
  auth_names = ['JWT']
125
- data, status_code, headers = api_client.call_api(:PUT, local_var_path,
125
+ data, status_code, headers = api_client.call_api(:GET, local_var_path,
126
126
  :header_params => header_params,
127
127
  :query_params => query_params,
128
128
  :form_params => form_params,
@@ -0,0 +1,156 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="SearchBrokenLinksInRemoteRange_LegacyPut_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 SearchBrokenLinksInRemoteRange_LegacyPutRequest
33
+
34
+ attr_accessor :name
35
+ attr_accessor :worksheet
36
+ attr_accessor :cell_area
37
+ attr_accessor :folder
38
+ attr_accessor :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?(:'name')
49
+ self.name = attributes[:'name']
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?(:'folder')
61
+ self.folder = attributes[:'folder']
62
+ end
63
+
64
+ if attributes.has_key?(:'storageName')
65
+ self.storage_name = attributes[:'storageName']
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
+ :'name' => :'name',
81
+ :'worksheet' => :'worksheet',
82
+ :'cell_area' => :'cellArea',
83
+ :'folder' => :'folder',
84
+ :'storage_name' => :'storageName',
85
+ :'region' => :'region',
86
+ :'password' => :'password'
87
+ }
88
+ end
89
+
90
+ # Attribute type mapping.
91
+ def self.swagger_types
92
+ {
93
+ :'name' => :'String',
94
+ :'worksheet' => :'String',
95
+ :'cell_area' => :'String',
96
+ :'folder' => :'String',
97
+ :'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.search_broken_links_in_remote_range__legacy_put ..."
106
+ end
107
+ api_client.request_token_if_needed
108
+ # verify the required parameter 'name' is set
109
+ if api_client.config.client_side_validation && name.nil?
110
+ fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.search_broken_links_in_remote_range__legacy_put "
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.search_broken_links_in_remote_range__legacy_put "
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.search_broken_links_in_remote_range__legacy_put "
119
+ end
120
+
121
+ # resource path
122
+ local_var_path = "v4.0/cells/{name}/worksheets/{worksheet}/ranges/{cellArea}/search/broken-links".sub('{' + 'name' + '}', name.to_s).sub('{' + 'worksheet' + '}', worksheet.to_s).sub('{' + 'cellArea' + '}', cell_area.to_s)
123
+ # query parameters
124
+ query_params = {}
125
+ query_params[:'folder'] = self.folder if !self.folder.nil?
126
+ query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
127
+ query_params[:'region'] = self.region if !self.region.nil?
128
+ query_params[:'password'] = self.password if !self.password.nil?
129
+
130
+ # header parameters
131
+ header_params = {}
132
+ # HTTP header 'Accept' (if needed)
133
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
134
+ # HTTP header 'Content-Type'
135
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
136
+
137
+ # form parameters
138
+ form_params = {}
139
+ post_body = nil
140
+
141
+ #auth_names = []
142
+ auth_names = ['JWT']
143
+ data, status_code, headers = api_client.call_api(:PUT, local_var_path,
144
+ :header_params => header_params,
145
+ :query_params => query_params,
146
+ :form_params => form_params,
147
+ :body => post_body,
148
+ :auth_names => auth_names,
149
+ :return_type => 'BrokenLinksResponse')
150
+ if api_client.config.debugging
151
+ api_client.config.logger.debug "API called: Specification.Name>Api.search_broken_links_in_remote_range__legacy_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
152
+ end
153
+ return data, status_code, headers
154
+ end
155
+ end
156
+ end