aspose_cells_cloud 26.6.4 → 26.7
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 +7 -7
- data/lib/aspose_cells_cloud/api/cells_api.rb +15 -0
- data/lib/aspose_cells_cloud/models/formula_calculate_result_response.rb +258 -0
- data/lib/aspose_cells_cloud/requests/calculation_formula_request.rb +147 -0
- data/lib/aspose_cells_cloud/requests/convert_range_to_csv_request.rb +2 -2
- data/lib/aspose_cells_cloud/requests/convert_range_to_html_request.rb +2 -2
- data/lib/aspose_cells_cloud/requests/convert_range_to_image_request.rb +2 -2
- data/lib/aspose_cells_cloud/requests/convert_range_to_json_request.rb +2 -2
- data/lib/aspose_cells_cloud/requests/convert_range_to_pdf_request.rb +2 -2
- data/lib/aspose_cells_cloud/requests/convert_spreadsheet_request.rb +2 -2
- data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_csv_request.rb +2 -2
- data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_json_request.rb +2 -2
- data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_pdf_request.rb +2 -2
- data/lib/aspose_cells_cloud/requests/convert_table_to_csv_request.rb +2 -2
- data/lib/aspose_cells_cloud/requests/convert_table_to_html_request.rb +2 -2
- data/lib/aspose_cells_cloud/requests/convert_table_to_image_request.rb +2 -2
- data/lib/aspose_cells_cloud/requests/convert_table_to_json_request.rb +2 -2
- data/lib/aspose_cells_cloud/requests/convert_table_to_pdf_request.rb +2 -2
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_csv_request.rb +2 -2
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_html_request.rb +2 -2
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_image_request.rb +2 -2
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_json_request.rb +2 -2
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_pdf_request.rb +2 -2
- data/lib/aspose_cells_cloud/requests/export_range_as_format_request.rb +2 -2
- data/lib/aspose_cells_cloud/requests/export_spreadsheet_as_format_request.rb +2 -2
- data/lib/aspose_cells_cloud/requests/export_table_as_format_request.rb +2 -2
- data/lib/aspose_cells_cloud/requests/export_worksheet_as_format_request.rb +2 -2
- data/lib/aspose_cells_cloud/requests/save_spreadsheet_as_request.rb +2 -2
- data/lib/aspose_cells_cloud/requests/smart_marker_template_request.rb +107 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +3 -0
- metadata +5 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 83a29ec36ce4d6f562910298cfdd1d2690c545ff348b1215b2ef78bc9dbcdd7f
|
|
4
|
+
data.tar.gz: e0978fddf5513e1ee9c91065bc261dbba7c3d8d2f647a900d4ccca0a880f9bcd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 29d5bde8d326ed097bd6ae4689c30363e6c1dc120b544261e4a940e423d041aefc1c7d1389bdb4a1785e36f1a9ea6a40767a28741fb98247e20091e97538ac38
|
|
7
|
+
data.tar.gz: 37ddebb79fd48aae9b367f9b2e8f4ab393f5aef783484d2f3688873536a4af8d170148e4cfe89f3a9d12fd3e5035e853bafd0b3830fd3517ab4af56b93325d1e
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
 [](https://products.aspose.cloud/cells/ruby/) [](https://docs.aspose.cloud/cells/) [](https://reference.aspose.cloud/cells/) [](https://github.com/aspose-cells-cloud/aspose-cells-cloud-perl/tree/master/Examples) [](https://blog.aspose.cloud/categories/aspose.cells-cloud-product-family/) [](https://forum.aspose.cloud/c/cells/7) [](https://rubygems.org/gems/aspose_cells_cloud) [](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/archive/refs/heads/master.zip) [](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE) 
|
|
2
2
|
|
|
3
3
|
[Aspose.Cells Cloud SDK for Ruby](https://products.aspose.cloud/cells/ruby) is a cloud-native REST API that enables Ruby developers to **create**, **read**, **edit**, **convert**, and **repair** spreadsheet files—including **Excel** (**XLS**, **XLSX**, **XLSB**, **XLSM**), **OpenDocument Spreadsheet (ODS**), **CSV**, **TSV**, **JSON**, **HTML**, **PDF**, and **more—without requiring Microsoft Excel or Office to be installed**.
|
|
4
4
|
|
|
@@ -22,7 +22,7 @@ To begin with Aspose.Cells Cloud, here's what you need to do:
|
|
|
22
22
|
- execute the following command to get the latest Gem package.
|
|
23
23
|
|
|
24
24
|
```console
|
|
25
|
-
gem 'aspose_cells_cloud', '~> 26.
|
|
25
|
+
gem 'aspose_cells_cloud', '~> 26.7.0'
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
or install directly
|
|
@@ -155,16 +155,16 @@ graph TB
|
|
|
155
155
|
- Import/Export: Facilitates importing data from various sources into spreadsheets and exporting spreadsheet data to other formats.
|
|
156
156
|
- Security Management: Offers a range of security features like data encryption, access control, and permission management to safeguard the security and integrity of spreadsheet data.
|
|
157
157
|
|
|
158
|
-
## Feature & Enhancements in Version v26.
|
|
158
|
+
## Feature & Enhancements in Version v26.7
|
|
159
159
|
|
|
160
160
|
Full list of issues covering all changes in this release:
|
|
161
161
|
|
|
162
162
|
| **Summary** | **Category** |
|
|
163
163
|
| :------------------------------------------------------------------------------------------------------------ | :----------- |
|
|
164
|
-
|
|
|
165
|
-
|
|
|
166
|
-
|
|
|
167
|
-
| Fix
|
|
164
|
+
| Fix AutoFitsCanAutoFitsAttribute value data type. | Bug |
|
|
165
|
+
| Support for the calculation formula in Aspose.Cells Cloud 4.0 Web APIs. | New Feature |
|
|
166
|
+
| Support for the smart template in Aspose.Cells Cloud 4.0 Web APIs. | New Feature |
|
|
167
|
+
| Fix calc error about MathCalculate Web API. | Bug |
|
|
168
168
|
|
|
169
169
|
## Available SDKs
|
|
170
170
|
|
|
@@ -64,6 +64,7 @@ module AsposeCellsCloud
|
|
|
64
64
|
return data
|
|
65
65
|
end
|
|
66
66
|
|
|
67
|
+
# Intelligently analyzes spreadsheet data, identifies business scenarios, and generates professional data analysis reports.
|
|
67
68
|
|
|
68
69
|
def report_ai_analysis( report_ai_analysis_request, opts = {})
|
|
69
70
|
|
|
@@ -94,6 +95,13 @@ module AsposeCellsCloud
|
|
|
94
95
|
return data
|
|
95
96
|
end
|
|
96
97
|
|
|
98
|
+
|
|
99
|
+
def calculation_formula( calculation_formula_request, opts = {})
|
|
100
|
+
|
|
101
|
+
data, _status_code, _headers = calculation_formula_request.create_http_request(@api_client,opts )
|
|
102
|
+
return data
|
|
103
|
+
end
|
|
104
|
+
|
|
97
105
|
# Get Access Token Result: The Cells Cloud Get Token API acts as a proxy service,
|
|
98
106
|
# forwarding user requests to the Aspose Cloud authentication server and returning the resulting access token to the client.
|
|
99
107
|
|
|
@@ -564,6 +572,13 @@ module AsposeCellsCloud
|
|
|
564
572
|
return data
|
|
565
573
|
end
|
|
566
574
|
|
|
575
|
+
|
|
576
|
+
def smart_marker_template( smart_marker_template_request, opts = {})
|
|
577
|
+
|
|
578
|
+
data, _status_code, _headers = smart_marker_template_request.create_http_request(@api_client,opts )
|
|
579
|
+
return data
|
|
580
|
+
end
|
|
581
|
+
|
|
567
582
|
# Get all text items in the remote spreadsheet.
|
|
568
583
|
|
|
569
584
|
def search_all_text_items_in_remote_spreadsheet( search_all_text_items_in_remote_spreadsheet_request, opts = {})
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
<copyright company="Aspose" file="FormulaCalculateResultResponserb.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 FormulaCalculateResultResponse
|
|
34
|
+
#
|
|
35
|
+
attr_accessor :worksheet
|
|
36
|
+
#
|
|
37
|
+
attr_accessor :formula
|
|
38
|
+
#
|
|
39
|
+
attr_accessor :result
|
|
40
|
+
#
|
|
41
|
+
attr_accessor :code
|
|
42
|
+
#
|
|
43
|
+
attr_accessor :status
|
|
44
|
+
|
|
45
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
46
|
+
def self.attribute_map
|
|
47
|
+
{
|
|
48
|
+
:'worksheet' => :'Worksheet',
|
|
49
|
+
:'formula' => :'Formula',
|
|
50
|
+
:'result' => :'Result',
|
|
51
|
+
:'code' => :'Code',
|
|
52
|
+
:'status' => :'Status'
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Attribute type mapping.
|
|
57
|
+
def self.swagger_types
|
|
58
|
+
{
|
|
59
|
+
:'worksheet' => :'String',
|
|
60
|
+
:'formula' => :'String',
|
|
61
|
+
:'result' => :'Object',
|
|
62
|
+
:'code' => :'Integer',
|
|
63
|
+
:'status' => :'String'
|
|
64
|
+
}
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# Initializes the object
|
|
68
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
69
|
+
def initialize(attributes = {})
|
|
70
|
+
return unless attributes.is_a?(Hash)
|
|
71
|
+
|
|
72
|
+
# convert string to symbol for hash key
|
|
73
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
74
|
+
|
|
75
|
+
if attributes.has_key?(:'Worksheet')
|
|
76
|
+
self.worksheet = attributes[:'Worksheet']
|
|
77
|
+
end
|
|
78
|
+
if attributes.has_key?(:'Formula')
|
|
79
|
+
self.formula = attributes[:'Formula']
|
|
80
|
+
end
|
|
81
|
+
if attributes.has_key?(:'Result')
|
|
82
|
+
self.result = attributes[:'Result']
|
|
83
|
+
end
|
|
84
|
+
if attributes.has_key?(:'Code')
|
|
85
|
+
self.code = attributes[:'Code']
|
|
86
|
+
end
|
|
87
|
+
if attributes.has_key?(:'Status')
|
|
88
|
+
self.status = attributes[:'Status']
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
94
|
+
# @return Array for valid properies with the reasons
|
|
95
|
+
def list_invalid_properties
|
|
96
|
+
invalid_properties = Array.new
|
|
97
|
+
if @worksheet.nil?
|
|
98
|
+
invalid_properties.push("invalid value for 'worksheet', worksheet cannot be nil.")
|
|
99
|
+
end
|
|
100
|
+
if @formula.nil?
|
|
101
|
+
invalid_properties.push("invalid value for 'formula', formula cannot be nil.")
|
|
102
|
+
end
|
|
103
|
+
if @result.nil?
|
|
104
|
+
invalid_properties.push("invalid value for 'result', result cannot be nil.")
|
|
105
|
+
end
|
|
106
|
+
if @code.nil?
|
|
107
|
+
invalid_properties.push("invalid value for 'code', code cannot be nil.")
|
|
108
|
+
end
|
|
109
|
+
if @status.nil?
|
|
110
|
+
invalid_properties.push("invalid value for 'status', status cannot be nil.")
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
return invalid_properties
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Check to see if the all the properties in the model are valid
|
|
117
|
+
# @return true if the model is valid
|
|
118
|
+
def valid?
|
|
119
|
+
return false if @worksheet.nil?
|
|
120
|
+
return false if @formula.nil?
|
|
121
|
+
return false if @result.nil?
|
|
122
|
+
return false if @code.nil?
|
|
123
|
+
return false if @status.nil?
|
|
124
|
+
return true
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Checks equality by comparing each attribute.
|
|
128
|
+
# @param [Object] Object to be compared
|
|
129
|
+
def ==(o)
|
|
130
|
+
return true if self.equal?(o)
|
|
131
|
+
self.class == o.class &&
|
|
132
|
+
worksheet == o.worksheet &&
|
|
133
|
+
formula == o.formula &&
|
|
134
|
+
result == o.result &&
|
|
135
|
+
code == o.code &&
|
|
136
|
+
status == o.status
|
|
137
|
+
std_dev == o.std_dev
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# @see the `==` method
|
|
141
|
+
# @param [Object] Object to be compared
|
|
142
|
+
def eql?(o)
|
|
143
|
+
self == o
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Calculates hash code according to all attributes.
|
|
147
|
+
# @return [Fixnum] Hash code
|
|
148
|
+
def hash
|
|
149
|
+
[ worksheet , formula , result , code , status ].hash
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# Builds the object from hash
|
|
153
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
154
|
+
# @return [Object] Returns the model itself
|
|
155
|
+
def build_from_hash(attributes)
|
|
156
|
+
return nil unless attributes.is_a?(Hash)
|
|
157
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
158
|
+
if type =~ /\AArray<(.*)>/i
|
|
159
|
+
# check to ensure the input is an array given that the the attribute
|
|
160
|
+
# is documented as an array but the input is not
|
|
161
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
162
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
163
|
+
end
|
|
164
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
165
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
166
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
self
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Deserializes the data based on type
|
|
173
|
+
# @param string type Data type
|
|
174
|
+
# @param string value Value to be deserialized
|
|
175
|
+
# @return [Object] Deserialized data
|
|
176
|
+
def _deserialize(type, value)
|
|
177
|
+
case type.to_sym
|
|
178
|
+
when :DateTime
|
|
179
|
+
DateTime.parse(value)
|
|
180
|
+
when :Date
|
|
181
|
+
Date.parse(value)
|
|
182
|
+
when :String
|
|
183
|
+
value.to_s
|
|
184
|
+
when :Integer
|
|
185
|
+
value.to_i
|
|
186
|
+
when :Float
|
|
187
|
+
value.to_f
|
|
188
|
+
when :BOOLEAN
|
|
189
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
190
|
+
true
|
|
191
|
+
else
|
|
192
|
+
false
|
|
193
|
+
end
|
|
194
|
+
when :Object
|
|
195
|
+
# generic object (usually a Hash), return directly
|
|
196
|
+
value
|
|
197
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
198
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
199
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
200
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
201
|
+
k_type = Regexp.last_match[:k_type]
|
|
202
|
+
v_type = Regexp.last_match[:v_type]
|
|
203
|
+
{}.tap do |hash|
|
|
204
|
+
value.each do |k, v|
|
|
205
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
206
|
+
end
|
|
207
|
+
end
|
|
208
|
+
else # model
|
|
209
|
+
temp_model = AsposeCellsCloud.const_get(type).new
|
|
210
|
+
temp_model.build_from_hash(value)
|
|
211
|
+
end
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Returns the string representation of the object
|
|
215
|
+
# @return [String] String presentation of the object
|
|
216
|
+
def to_s
|
|
217
|
+
to_hash.to_s
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
221
|
+
# @return [Hash] Returns the object in the form of hash
|
|
222
|
+
def to_body
|
|
223
|
+
to_hash
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# Returns the object in the form of hash
|
|
227
|
+
# @return [Hash] Returns the object in the form of hash
|
|
228
|
+
def to_hash
|
|
229
|
+
hash = {}
|
|
230
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
231
|
+
value = self.send(attr)
|
|
232
|
+
next if value.nil?
|
|
233
|
+
hash[param] = _to_hash(value)
|
|
234
|
+
end
|
|
235
|
+
hash
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# Outputs non-array value in the form of hash
|
|
239
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
240
|
+
# @param [Object] value Any valid value
|
|
241
|
+
# @return [Hash] Returns the value in the form of hash
|
|
242
|
+
def _to_hash(value)
|
|
243
|
+
if value.is_a?(Array)
|
|
244
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
245
|
+
elsif value.is_a?(Hash)
|
|
246
|
+
{}.tap do |hash|
|
|
247
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
248
|
+
end
|
|
249
|
+
elsif value.respond_to? :to_hash
|
|
250
|
+
value.to_hash
|
|
251
|
+
else
|
|
252
|
+
value
|
|
253
|
+
end
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
end
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
<copyright company="Aspose" file="CalculationFormula_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 CalculationFormulaRequest
|
|
33
|
+
|
|
34
|
+
attr_accessor :spreadsheet
|
|
35
|
+
attr_accessor :worksheet
|
|
36
|
+
attr_accessor :formula
|
|
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?(:'Spreadsheet')
|
|
47
|
+
self.spreadsheet = attributes[:'Spreadsheet']
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
if attributes.has_key?(:'worksheet')
|
|
51
|
+
self.worksheet = attributes[:'worksheet']
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
if attributes.has_key?(:'formula')
|
|
55
|
+
self.formula = attributes[:'formula']
|
|
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
|
+
:'spreadsheet' => :'Spreadsheet',
|
|
71
|
+
:'worksheet' => :'worksheet',
|
|
72
|
+
:'formula' => :'formula',
|
|
73
|
+
:'region' => :'region',
|
|
74
|
+
:'password' => :'password'
|
|
75
|
+
}
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Attribute type mapping.
|
|
79
|
+
def self.swagger_types
|
|
80
|
+
{
|
|
81
|
+
:'spreadsheet' => :'String',
|
|
82
|
+
:'worksheet' => :'String',
|
|
83
|
+
:'formula' => :'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.calculation_formula ..."
|
|
92
|
+
end
|
|
93
|
+
api_client.request_token_if_needed
|
|
94
|
+
# verify the required parameter 'spreadsheet' is set
|
|
95
|
+
if api_client.config.client_side_validation && spreadsheet.nil?
|
|
96
|
+
fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.calculation_formula "
|
|
97
|
+
end
|
|
98
|
+
# verify the required parameter 'worksheet' is set
|
|
99
|
+
if api_client.config.client_side_validation && worksheet.nil?
|
|
100
|
+
fail ArgumentError, "Missing the required parameter 'worksheet' when calling CellsApi.calculation_formula "
|
|
101
|
+
end
|
|
102
|
+
# verify the required parameter 'formula' is set
|
|
103
|
+
if api_client.config.client_side_validation && formula.nil?
|
|
104
|
+
fail ArgumentError, "Missing the required parameter 'formula' when calling CellsApi.calculation_formula "
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# resource path
|
|
108
|
+
local_var_path = "v4.0/cells/calculate/formula"
|
|
109
|
+
# query parameters
|
|
110
|
+
query_params = {}
|
|
111
|
+
query_params[:'worksheet'] = self.worksheet if !self.worksheet.nil?
|
|
112
|
+
query_params[:'formula'] = self.formula if !self.formula.nil?
|
|
113
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
|
114
|
+
query_params[:'password'] = self.password if !self.password.nil?
|
|
115
|
+
|
|
116
|
+
# header parameters
|
|
117
|
+
header_params = {}
|
|
118
|
+
# HTTP header 'Accept' (if needed)
|
|
119
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
|
120
|
+
# HTTP header 'Content-Type'
|
|
121
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
|
122
|
+
|
|
123
|
+
# form parameters
|
|
124
|
+
form_params = {}
|
|
125
|
+
post_body = nil
|
|
126
|
+
|
|
127
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
128
|
+
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
129
|
+
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
#auth_names = []
|
|
133
|
+
auth_names = ['JWT']
|
|
134
|
+
data, status_code, headers = api_client.call_api(:PUT, local_var_path,
|
|
135
|
+
:header_params => header_params,
|
|
136
|
+
:query_params => query_params,
|
|
137
|
+
:form_params => form_params,
|
|
138
|
+
:body => post_body,
|
|
139
|
+
:auth_names => auth_names,
|
|
140
|
+
:return_type => 'File')
|
|
141
|
+
if api_client.config.debugging
|
|
142
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.calculation_formula\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
143
|
+
end
|
|
144
|
+
return data, status_code, headers
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
end
|
|
@@ -114,8 +114,8 @@ module AsposeCellsCloud
|
|
|
114
114
|
:'out_path' => :'String',
|
|
115
115
|
:'out_storage_name' => :'String',
|
|
116
116
|
:'fonts_location' => :'String',
|
|
117
|
-
:'auto_rows_fit' => :'
|
|
118
|
-
:'auto_columns_fit' => :'
|
|
117
|
+
:'auto_rows_fit' => :'BOOLEAN',
|
|
118
|
+
:'auto_columns_fit' => :'BOOLEAN',
|
|
119
119
|
:'region' => :'String',
|
|
120
120
|
:'password' => :'String'
|
|
121
121
|
}
|
|
@@ -114,8 +114,8 @@ module AsposeCellsCloud
|
|
|
114
114
|
:'out_path' => :'String',
|
|
115
115
|
:'out_storage_name' => :'String',
|
|
116
116
|
:'fonts_location' => :'String',
|
|
117
|
-
:'auto_rows_fit' => :'
|
|
118
|
-
:'auto_columns_fit' => :'
|
|
117
|
+
:'auto_rows_fit' => :'BOOLEAN',
|
|
118
|
+
:'auto_columns_fit' => :'BOOLEAN',
|
|
119
119
|
:'region' => :'String',
|
|
120
120
|
:'password' => :'String'
|
|
121
121
|
}
|
|
@@ -128,8 +128,8 @@ module AsposeCellsCloud
|
|
|
128
128
|
:'out_path' => :'String',
|
|
129
129
|
:'out_storage_name' => :'String',
|
|
130
130
|
:'fonts_location' => :'String',
|
|
131
|
-
:'auto_rows_fit' => :'
|
|
132
|
-
:'auto_columns_fit' => :'
|
|
131
|
+
:'auto_rows_fit' => :'BOOLEAN',
|
|
132
|
+
:'auto_columns_fit' => :'BOOLEAN',
|
|
133
133
|
:'region' => :'String',
|
|
134
134
|
:'password' => :'String'
|
|
135
135
|
}
|
|
@@ -114,8 +114,8 @@ module AsposeCellsCloud
|
|
|
114
114
|
:'out_path' => :'String',
|
|
115
115
|
:'out_storage_name' => :'String',
|
|
116
116
|
:'fonts_location' => :'String',
|
|
117
|
-
:'auto_rows_fit' => :'
|
|
118
|
-
:'auto_columns_fit' => :'
|
|
117
|
+
:'auto_rows_fit' => :'BOOLEAN',
|
|
118
|
+
:'auto_columns_fit' => :'BOOLEAN',
|
|
119
119
|
:'region' => :'String',
|
|
120
120
|
:'password' => :'String'
|
|
121
121
|
}
|
|
@@ -114,8 +114,8 @@ module AsposeCellsCloud
|
|
|
114
114
|
:'out_path' => :'String',
|
|
115
115
|
:'out_storage_name' => :'String',
|
|
116
116
|
:'fonts_location' => :'String',
|
|
117
|
-
:'auto_rows_fit' => :'
|
|
118
|
-
:'auto_columns_fit' => :'
|
|
117
|
+
:'auto_rows_fit' => :'BOOLEAN',
|
|
118
|
+
:'auto_columns_fit' => :'BOOLEAN',
|
|
119
119
|
:'region' => :'String',
|
|
120
120
|
:'password' => :'String'
|
|
121
121
|
}
|
|
@@ -107,8 +107,8 @@ module AsposeCellsCloud
|
|
|
107
107
|
:'out_path' => :'String',
|
|
108
108
|
:'out_storage_name' => :'String',
|
|
109
109
|
:'fonts_location' => :'String',
|
|
110
|
-
:'auto_rows_fit' => :'
|
|
111
|
-
:'auto_columns_fit' => :'
|
|
110
|
+
:'auto_rows_fit' => :'BOOLEAN',
|
|
111
|
+
:'auto_columns_fit' => :'BOOLEAN',
|
|
112
112
|
:'region' => :'String',
|
|
113
113
|
:'password' => :'String'
|
|
114
114
|
}
|
|
@@ -100,8 +100,8 @@ module AsposeCellsCloud
|
|
|
100
100
|
:'out_path' => :'String',
|
|
101
101
|
:'out_storage_name' => :'String',
|
|
102
102
|
:'fonts_location' => :'String',
|
|
103
|
-
:'auto_rows_fit' => :'
|
|
104
|
-
:'auto_columns_fit' => :'
|
|
103
|
+
:'auto_rows_fit' => :'BOOLEAN',
|
|
104
|
+
:'auto_columns_fit' => :'BOOLEAN',
|
|
105
105
|
:'region' => :'String',
|
|
106
106
|
:'password' => :'String'
|
|
107
107
|
}
|
|
@@ -100,8 +100,8 @@ module AsposeCellsCloud
|
|
|
100
100
|
:'out_path' => :'String',
|
|
101
101
|
:'out_storage_name' => :'String',
|
|
102
102
|
:'fonts_location' => :'String',
|
|
103
|
-
:'auto_rows_fit' => :'
|
|
104
|
-
:'auto_columns_fit' => :'
|
|
103
|
+
:'auto_rows_fit' => :'BOOLEAN',
|
|
104
|
+
:'auto_columns_fit' => :'BOOLEAN',
|
|
105
105
|
:'region' => :'String',
|
|
106
106
|
:'password' => :'String'
|
|
107
107
|
}
|
|
@@ -100,8 +100,8 @@ module AsposeCellsCloud
|
|
|
100
100
|
:'out_path' => :'String',
|
|
101
101
|
:'out_storage_name' => :'String',
|
|
102
102
|
:'fonts_location' => :'String',
|
|
103
|
-
:'auto_rows_fit' => :'
|
|
104
|
-
:'auto_columns_fit' => :'
|
|
103
|
+
:'auto_rows_fit' => :'BOOLEAN',
|
|
104
|
+
:'auto_columns_fit' => :'BOOLEAN',
|
|
105
105
|
:'region' => :'String',
|
|
106
106
|
:'password' => :'String'
|
|
107
107
|
}
|
|
@@ -114,8 +114,8 @@ module AsposeCellsCloud
|
|
|
114
114
|
:'out_path' => :'String',
|
|
115
115
|
:'out_storage_name' => :'String',
|
|
116
116
|
:'fonts_location' => :'String',
|
|
117
|
-
:'auto_rows_fit' => :'
|
|
118
|
-
:'auto_columns_fit' => :'
|
|
117
|
+
:'auto_rows_fit' => :'BOOLEAN',
|
|
118
|
+
:'auto_columns_fit' => :'BOOLEAN',
|
|
119
119
|
:'region' => :'String',
|
|
120
120
|
:'password' => :'String'
|
|
121
121
|
}
|
|
@@ -114,8 +114,8 @@ module AsposeCellsCloud
|
|
|
114
114
|
:'out_path' => :'String',
|
|
115
115
|
:'out_storage_name' => :'String',
|
|
116
116
|
:'fonts_location' => :'String',
|
|
117
|
-
:'auto_rows_fit' => :'
|
|
118
|
-
:'auto_columns_fit' => :'
|
|
117
|
+
:'auto_rows_fit' => :'BOOLEAN',
|
|
118
|
+
:'auto_columns_fit' => :'BOOLEAN',
|
|
119
119
|
:'region' => :'String',
|
|
120
120
|
:'password' => :'String'
|
|
121
121
|
}
|
|
@@ -121,8 +121,8 @@ module AsposeCellsCloud
|
|
|
121
121
|
:'out_path' => :'String',
|
|
122
122
|
:'out_storage_name' => :'String',
|
|
123
123
|
:'fonts_location' => :'String',
|
|
124
|
-
:'auto_rows_fit' => :'
|
|
125
|
-
:'auto_columns_fit' => :'
|
|
124
|
+
:'auto_rows_fit' => :'BOOLEAN',
|
|
125
|
+
:'auto_columns_fit' => :'BOOLEAN',
|
|
126
126
|
:'region' => :'String',
|
|
127
127
|
:'password' => :'String'
|
|
128
128
|
}
|
|
@@ -114,8 +114,8 @@ module AsposeCellsCloud
|
|
|
114
114
|
:'out_path' => :'String',
|
|
115
115
|
:'out_storage_name' => :'String',
|
|
116
116
|
:'fonts_location' => :'String',
|
|
117
|
-
:'auto_rows_fit' => :'
|
|
118
|
-
:'auto_columns_fit' => :'
|
|
117
|
+
:'auto_rows_fit' => :'BOOLEAN',
|
|
118
|
+
:'auto_columns_fit' => :'BOOLEAN',
|
|
119
119
|
:'region' => :'String',
|
|
120
120
|
:'password' => :'String'
|
|
121
121
|
}
|
|
@@ -114,8 +114,8 @@ module AsposeCellsCloud
|
|
|
114
114
|
:'out_path' => :'String',
|
|
115
115
|
:'out_storage_name' => :'String',
|
|
116
116
|
:'fonts_location' => :'String',
|
|
117
|
-
:'auto_rows_fit' => :'
|
|
118
|
-
:'auto_columns_fit' => :'
|
|
117
|
+
:'auto_rows_fit' => :'BOOLEAN',
|
|
118
|
+
:'auto_columns_fit' => :'BOOLEAN',
|
|
119
119
|
:'region' => :'String',
|
|
120
120
|
:'password' => :'String'
|
|
121
121
|
}
|
|
@@ -107,8 +107,8 @@ module AsposeCellsCloud
|
|
|
107
107
|
:'out_path' => :'String',
|
|
108
108
|
:'out_storage_name' => :'String',
|
|
109
109
|
:'fonts_location' => :'String',
|
|
110
|
-
:'auto_rows_fit' => :'
|
|
111
|
-
:'auto_columns_fit' => :'
|
|
110
|
+
:'auto_rows_fit' => :'BOOLEAN',
|
|
111
|
+
:'auto_columns_fit' => :'BOOLEAN',
|
|
112
112
|
:'region' => :'String',
|
|
113
113
|
:'password' => :'String'
|
|
114
114
|
}
|
|
@@ -107,8 +107,8 @@ module AsposeCellsCloud
|
|
|
107
107
|
:'out_path' => :'String',
|
|
108
108
|
:'out_storage_name' => :'String',
|
|
109
109
|
:'fonts_location' => :'String',
|
|
110
|
-
:'auto_rows_fit' => :'
|
|
111
|
-
:'auto_columns_fit' => :'
|
|
110
|
+
:'auto_rows_fit' => :'BOOLEAN',
|
|
111
|
+
:'auto_columns_fit' => :'BOOLEAN',
|
|
112
112
|
:'region' => :'String',
|
|
113
113
|
:'password' => :'String'
|
|
114
114
|
}
|
|
@@ -114,8 +114,8 @@ module AsposeCellsCloud
|
|
|
114
114
|
:'out_path' => :'String',
|
|
115
115
|
:'out_storage_name' => :'String',
|
|
116
116
|
:'fonts_location' => :'String',
|
|
117
|
-
:'auto_rows_fit' => :'
|
|
118
|
-
:'auto_columns_fit' => :'
|
|
117
|
+
:'auto_rows_fit' => :'BOOLEAN',
|
|
118
|
+
:'auto_columns_fit' => :'BOOLEAN',
|
|
119
119
|
:'region' => :'String',
|
|
120
120
|
:'password' => :'String'
|
|
121
121
|
}
|
|
@@ -107,8 +107,8 @@ module AsposeCellsCloud
|
|
|
107
107
|
:'out_path' => :'String',
|
|
108
108
|
:'out_storage_name' => :'String',
|
|
109
109
|
:'fonts_location' => :'String',
|
|
110
|
-
:'auto_rows_fit' => :'
|
|
111
|
-
:'auto_columns_fit' => :'
|
|
110
|
+
:'auto_rows_fit' => :'BOOLEAN',
|
|
111
|
+
:'auto_columns_fit' => :'BOOLEAN',
|
|
112
112
|
:'region' => :'String',
|
|
113
113
|
:'password' => :'String'
|
|
114
114
|
}
|
|
@@ -107,8 +107,8 @@ module AsposeCellsCloud
|
|
|
107
107
|
:'out_path' => :'String',
|
|
108
108
|
:'out_storage_name' => :'String',
|
|
109
109
|
:'fonts_location' => :'String',
|
|
110
|
-
:'auto_rows_fit' => :'
|
|
111
|
-
:'auto_columns_fit' => :'
|
|
110
|
+
:'auto_rows_fit' => :'BOOLEAN',
|
|
111
|
+
:'auto_columns_fit' => :'BOOLEAN',
|
|
112
112
|
:'region' => :'String',
|
|
113
113
|
:'password' => :'String'
|
|
114
114
|
}
|
|
@@ -135,8 +135,8 @@ module AsposeCellsCloud
|
|
|
135
135
|
:'out_path' => :'String',
|
|
136
136
|
:'out_storage_name' => :'String',
|
|
137
137
|
:'fonts_location' => :'String',
|
|
138
|
-
:'auto_rows_fit' => :'
|
|
139
|
-
:'auto_columns_fit' => :'
|
|
138
|
+
:'auto_rows_fit' => :'BOOLEAN',
|
|
139
|
+
:'auto_columns_fit' => :'BOOLEAN',
|
|
140
140
|
:'region' => :'String',
|
|
141
141
|
:'password' => :'String'
|
|
142
142
|
}
|
|
@@ -121,8 +121,8 @@ module AsposeCellsCloud
|
|
|
121
121
|
:'out_path' => :'String',
|
|
122
122
|
:'out_storage_name' => :'String',
|
|
123
123
|
:'fonts_location' => :'String',
|
|
124
|
-
:'auto_rows_fit' => :'
|
|
125
|
-
:'auto_columns_fit' => :'
|
|
124
|
+
:'auto_rows_fit' => :'BOOLEAN',
|
|
125
|
+
:'auto_columns_fit' => :'BOOLEAN',
|
|
126
126
|
:'region' => :'String',
|
|
127
127
|
:'password' => :'String'
|
|
128
128
|
}
|
|
@@ -135,8 +135,8 @@ module AsposeCellsCloud
|
|
|
135
135
|
:'out_path' => :'String',
|
|
136
136
|
:'out_storage_name' => :'String',
|
|
137
137
|
:'fonts_location' => :'String',
|
|
138
|
-
:'auto_rows_fit' => :'
|
|
139
|
-
:'auto_columns_fit' => :'
|
|
138
|
+
:'auto_rows_fit' => :'BOOLEAN',
|
|
139
|
+
:'auto_columns_fit' => :'BOOLEAN',
|
|
140
140
|
:'region' => :'String',
|
|
141
141
|
:'password' => :'String'
|
|
142
142
|
}
|
|
@@ -128,8 +128,8 @@ module AsposeCellsCloud
|
|
|
128
128
|
:'out_path' => :'String',
|
|
129
129
|
:'out_storage_name' => :'String',
|
|
130
130
|
:'fonts_location' => :'String',
|
|
131
|
-
:'auto_rows_fit' => :'
|
|
132
|
-
:'auto_columns_fit' => :'
|
|
131
|
+
:'auto_rows_fit' => :'BOOLEAN',
|
|
132
|
+
:'auto_columns_fit' => :'BOOLEAN',
|
|
133
133
|
:'region' => :'String',
|
|
134
134
|
:'password' => :'String'
|
|
135
135
|
}
|
|
@@ -128,8 +128,8 @@ module AsposeCellsCloud
|
|
|
128
128
|
:'out_path' => :'String',
|
|
129
129
|
:'out_storage_name' => :'String',
|
|
130
130
|
:'fonts_location' => :'String',
|
|
131
|
-
:'auto_rows_fit' => :'
|
|
132
|
-
:'auto_columns_fit' => :'
|
|
131
|
+
:'auto_rows_fit' => :'BOOLEAN',
|
|
132
|
+
:'auto_columns_fit' => :'BOOLEAN',
|
|
133
133
|
:'region' => :'String',
|
|
134
134
|
:'password' => :'String'
|
|
135
135
|
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
<copyright company="Aspose" file="SmartMarkerTemplate_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 SmartMarkerTemplateRequest
|
|
33
|
+
|
|
34
|
+
attr_accessor :region
|
|
35
|
+
attr_accessor :password
|
|
36
|
+
|
|
37
|
+
def initialize(attributes = {})
|
|
38
|
+
return unless attributes.is_a?(Hash)
|
|
39
|
+
|
|
40
|
+
# convert string to symbol for hash key
|
|
41
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
42
|
+
|
|
43
|
+
if attributes.has_key?(:'region')
|
|
44
|
+
self.region = attributes[:'region']
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
if attributes.has_key?(:'password')
|
|
48
|
+
self.password = attributes[:'password']
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
end
|
|
52
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
53
|
+
def self.attribute_map
|
|
54
|
+
{
|
|
55
|
+
:'region' => :'region',
|
|
56
|
+
:'password' => :'password'
|
|
57
|
+
}
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Attribute type mapping.
|
|
61
|
+
def self.swagger_types
|
|
62
|
+
{
|
|
63
|
+
:'region' => :'String',
|
|
64
|
+
:'password' => :'String'
|
|
65
|
+
}
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
def create_http_request(api_client,opts = {})
|
|
69
|
+
if api_client.config.debugging
|
|
70
|
+
api_client.config.logger.debug "Calling API: CellsApi.smart_marker_template ..."
|
|
71
|
+
end
|
|
72
|
+
api_client.request_token_if_needed
|
|
73
|
+
|
|
74
|
+
# resource path
|
|
75
|
+
local_var_path = "v4.0/cells/report/smart/template"
|
|
76
|
+
# query parameters
|
|
77
|
+
query_params = {}
|
|
78
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
|
79
|
+
query_params[:'password'] = self.password if !self.password.nil?
|
|
80
|
+
|
|
81
|
+
# header parameters
|
|
82
|
+
header_params = {}
|
|
83
|
+
# HTTP header 'Accept' (if needed)
|
|
84
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
|
85
|
+
# HTTP header 'Content-Type'
|
|
86
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
|
87
|
+
|
|
88
|
+
# form parameters
|
|
89
|
+
form_params = {}
|
|
90
|
+
post_body = nil
|
|
91
|
+
|
|
92
|
+
#auth_names = []
|
|
93
|
+
auth_names = ['JWT']
|
|
94
|
+
data, status_code, headers = api_client.call_api(:PUT, local_var_path,
|
|
95
|
+
:header_params => header_params,
|
|
96
|
+
:query_params => query_params,
|
|
97
|
+
:form_params => form_params,
|
|
98
|
+
:body => post_body,
|
|
99
|
+
:auth_names => auth_names,
|
|
100
|
+
:return_type => 'File')
|
|
101
|
+
if api_client.config.debugging
|
|
102
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.smart_marker_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
103
|
+
end
|
|
104
|
+
return data, status_code, headers
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
data/lib/aspose_cells_cloud.rb
CHANGED
|
@@ -84,6 +84,7 @@ require 'aspose_cells_cloud/models/broken_links_response'
|
|
|
84
84
|
require 'aspose_cells_cloud/models/cells_cloud_file_info_response'
|
|
85
85
|
require 'aspose_cells_cloud/models/cells_cloud_public_key_response'
|
|
86
86
|
require 'aspose_cells_cloud/models/cells_cloud_response'
|
|
87
|
+
require 'aspose_cells_cloud/models/formula_calculate_result_response'
|
|
87
88
|
require 'aspose_cells_cloud/models/save_response'
|
|
88
89
|
require 'aspose_cells_cloud/models/search_response'
|
|
89
90
|
require 'aspose_cells_cloud/models/image_or_print_options'
|
|
@@ -492,6 +493,7 @@ require 'aspose_cells_cloud/requests/report_ai_analysis_request'
|
|
|
492
493
|
require 'aspose_cells_cloud/requests/summarize_spreadsheet_request'
|
|
493
494
|
require 'aspose_cells_cloud/requests/aggregate_cells_by_color_request'
|
|
494
495
|
require 'aspose_cells_cloud/requests/math_calculate_request'
|
|
496
|
+
require 'aspose_cells_cloud/requests/calculation_formula_request'
|
|
495
497
|
require 'aspose_cells_cloud/requests/post_access_token_request'
|
|
496
498
|
require 'aspose_cells_cloud/requests/get_aspose_cells_cloud_status_request'
|
|
497
499
|
require 'aspose_cells_cloud/requests/check_cloud_service_health_request'
|
|
@@ -551,6 +553,7 @@ require 'aspose_cells_cloud/requests/get_structure_in_remote_spreadsheet_request
|
|
|
551
553
|
require 'aspose_cells_cloud/requests/protect_spreadsheet_request'
|
|
552
554
|
require 'aspose_cells_cloud/requests/unprotect_spreadsheet_request'
|
|
553
555
|
require 'aspose_cells_cloud/requests/spreadsheet_digitalsignature_request'
|
|
556
|
+
require 'aspose_cells_cloud/requests/smart_marker_template_request'
|
|
554
557
|
require 'aspose_cells_cloud/requests/search_all_text_items_in_remote_spreadsheet_request'
|
|
555
558
|
require 'aspose_cells_cloud/requests/search_spreadsheet_all_text_items_request'
|
|
556
559
|
require 'aspose_cells_cloud/requests/search_spreadsheet_content_request'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aspose_cells_cloud
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 26.
|
|
4
|
+
version: '26.7'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Aspose Cells Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-07-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -411,6 +411,7 @@ files:
|
|
|
411
411
|
- lib/aspose_cells_cloud/models/format_condition.rb
|
|
412
412
|
- lib/aspose_cells_cloud/models/forms.rb
|
|
413
413
|
- lib/aspose_cells_cloud/models/forms_response.rb
|
|
414
|
+
- lib/aspose_cells_cloud/models/formula_calculate_result_response.rb
|
|
414
415
|
- lib/aspose_cells_cloud/models/formula_format_condition.rb
|
|
415
416
|
- lib/aspose_cells_cloud/models/formula_settings.rb
|
|
416
417
|
- lib/aspose_cells_cloud/models/globalization_settings.rb
|
|
@@ -696,6 +697,7 @@ files:
|
|
|
696
697
|
- lib/aspose_cells_cloud/requests/add_text_request.rb
|
|
697
698
|
- lib/aspose_cells_cloud/requests/add_worksheet_to_spreadsheet_request.rb
|
|
698
699
|
- lib/aspose_cells_cloud/requests/aggregate_cells_by_color_request.rb
|
|
700
|
+
- lib/aspose_cells_cloud/requests/calculation_formula_request.rb
|
|
699
701
|
- lib/aspose_cells_cloud/requests/check_cloud_service_health_request.rb
|
|
700
702
|
- lib/aspose_cells_cloud/requests/check_workbook_formula_errors_request.rb
|
|
701
703
|
- lib/aspose_cells_cloud/requests/check_wrokbook_external_reference_request.rb
|
|
@@ -1130,6 +1132,7 @@ files:
|
|
|
1130
1132
|
- lib/aspose_cells_cloud/requests/search_spreadsheet_all_text_items_request.rb
|
|
1131
1133
|
- lib/aspose_cells_cloud/requests/search_spreadsheet_broken_links_request.rb
|
|
1132
1134
|
- lib/aspose_cells_cloud/requests/search_spreadsheet_content_request.rb
|
|
1135
|
+
- lib/aspose_cells_cloud/requests/smart_marker_template_request.rb
|
|
1133
1136
|
- lib/aspose_cells_cloud/requests/spec_request.rb
|
|
1134
1137
|
- lib/aspose_cells_cloud/requests/split_remote_spreadsheet_request.rb
|
|
1135
1138
|
- lib/aspose_cells_cloud/requests/split_spreadsheet_request.rb
|