aspose_cells_cloud 23.7 → 23.9

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 (41) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -4
  3. data/lib/aspose_cells_cloud/api/cells_api.rb +23 -0
  4. data/lib/aspose_cells_cloud/models/abstract_calculation_engine.rb +234 -0
  5. data/lib/aspose_cells_cloud/models/abstract_calculation_monitor.rb +234 -0
  6. data/lib/aspose_cells_cloud/models/auto_fitter_options.rb +64 -4
  7. data/lib/aspose_cells_cloud/models/calculation_options.rb +40 -4
  8. data/lib/aspose_cells_cloud/models/{barcode_response_list.rb → chart_globalization_settings.rb} +2 -2
  9. data/lib/aspose_cells_cloud/models/digital_signature.rb +294 -0
  10. data/lib/aspose_cells_cloud/models/formula_settings.rb +330 -0
  11. data/lib/aspose_cells_cloud/models/globalization_settings.rb +258 -0
  12. data/lib/aspose_cells_cloud/models/html_save_options.rb +61 -1
  13. data/lib/aspose_cells_cloud/models/image_or_print_options.rb +498 -0
  14. data/lib/aspose_cells_cloud/models/list_column.rb +16 -4
  15. data/lib/aspose_cells_cloud/models/list_object.rb +73 -1
  16. data/lib/aspose_cells_cloud/models/ooxml_save_options.rb +49 -1
  17. data/lib/aspose_cells_cloud/models/pdf_save_options.rb +109 -1
  18. data/lib/aspose_cells_cloud/models/pivot_globalization_settings.rb +198 -0
  19. data/lib/aspose_cells_cloud/models/protect_workbook_requst.rb +270 -0
  20. data/lib/aspose_cells_cloud/models/protection.rb +402 -0
  21. data/lib/aspose_cells_cloud/models/query_table.rb +258 -0
  22. data/lib/aspose_cells_cloud/models/range_sort_request.rb +222 -0
  23. data/lib/aspose_cells_cloud/models/{barcode_response.rb → rendering_font.rb} +55 -43
  24. data/lib/aspose_cells_cloud/models/rendering_watermark.rb +330 -0
  25. data/lib/aspose_cells_cloud/models/workbook_settings.rb +220 -4
  26. data/lib/aspose_cells_cloud/models/write_protection.rb +246 -0
  27. data/lib/aspose_cells_cloud/models/xml_data_binding.rb +210 -0
  28. data/lib/aspose_cells_cloud/models/xml_map.rb +234 -0
  29. data/lib/aspose_cells_cloud/requests/post_lock_request.rb +120 -0
  30. data/lib/aspose_cells_cloud/requests/post_protect_request.rb +13 -8
  31. data/lib/aspose_cells_cloud/requests/post_worksheet_cells_range_sort_request.rb +138 -0
  32. data/lib/aspose_cells_cloud/requests/post_worksheet_list_object_insert_slicer_request.rb +159 -0
  33. data/lib/aspose_cells_cloud/requests/post_worksheet_list_object_remove_duplicates_request.rb +137 -0
  34. data/lib/aspose_cells_cloud/version.rb +1 -1
  35. data/lib/aspose_cells_cloud.rb +21 -2
  36. data/spec/api/list_objects_controller_spec.rb +35 -0
  37. data/spec/api/ranges_controller_spec.rb +20 -0
  38. data/spec/document/light_cells_spec.rb +2 -1
  39. data/spec/one_case_spec.rb +27 -0
  40. data/spec/onecase_spec.rb +28 -0
  41. metadata +29 -8
