aspose_cells_cloud 24.5 → 24.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -5
- data/lib/aspose_cells_cloud/api/cells_api.rb +16 -1
- data/lib/aspose_cells_cloud/models/abstract_calculation_monitor.rb +3 -3
- data/lib/aspose_cells_cloud/models/add_text_options.rb +306 -0
- data/lib/aspose_cells_cloud/models/{query_data_source.rb → applied_operate.rb} +12 -36
- data/lib/aspose_cells_cloud/models/{transformation.rb → applied_step.rb} +23 -23
- data/lib/aspose_cells_cloud/models/base_operate_options.rb +210 -0
- data/lib/aspose_cells_cloud/models/{query_table.rb → data_query.rb} +46 -46
- data/lib/aspose_cells_cloud/models/data_transformation_request.rb +26 -14
- data/lib/aspose_cells_cloud/models/load_data.rb +11 -47
- data/lib/aspose_cells_cloud/models/load_to.rb +3 -3
- data/lib/aspose_cells_cloud/models/merge_queries.rb +39 -75
- data/lib/aspose_cells_cloud/models/pivot_column.rb +18 -6
- data/lib/aspose_cells_cloud/models/unpivot_column.rb +19 -7
- data/lib/aspose_cells_cloud/requests/post_access_token_request.rb +92 -0
- data/lib/aspose_cells_cloud/requests/post_add_text_content_request.rb +103 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +7 -3
- data/spec/api/data_processing_controller_spec.rb +34 -0
- metadata +9 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8627c7cc03570128cb4a1a912df4d894b7d2f1cadadad9ca3c9c32002a68531
|
4
|
+
data.tar.gz: 90b5eef427393fb9d1b3955d5d435186faa663779a9fd4e0c5ab9e8fc8350846
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83bc4d429778fe562d0c8c2101280755f0a2df5df5107a467e136bffb94068c0cde18f8697b9453b6c072a37cc7d7296b1d67f11d036cb33fca3dc186d2c007d
|
7
|
+
data.tar.gz: 31485a0800377deb9d63314c1b4abeb979463f45ea9337ddf6afc36b9ec860660ae863a1936ccfbd43f8e5fd46820c3f472b4a515f83cd292c44b65b4d734064
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) ![Gem](https://img.shields.io/gem/v/aspose_cells_cloud) ![Gem](https://img.shields.io/gem/dt/aspose_cells_cloud) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-ruby)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-ruby/24.
|
1
|
+
![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) ![Gem](https://img.shields.io/gem/v/aspose_cells_cloud) ![Gem](https://img.shields.io/gem/dt/aspose_cells_cloud) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-ruby)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-ruby/24.7)
|
2
2
|
|
3
3
|
|
4
4
|
Aspose.Cells Cloud for Ruby enables you to handle various aspects of Excel files, including cell data, styles, formulas, charts, pivot tables, data validation, comments, drawing objects, images, hyperlinks, and so on. Additionally, it supports operations such as splitting, merging, repairing, and converting to other compatible file formats.
|
@@ -22,13 +22,12 @@ Enhance your Ruby applications with the [Aspose.Cells Cloud](https://products.as
|
|
22
22
|
- 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.
|
23
23
|
|
24
24
|
|
25
|
-
## Feature & Enhancements in Version 24.
|
25
|
+
## Feature & Enhancements in Version 24.7
|
26
26
|
|
27
27
|
Full list of issues covering all changes in this release:
|
28
28
|
|
29
|
-
- Add
|
30
|
-
-
|
31
|
-
|
29
|
+
- Add a new feature about adding text content.
|
30
|
+
- Add get access token by client id and client secret.
|
32
31
|
|
33
32
|
## Support file format
|
34
33
|
|
@@ -127,6 +126,16 @@ request = AsposeCellsCloud::PutConvertWorkbookRequest.new(:File=>mapFiles,:for
|
|
127
126
|
|
128
127
|
# Release history version
|
129
128
|
|
129
|
+
## Enhancements in Version 24.6
|
130
|
+
|
131
|
+
- Optimize load data function of data transformation.
|
132
|
+
- Optimize the data conversion applied steps.
|
133
|
+
|
134
|
+
## Enhancements in Version 24.5
|
135
|
+
|
136
|
+
- Add merge queries method for loading data of data transformation.
|
137
|
+
- Optimize chart data model.
|
138
|
+
|
130
139
|
## Enhancements in Version 24.4
|
131
140
|
|
132
141
|
- Support data transformation.
|
@@ -208,6 +208,14 @@ module AsposeCellsCloud
|
|
208
208
|
return data
|
209
209
|
end
|
210
210
|
|
211
|
+
# Get Access Token Result
|
212
|
+
|
213
|
+
def post_access_token( post_access_token_request, opts = {})
|
214
|
+
|
215
|
+
data, _status_code, _headers = post_access_token_request.create_http_request(@api_client,opts )
|
216
|
+
return data
|
217
|
+
end
|
218
|
+
|
211
219
|
# Clear cell area contents in the worksheet.
|
212
220
|
|
213
221
|
def post_clear_contents( post_clear_contents_request, opts = {})
|
@@ -2065,7 +2073,14 @@ module AsposeCellsCloud
|
|
2065
2073
|
return data
|
2066
2074
|
end
|
2067
2075
|
|
2068
|
-
|
2076
|
+
|
2077
|
+
def post_add_text_content( post_add_text_content_request, opts = {})
|
2078
|
+
|
2079
|
+
data, _status_code, _headers = post_add_text_content_request.create_http_request(@api_client,opts )
|
2080
|
+
return data
|
2081
|
+
end
|
2082
|
+
|
2083
|
+
# Retrieve the description of the default style for the workbook .
|
2069
2084
|
|
2070
2085
|
def get_workbook_default_style( get_workbook_default_style_request, opts = {})
|
2071
2086
|
|
@@ -31,11 +31,11 @@ require 'date'
|
|
31
31
|
module AsposeCellsCloud
|
32
32
|
|
33
33
|
class AbstractCalculationMonitor
|
34
|
-
#Gets the old value of the calculated cell.
|
34
|
+
#Gets the old value of the calculated cell. Should be used only in and .
|
35
35
|
attr_accessor :original_value
|
36
|
-
#Whether the cell's value has been changed after the calculation.
|
36
|
+
#Whether the cell's value has been changed after the calculation. Should be used only in .
|
37
37
|
attr_accessor :value_changed
|
38
|
-
#Gets the newly calculated value of the cell.
|
38
|
+
#Gets the newly calculated value of the cell. Should be used only in .
|
39
39
|
attr_accessor :calculated_value
|
40
40
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -0,0 +1,306 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
<copyright company="Aspose" file="AddTextOptionsrb.cs">
|
4
|
+
Copyright (c) 2024 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 AddTextOptions
|
34
|
+
#
|
35
|
+
attr_accessor :name
|
36
|
+
#
|
37
|
+
attr_accessor :data_source
|
38
|
+
#
|
39
|
+
attr_accessor :file_info
|
40
|
+
#
|
41
|
+
attr_accessor :text
|
42
|
+
#
|
43
|
+
attr_accessor :worksheet
|
44
|
+
#
|
45
|
+
attr_accessor :range
|
46
|
+
#
|
47
|
+
attr_accessor :select_poistion
|
48
|
+
#
|
49
|
+
attr_accessor :select_text
|
50
|
+
#
|
51
|
+
attr_accessor :skip_empty_cells
|
52
|
+
|
53
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
54
|
+
def self.attribute_map
|
55
|
+
{
|
56
|
+
:'name' => :'Name',
|
57
|
+
:'data_source' => :'DataSource',
|
58
|
+
:'file_info' => :'FileInfo',
|
59
|
+
:'text' => :'Text',
|
60
|
+
:'worksheet' => :'Worksheet',
|
61
|
+
:'range' => :'Range',
|
62
|
+
:'select_poistion' => :'SelectPoistion',
|
63
|
+
:'select_text' => :'SelectText',
|
64
|
+
:'skip_empty_cells' => :'SkipEmptyCells'
|
65
|
+
}
|
66
|
+
end
|
67
|
+
|
68
|
+
# Attribute type mapping.
|
69
|
+
def self.swagger_types
|
70
|
+
{
|
71
|
+
:'name' => :'String',
|
72
|
+
:'data_source' => :'DataSource',
|
73
|
+
:'file_info' => :'FileInfo',
|
74
|
+
:'text' => :'String',
|
75
|
+
:'worksheet' => :'String',
|
76
|
+
:'range' => :'String',
|
77
|
+
:'select_poistion' => :'String',
|
78
|
+
:'select_text' => :'String',
|
79
|
+
:'skip_empty_cells' => :'BOOLEAN'
|
80
|
+
}
|
81
|
+
end
|
82
|
+
|
83
|
+
# Initializes the object
|
84
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
85
|
+
def initialize(attributes = {})
|
86
|
+
return unless attributes.is_a?(Hash)
|
87
|
+
|
88
|
+
# convert string to symbol for hash key
|
89
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
90
|
+
|
91
|
+
if attributes.has_key?(:'Name')
|
92
|
+
self.name = attributes[:'Name']
|
93
|
+
end
|
94
|
+
if attributes.has_key?(:'DataSource')
|
95
|
+
self.data_source = attributes[:'DataSource']
|
96
|
+
end
|
97
|
+
if attributes.has_key?(:'FileInfo')
|
98
|
+
self.file_info = attributes[:'FileInfo']
|
99
|
+
end
|
100
|
+
if attributes.has_key?(:'Text')
|
101
|
+
self.text = attributes[:'Text']
|
102
|
+
end
|
103
|
+
if attributes.has_key?(:'Worksheet')
|
104
|
+
self.worksheet = attributes[:'Worksheet']
|
105
|
+
end
|
106
|
+
if attributes.has_key?(:'Range')
|
107
|
+
self.range = attributes[:'Range']
|
108
|
+
end
|
109
|
+
if attributes.has_key?(:'SelectPoistion')
|
110
|
+
self.select_poistion = attributes[:'SelectPoistion']
|
111
|
+
end
|
112
|
+
if attributes.has_key?(:'SelectText')
|
113
|
+
self.select_text = attributes[:'SelectText']
|
114
|
+
end
|
115
|
+
if attributes.has_key?(:'SkipEmptyCells')
|
116
|
+
self.skip_empty_cells = attributes[:'SkipEmptyCells']
|
117
|
+
end
|
118
|
+
|
119
|
+
end
|
120
|
+
|
121
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
122
|
+
# @return Array for valid properies with the reasons
|
123
|
+
def list_invalid_properties
|
124
|
+
invalid_properties = Array.new
|
125
|
+
if @name.nil?
|
126
|
+
invalid_properties.push("invalid value for 'name', name cannot be nil.")
|
127
|
+
end
|
128
|
+
if @data_source.nil?
|
129
|
+
invalid_properties.push("invalid value for 'data_source', data_source cannot be nil.")
|
130
|
+
end
|
131
|
+
if @file_info.nil?
|
132
|
+
invalid_properties.push("invalid value for 'file_info', file_info cannot be nil.")
|
133
|
+
end
|
134
|
+
if @text.nil?
|
135
|
+
invalid_properties.push("invalid value for 'text', text cannot be nil.")
|
136
|
+
end
|
137
|
+
if @worksheet.nil?
|
138
|
+
invalid_properties.push("invalid value for 'worksheet', worksheet cannot be nil.")
|
139
|
+
end
|
140
|
+
if @range.nil?
|
141
|
+
invalid_properties.push("invalid value for 'range', range cannot be nil.")
|
142
|
+
end
|
143
|
+
if @select_poistion.nil?
|
144
|
+
invalid_properties.push("invalid value for 'select_poistion', select_poistion cannot be nil.")
|
145
|
+
end
|
146
|
+
if @select_text.nil?
|
147
|
+
invalid_properties.push("invalid value for 'select_text', select_text cannot be nil.")
|
148
|
+
end
|
149
|
+
if @skip_empty_cells.nil?
|
150
|
+
invalid_properties.push("invalid value for 'skip_empty_cells', skip_empty_cells cannot be nil.")
|
151
|
+
end
|
152
|
+
|
153
|
+
return invalid_properties
|
154
|
+
end
|
155
|
+
|
156
|
+
# Check to see if the all the properties in the model are valid
|
157
|
+
# @return true if the model is valid
|
158
|
+
def valid?
|
159
|
+
return false if @name.nil?
|
160
|
+
return false if @data_source.nil?
|
161
|
+
return false if @file_info.nil?
|
162
|
+
return false if @text.nil?
|
163
|
+
return false if @worksheet.nil?
|
164
|
+
return false if @range.nil?
|
165
|
+
return false if @select_poistion.nil?
|
166
|
+
return false if @select_text.nil?
|
167
|
+
return false if @skip_empty_cells.nil?
|
168
|
+
return true
|
169
|
+
end
|
170
|
+
|
171
|
+
# Checks equality by comparing each attribute.
|
172
|
+
# @param [Object] Object to be compared
|
173
|
+
def ==(o)
|
174
|
+
return true if self.equal?(o)
|
175
|
+
self.class == o.class &&
|
176
|
+
name == o.name &&
|
177
|
+
data_source == o.data_source &&
|
178
|
+
file_info == o.file_info &&
|
179
|
+
text == o.text &&
|
180
|
+
worksheet == o.worksheet &&
|
181
|
+
range == o.range &&
|
182
|
+
select_poistion == o.select_poistion &&
|
183
|
+
select_text == o.select_text &&
|
184
|
+
skip_empty_cells == o.skip_empty_cells
|
185
|
+
std_dev == o.std_dev
|
186
|
+
end
|
187
|
+
|
188
|
+
# @see the `==` method
|
189
|
+
# @param [Object] Object to be compared
|
190
|
+
def eql?(o)
|
191
|
+
self == o
|
192
|
+
end
|
193
|
+
|
194
|
+
# Calculates hash code according to all attributes.
|
195
|
+
# @return [Fixnum] Hash code
|
196
|
+
def hash
|
197
|
+
[ name , data_source , file_info , text , worksheet , range , select_poistion , select_text , skip_empty_cells ].hash
|
198
|
+
end
|
199
|
+
|
200
|
+
# Builds the object from hash
|
201
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
202
|
+
# @return [Object] Returns the model itself
|
203
|
+
def build_from_hash(attributes)
|
204
|
+
return nil unless attributes.is_a?(Hash)
|
205
|
+
self.class.swagger_types.each_pair do |key, type|
|
206
|
+
if type =~ /\AArray<(.*)>/i
|
207
|
+
# check to ensure the input is an array given that the the attribute
|
208
|
+
# is documented as an array but the input is not
|
209
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
210
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
211
|
+
end
|
212
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
213
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
214
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
215
|
+
end
|
216
|
+
|
217
|
+
self
|
218
|
+
end
|
219
|
+
|
220
|
+
# Deserializes the data based on type
|
221
|
+
# @param string type Data type
|
222
|
+
# @param string value Value to be deserialized
|
223
|
+
# @return [Object] Deserialized data
|
224
|
+
def _deserialize(type, value)
|
225
|
+
case type.to_sym
|
226
|
+
when :DateTime
|
227
|
+
DateTime.parse(value)
|
228
|
+
when :Date
|
229
|
+
Date.parse(value)
|
230
|
+
when :String
|
231
|
+
value.to_s
|
232
|
+
when :Integer
|
233
|
+
value.to_i
|
234
|
+
when :Float
|
235
|
+
value.to_f
|
236
|
+
when :BOOLEAN
|
237
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
238
|
+
true
|
239
|
+
else
|
240
|
+
false
|
241
|
+
end
|
242
|
+
when :Object
|
243
|
+
# generic object (usually a Hash), return directly
|
244
|
+
value
|
245
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
246
|
+
inner_type = Regexp.last_match[:inner_type]
|
247
|
+
value.map { |v| _deserialize(inner_type, v) }
|
248
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
249
|
+
k_type = Regexp.last_match[:k_type]
|
250
|
+
v_type = Regexp.last_match[:v_type]
|
251
|
+
{}.tap do |hash|
|
252
|
+
value.each do |k, v|
|
253
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
254
|
+
end
|
255
|
+
end
|
256
|
+
else # model
|
257
|
+
temp_model = AsposeCellsCloud.const_get(type).new
|
258
|
+
temp_model.build_from_hash(value)
|
259
|
+
end
|
260
|
+
end
|
261
|
+
|
262
|
+
# Returns the string representation of the object
|
263
|
+
# @return [String] String presentation of the object
|
264
|
+
def to_s
|
265
|
+
to_hash.to_s
|
266
|
+
end
|
267
|
+
|
268
|
+
# to_body is an alias to to_hash (backward compatibility)
|
269
|
+
# @return [Hash] Returns the object in the form of hash
|
270
|
+
def to_body
|
271
|
+
to_hash
|
272
|
+
end
|
273
|
+
|
274
|
+
# Returns the object in the form of hash
|
275
|
+
# @return [Hash] Returns the object in the form of hash
|
276
|
+
def to_hash
|
277
|
+
hash = {}
|
278
|
+
self.class.attribute_map.each_pair do |attr, param|
|
279
|
+
value = self.send(attr)
|
280
|
+
next if value.nil?
|
281
|
+
hash[param] = _to_hash(value)
|
282
|
+
end
|
283
|
+
hash
|
284
|
+
end
|
285
|
+
|
286
|
+
# Outputs non-array value in the form of hash
|
287
|
+
# For object, use to_hash. Otherwise, just return the value
|
288
|
+
# @param [Object] value Any valid value
|
289
|
+
# @return [Hash] Returns the value in the form of hash
|
290
|
+
def _to_hash(value)
|
291
|
+
if value.is_a?(Array)
|
292
|
+
value.compact.map{ |v| _to_hash(v) }
|
293
|
+
elsif value.is_a?(Hash)
|
294
|
+
{}.tap do |hash|
|
295
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
296
|
+
end
|
297
|
+
elsif value.respond_to? :to_hash
|
298
|
+
value.to_hash
|
299
|
+
else
|
300
|
+
value
|
301
|
+
end
|
302
|
+
end
|
303
|
+
|
304
|
+
end
|
305
|
+
|
306
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
=begin
|
2
2
|
--------------------------------------------------------------------------------------------------------------------
|
3
|
-
<copyright company="Aspose" file="
|
3
|
+
<copyright company="Aspose" file="AppliedOperaterb.cs">
|
4
4
|
Copyright (c) 2024 Aspose.Cells Cloud
|
5
5
|
</copyright>
|
6
6
|
<summary>
|
@@ -30,29 +30,21 @@ require 'date'
|
|
30
30
|
|
31
31
|
module AsposeCellsCloud
|
32
32
|
|
33
|
-
class
|
33
|
+
class AppliedOperate
|
34
34
|
#
|
35
|
-
attr_accessor :
|
36
|
-
#
|
37
|
-
attr_accessor :data_file
|
38
|
-
#
|
39
|
-
attr_accessor :data_source
|
35
|
+
attr_accessor :applied_operate_type
|
40
36
|
|
41
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
38
|
def self.attribute_map
|
43
39
|
{
|
44
|
-
:'
|
45
|
-
:'data_file' => :'DataFile',
|
46
|
-
:'data_source' => :'DataSource'
|
40
|
+
:'applied_operate_type' => :'AppliedOperateType'
|
47
41
|
}
|
48
42
|
end
|
49
43
|
|
50
44
|
# Attribute type mapping.
|
51
45
|
def self.swagger_types
|
52
46
|
{
|
53
|
-
:'
|
54
|
-
:'data_file' => :'DataSource',
|
55
|
-
:'data_source' => :'String'
|
47
|
+
:'applied_operate_type' => :'String'
|
56
48
|
}
|
57
49
|
end
|
58
50
|
|
@@ -64,14 +56,8 @@ module AsposeCellsCloud
|
|
64
56
|
# convert string to symbol for hash key
|
65
57
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
66
58
|
|
67
|
-
if attributes.has_key?(:'
|
68
|
-
self.
|
69
|
-
end
|
70
|
-
if attributes.has_key?(:'DataFile')
|
71
|
-
self.data_file = attributes[:'DataFile']
|
72
|
-
end
|
73
|
-
if attributes.has_key?(:'DataSource')
|
74
|
-
self.data_source = attributes[:'DataSource']
|
59
|
+
if attributes.has_key?(:'AppliedOperateType')
|
60
|
+
self.applied_operate_type = attributes[:'AppliedOperateType']
|
75
61
|
end
|
76
62
|
|
77
63
|
end
|
@@ -80,14 +66,8 @@ module AsposeCellsCloud
|
|
80
66
|
# @return Array for valid properies with the reasons
|
81
67
|
def list_invalid_properties
|
82
68
|
invalid_properties = Array.new
|
83
|
-
if @
|
84
|
-
invalid_properties.push("invalid value for '
|
85
|
-
end
|
86
|
-
if @data_file.nil?
|
87
|
-
invalid_properties.push("invalid value for 'data_file', data_file cannot be nil.")
|
88
|
-
end
|
89
|
-
if @data_source.nil?
|
90
|
-
invalid_properties.push("invalid value for 'data_source', data_source cannot be nil.")
|
69
|
+
if @applied_operate_type.nil?
|
70
|
+
invalid_properties.push("invalid value for 'applied_operate_type', applied_operate_type cannot be nil.")
|
91
71
|
end
|
92
72
|
|
93
73
|
return invalid_properties
|
@@ -96,9 +76,7 @@ module AsposeCellsCloud
|
|
96
76
|
# Check to see if the all the properties in the model are valid
|
97
77
|
# @return true if the model is valid
|
98
78
|
def valid?
|
99
|
-
return false if @
|
100
|
-
return false if @data_file.nil?
|
101
|
-
return false if @data_source.nil?
|
79
|
+
return false if @applied_operate_type.nil?
|
102
80
|
return true
|
103
81
|
end
|
104
82
|
|
@@ -107,9 +85,7 @@ module AsposeCellsCloud
|
|
107
85
|
def ==(o)
|
108
86
|
return true if self.equal?(o)
|
109
87
|
self.class == o.class &&
|
110
|
-
|
111
|
-
data_file == o.data_file &&
|
112
|
-
data_source == o.data_source
|
88
|
+
applied_operate_type == o.applied_operate_type
|
113
89
|
std_dev == o.std_dev
|
114
90
|
end
|
115
91
|
|
@@ -122,7 +98,7 @@ module AsposeCellsCloud
|
|
122
98
|
# Calculates hash code according to all attributes.
|
123
99
|
# @return [Fixnum] Hash code
|
124
100
|
def hash
|
125
|
-
[
|
101
|
+
[ applied_operate_type ].hash
|
126
102
|
end
|
127
103
|
|
128
104
|
# Builds the object from hash
|
@@ -1,6 +1,6 @@
|
|
1
1
|
=begin
|
2
2
|
--------------------------------------------------------------------------------------------------------------------
|
3
|
-
<copyright company="Aspose" file="
|
3
|
+
<copyright company="Aspose" file="AppliedSteprb.cs">
|
4
4
|
Copyright (c) 2024 Aspose.Cells Cloud
|
5
5
|
</copyright>
|
6
6
|
<summary>
|
@@ -30,25 +30,25 @@ require 'date'
|
|
30
30
|
|
31
31
|
module AsposeCellsCloud
|
32
32
|
|
33
|
-
class
|
34
|
-
#
|
35
|
-
attr_accessor :
|
36
|
-
#
|
37
|
-
attr_accessor :
|
33
|
+
class AppliedStep
|
34
|
+
#Data manipulation step name.
|
35
|
+
attr_accessor :step_name
|
36
|
+
#Data manipulation name.
|
37
|
+
attr_accessor :applied_operate
|
38
38
|
|
39
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
40
|
def self.attribute_map
|
41
41
|
{
|
42
|
-
:'
|
43
|
-
:'
|
42
|
+
:'step_name' => :'StepName',
|
43
|
+
:'applied_operate' => :'AppliedOperate'
|
44
44
|
}
|
45
45
|
end
|
46
46
|
|
47
47
|
# Attribute type mapping.
|
48
48
|
def self.swagger_types
|
49
49
|
{
|
50
|
-
:'
|
51
|
-
:'
|
50
|
+
:'step_name' => :'String',
|
51
|
+
:'applied_operate' => :'AppliedOperate'
|
52
52
|
}
|
53
53
|
end
|
54
54
|
|
@@ -60,11 +60,11 @@ module AsposeCellsCloud
|
|
60
60
|
# convert string to symbol for hash key
|
61
61
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
62
62
|
|
63
|
-
if attributes.has_key?(:'
|
64
|
-
self.
|
63
|
+
if attributes.has_key?(:'StepName')
|
64
|
+
self.step_name = attributes[:'StepName']
|
65
65
|
end
|
66
|
-
if attributes.has_key?(:'
|
67
|
-
self.
|
66
|
+
if attributes.has_key?(:'AppliedOperate')
|
67
|
+
self.applied_operate = attributes[:'AppliedOperate']
|
68
68
|
end
|
69
69
|
|
70
70
|
end
|
@@ -73,11 +73,11 @@ module AsposeCellsCloud
|
|
73
73
|
# @return Array for valid properies with the reasons
|
74
74
|
def list_invalid_properties
|
75
75
|
invalid_properties = Array.new
|
76
|
-
if @
|
77
|
-
invalid_properties.push("invalid value for '
|
76
|
+
if @step_name.nil?
|
77
|
+
invalid_properties.push("invalid value for 'step_name', step_name cannot be nil.")
|
78
78
|
end
|
79
|
-
if @
|
80
|
-
invalid_properties.push("invalid value for '
|
79
|
+
if @applied_operate.nil?
|
80
|
+
invalid_properties.push("invalid value for 'applied_operate', applied_operate cannot be nil.")
|
81
81
|
end
|
82
82
|
|
83
83
|
return invalid_properties
|
@@ -86,8 +86,8 @@ module AsposeCellsCloud
|
|
86
86
|
# Check to see if the all the properties in the model are valid
|
87
87
|
# @return true if the model is valid
|
88
88
|
def valid?
|
89
|
-
return false if @
|
90
|
-
return false if @
|
89
|
+
return false if @step_name.nil?
|
90
|
+
return false if @applied_operate.nil?
|
91
91
|
return true
|
92
92
|
end
|
93
93
|
|
@@ -96,8 +96,8 @@ module AsposeCellsCloud
|
|
96
96
|
def ==(o)
|
97
97
|
return true if self.equal?(o)
|
98
98
|
self.class == o.class &&
|
99
|
-
|
100
|
-
|
99
|
+
step_name == o.step_name &&
|
100
|
+
applied_operate == o.applied_operate
|
101
101
|
std_dev == o.std_dev
|
102
102
|
end
|
103
103
|
|
@@ -110,7 +110,7 @@ module AsposeCellsCloud
|
|
110
110
|
# Calculates hash code according to all attributes.
|
111
111
|
# @return [Fixnum] Hash code
|
112
112
|
def hash
|
113
|
-
[
|
113
|
+
[ step_name , applied_operate ].hash
|
114
114
|
end
|
115
115
|
|
116
116
|
# Builds the object from hash
|