@@ -0,0 +1,258 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="QueryTablerb.cs">
4
+ Copyright (c) 2023 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 QueryTable
34
+ #
35
+ attr_accessor :connection_id
36
+ #
37
+ attr_accessor :name
38
+ #
39
+ attr_accessor :result_range
40
+ #
41
+ attr_accessor :preserve_formatting
42
+ #
43
+ attr_accessor :adjust_column_width
44
+
45
+ # Attribute mapping from ruby-style variable name to JSON key.
46
+ def self.attribute_map
47
+ {
48
+ :'connection_id' => :'ConnectionId',
49
+ :'name' => :'Name',
50
+ :'result_range' => :'ResultRange',
51
+ :'preserve_formatting' => :'PreserveFormatting',
52
+ :'adjust_column_width' => :'AdjustColumnWidth'
53
+ }
54
+ end
55
+
56
+ # Attribute type mapping.
57
+ def self.swagger_types
58
+ {
59
+ :'connection_id' => :'Integer',
60
+ :'name' => :'String',
61
+ :'result_range' => :'Range',
62
+ :'preserve_formatting' => :'BOOLEAN',
63
+ :'adjust_column_width' => :'BOOLEAN'
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?(:'ConnectionId')
76
+ self.connection_id = attributes[:'ConnectionId']
77
+ end
78
+ if attributes.has_key?(:'Name')
79
+ self.name = attributes[:'Name']
80
+ end
81
+ if attributes.has_key?(:'ResultRange')
82
+ self.result_range = attributes[:'ResultRange']
83
+ end
84
+ if attributes.has_key?(:'PreserveFormatting')
85
+ self.preserve_formatting = attributes[:'PreserveFormatting']
86
+ end
87
+ if attributes.has_key?(:'AdjustColumnWidth')
88
+ self.adjust_column_width = attributes[:'AdjustColumnWidth']
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 @connection_id.nil?
98
+ invalid_properties.push("invalid value for 'connection_id', connection_id cannot be nil.")
99
+ end
100
+ if @name.nil?
101
+ invalid_properties.push("invalid value for 'name', name cannot be nil.")
102
+ end
103
+ if @result_range.nil?
104
+ invalid_properties.push("invalid value for 'result_range', result_range cannot be nil.")
105
+ end
106
+ if @preserve_formatting.nil?
107
+ invalid_properties.push("invalid value for 'preserve_formatting', preserve_formatting cannot be nil.")
108
+ end
109
+ if @adjust_column_width.nil?
110
+ invalid_properties.push("invalid value for 'adjust_column_width', adjust_column_width 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 @connection_id.nil?
120
+ return false if @name.nil?
121
+ return false if @result_range.nil?
122
+ return false if @preserve_formatting.nil?
123
+ return false if @adjust_column_width.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
+ connection_id == o.connection_id &&
133
+ name == o.name &&
134
+ result_range == o.result_range &&
135
+ preserve_formatting == o.preserve_formatting &&
136
+ adjust_column_width == o.adjust_column_width
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
+ [ connection_id , name , result_range , preserve_formatting , adjust_column_width ].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,222 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="RangeSortRequestrb.cs">
4
+ Copyright (c) 2023 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 RangeSortRequest
34
+ #
35
+ attr_accessor :data_sorter
36
+ #
37
+ attr_accessor :cell_area
38
+
39
+ # Attribute mapping from ruby-style variable name to JSON key.
40
+ def self.attribute_map
41
+ {
42
+ :'data_sorter' => :'DataSorter',
43
+ :'cell_area' => :'CellArea'
44
+ }
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.swagger_types
49
+ {
50
+ :'data_sorter' => :'DataSorter',
51
+ :'cell_area' => :'Range'
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?(:'DataSorter')
64
+ self.data_sorter = attributes[:'DataSorter']
65
+ end
66
+ if attributes.has_key?(:'CellArea')
67
+ self.cell_area = attributes[:'CellArea']
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 @data_sorter.nil?
77
+ invalid_properties.push("invalid value for 'data_sorter', data_sorter cannot be nil.")
78
+ end
79
+ if @cell_area.nil?
80
+ invalid_properties.push("invalid value for 'cell_area', cell_area 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 @data_sorter.nil?
90
+ return false if @cell_area.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
+ data_sorter == o.data_sorter &&
100
+ cell_area == o.cell_area
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
+ [ data_sorter , cell_area ].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
@@ -1,6 +1,6 @@
1
1
  =begin
2
2
  --------------------------------------------------------------------------------------------------------------------
3
- <copyright company="Aspose" file="BarcodeResponserb.cs">
3
+ <copyright company="Aspose" file="RenderingFontrb.cs">
4
4
  Copyright (c) 2023 Aspose.Cells Cloud
5
5
  </copyright>
6
6
  <summary>
@@ -30,33 +30,37 @@ require 'date'
30
30
 
31
31
  module AsposeCellsCloud
32
32
 
33
- class BarcodeResponse
34
- #Gets or sets barcode data.
35
- attr_accessor :barcode_value
36
- #Gets or sets type of the barcode.
37
- attr_accessor :barcode_type
38
- #Gets or sets region with barcode.
39
- attr_accessor :region
40
- #Gets or sets checksum of barcode.
41
- attr_accessor :checksum
33
+ class RenderingFont
34
+ #
35
+ attr_accessor :name
36
+ #
37
+ attr_accessor :size
38
+ #
39
+ attr_accessor :bold
40
+ #
41
+ attr_accessor :italic
42
+ #
43
+ attr_accessor :color
42
44
 
43
45
  # Attribute mapping from ruby-style variable name to JSON key.
44
46
  def self.attribute_map
45
47
  {
46
- :'barcode_value' => :'BarcodeValue',
47
- :'barcode_type' => :'BarcodeType',
48
- :'region' => :'Region',
49
- :'checksum' => :'Checksum'
48
+ :'name' => :'Name',
49
+ :'size' => :'Size',
50
+ :'bold' => :'Bold',
51
+ :'italic' => :'Italic',
52
+ :'color' => :'Color'
50
53
  }
51
54
  end
52
55
 
53
56
  # Attribute type mapping.
54
57
  def self.swagger_types
55
58
  {
56
- :'barcode_value' => :'String',
57
- :'barcode_type' => :'String',
58
- :'region' => :'Array<Point>',
59
- :'checksum' => :'String'
59
+ :'name' => :'String',
60
+ :'size' => :'Float',
61
+ :'bold' => :'BOOLEAN',
62
+ :'italic' => :'BOOLEAN',
63
+ :'color' => :'Color'
60
64
  }
61
65
  end
62
66
 
@@ -68,17 +72,20 @@ module AsposeCellsCloud
68
72
  # convert string to symbol for hash key
69
73
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
70
74
 
71
- if attributes.has_key?(:'BarcodeValue')
72
- self.barcode_value = attributes[:'BarcodeValue']
75
+ if attributes.has_key?(:'Name')
76
+ self.name = attributes[:'Name']
73
77
  end
74
- if attributes.has_key?(:'BarcodeType')
75
- self.barcode_type = attributes[:'BarcodeType']
78
+ if attributes.has_key?(:'Size')
79
+ self.size = attributes[:'Size']
76
80
  end
77
- if attributes.has_key?(:'Region')
78
- self.region = attributes[:'Region']
81
+ if attributes.has_key?(:'Bold')
82
+ self.bold = attributes[:'Bold']
79
83
  end
80
- if attributes.has_key?(:'Checksum')
81
- self.checksum = attributes[:'Checksum']
84
+ if attributes.has_key?(:'Italic')
85
+ self.italic = attributes[:'Italic']
86
+ end
87
+ if attributes.has_key?(:'Color')
88
+ self.color = attributes[:'Color']
82
89
  end
83
90
 
84
91
  end
@@ -87,17 +94,20 @@ module AsposeCellsCloud
87
94
  # @return Array for valid properies with the reasons
88
95
  def list_invalid_properties
89
96
  invalid_properties = Array.new
90
- if @barcode_value.nil?
91
- invalid_properties.push("invalid value for 'barcode_value', barcode_value cannot be nil.")
97
+ if @name.nil?
98
+ invalid_properties.push("invalid value for 'name', name cannot be nil.")
99
+ end
100
+ if @size.nil?
101
+ invalid_properties.push("invalid value for 'size', size cannot be nil.")
92
102
  end
93
- if @barcode_type.nil?
94
- invalid_properties.push("invalid value for 'barcode_type', barcode_type cannot be nil.")
103
+ if @bold.nil?
104
+ invalid_properties.push("invalid value for 'bold', bold cannot be nil.")
95
105
  end
96
- if @region.nil?
97
- invalid_properties.push("invalid value for 'region', region cannot be nil.")
106
+ if @italic.nil?
107
+ invalid_properties.push("invalid value for 'italic', italic cannot be nil.")
98
108
  end
99
- if @checksum.nil?
100
- invalid_properties.push("invalid value for 'checksum', checksum cannot be nil.")
109
+ if @color.nil?
110
+ invalid_properties.push("invalid value for 'color', color cannot be nil.")
101
111
  end
102
112
 
103
113
  return invalid_properties
@@ -106,10 +116,11 @@ module AsposeCellsCloud
106
116
  # Check to see if the all the properties in the model are valid
107
117
  # @return true if the model is valid
108
118
  def valid?
109
- return false if @barcode_value.nil?
110
- return false if @barcode_type.nil?
111
- return false if @region.nil?
112
- return false if @checksum.nil?
119
+ return false if @name.nil?
120
+ return false if @size.nil?
121
+ return false if @bold.nil?
122
+ return false if @italic.nil?
123
+ return false if @color.nil?
113
124
  return true
114
125
  end
115
126
 
@@ -118,10 +129,11 @@ module AsposeCellsCloud
118
129
  def ==(o)
119
130
  return true if self.equal?(o)
120
131
  self.class == o.class &&
121
- barcode_value == o.barcode_value &&
122
- barcode_type == o.barcode_type &&
123
- region == o.region &&
124
- checksum == o.checksum
132
+ name == o.name &&
133
+ size == o.size &&
134
+ bold == o.bold &&
135
+ italic == o.italic &&
136
+ color == o.color
125
137
  std_dev == o.std_dev
126
138
  end
127
139
 
@@ -134,7 +146,7 @@ module AsposeCellsCloud
134
146
  # Calculates hash code according to all attributes.
135
147
  # @return [Fixnum] Hash code
136
148
  def hash
137
- [ barcode_value , barcode_type , region , checksum ].hash
149
+ [ name , size , bold , italic , color ].hash
138
150
  end
139
151
 
140
152
  # Builds the object from hash