aspose_diagram_cloud 18.10.3 → 19.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/{aspose_diagram_cloud.gemspec → AsposeDiagramCloud.gemspec} +5 -5
  3. data/README.md +94 -124
  4. data/docs/{FileFormatRequest.md → CreateNewResponse.md} +2 -2
  5. data/docs/DiagramApi.md +241 -0
  6. data/docs/DiagramSaveOptions.md +10 -0
  7. data/docs/DiscUsage.md +9 -0
  8. data/docs/Error.md +11 -0
  9. data/docs/ErrorDetails.md +9 -0
  10. data/docs/FileVersion.md +14 -0
  11. data/docs/FileVersions.md +8 -0
  12. data/docs/FilesList.md +8 -0
  13. data/docs/FilesUploadResult.md +9 -0
  14. data/docs/HTMLSaveOptions.md +19 -0
  15. data/docs/ImageSaveOptions.md +29 -0
  16. data/docs/ModifyResponse.md +9 -0
  17. data/docs/OAuthApi.md +3 -3
  18. data/docs/ObjectExist.md +9 -0
  19. data/docs/PageSize.md +8 -0
  20. data/docs/PdfDigitalSignatureDetails.md +11 -0
  21. data/docs/PdfEncryptionDetails.md +11 -0
  22. data/docs/PdfSaveOptions.md +25 -0
  23. data/docs/PointF.md +10 -0
  24. data/docs/RectangleF.md +18 -0
  25. data/docs/RenderingSaveOptions.md +13 -0
  26. data/docs/SVGSaveOptions.md +18 -0
  27. data/docs/SWFSaveOptions.md +13 -0
  28. data/docs/SaaSposeResponse.md +0 -2
  29. data/docs/SaveAsResponse.md +10 -0
  30. data/docs/SaveOptionsModel.md +9 -0
  31. data/docs/SaveOptionsRequest.md +10 -0
  32. data/docs/StorageApi.md +799 -0
  33. data/docs/StorageExist.md +8 -0
  34. data/docs/StorageFile.md +12 -0
  35. data/docs/{SharpModel.md → UploadResponse.md} +2 -2
  36. data/docs/XAMLSaveOptions.md +12 -0
  37. data/docs/XPSSaveOptions.md +13 -0
  38. data/lib/AsposeDiagramCloud.rb +74 -0
  39. data/lib/AsposeDiagramCloud/api/diagram_api.rb +300 -0
  40. data/lib/{aspose_diagram_cloud → AsposeDiagramCloud}/api/o_auth_api.rb +3 -3
  41. data/lib/AsposeDiagramCloud/api/storage_api.rb +905 -0
  42. data/lib/{aspose_diagram_cloud → AsposeDiagramCloud}/api_client.rb +7 -4
  43. data/lib/{aspose_diagram_cloud → AsposeDiagramCloud}/api_error.rb +2 -2
  44. data/lib/{aspose_diagram_cloud → AsposeDiagramCloud}/configuration.rb +4 -18
  45. data/lib/{aspose_diagram_cloud → AsposeDiagramCloud}/models/access_token_response.rb +2 -2
  46. data/lib/{aspose_diagram_cloud/models/file_format_request.rb → AsposeDiagramCloud/models/create_new_response.rb} +10 -10
  47. data/lib/AsposeDiagramCloud/models/diagram_save_options.rb +244 -0
  48. data/lib/{aspose_diagram_cloud/models/link.rb → AsposeDiagramCloud/models/disc_usage.rb} +29 -35
  49. data/lib/AsposeDiagramCloud/models/error.rb +219 -0
  50. data/lib/{aspose_diagram_cloud/models/saa_spose_response.rb → AsposeDiagramCloud/models/error_details.rb} +22 -20
  51. data/lib/AsposeDiagramCloud/models/file_version.rb +264 -0
  52. data/lib/{aspose_diagram_cloud/models/page_model.rb → AsposeDiagramCloud/models/file_versions.rb} +13 -21
  53. data/lib/AsposeDiagramCloud/models/files_list.rb +191 -0
  54. data/lib/AsposeDiagramCloud/models/files_upload_result.rb +203 -0
  55. data/lib/AsposeDiagramCloud/models/html_save_options.rb +330 -0
  56. data/lib/AsposeDiagramCloud/models/image_save_options.rb +492 -0
  57. data/lib/AsposeDiagramCloud/models/modify_response.rb +202 -0
  58. data/lib/{aspose_diagram_cloud/models/diagram_response.rb → AsposeDiagramCloud/models/object_exist.rb} +27 -29
  59. data/lib/AsposeDiagramCloud/models/page_size.rb +221 -0
  60. data/lib/AsposeDiagramCloud/models/pdf_digital_signature_details.rb +248 -0
  61. data/lib/AsposeDiagramCloud/models/pdf_encryption_details.rb +260 -0
  62. data/lib/AsposeDiagramCloud/models/pdf_save_options.rb +408 -0
  63. data/lib/{aspose_diagram_cloud/models/save_result.rb → AsposeDiagramCloud/models/point_f.rb} +37 -24
  64. data/lib/AsposeDiagramCloud/models/rectangle_f.rb +333 -0
  65. data/lib/AsposeDiagramCloud/models/rendering_save_options.rb +276 -0
  66. data/lib/{aspose_diagram_cloud/models/sharp_model.rb → AsposeDiagramCloud/models/saa_spose_response.rb} +5 -14
  67. data/lib/{aspose_diagram_cloud/models/save_response.rb → AsposeDiagramCloud/models/save_as_response.rb} +24 -27
  68. data/lib/AsposeDiagramCloud/models/save_options_model.rb +235 -0
  69. data/lib/{aspose_diagram_cloud/models/diagram_model.rb → AsposeDiagramCloud/models/save_options_request.rb} +19 -12
  70. data/lib/AsposeDiagramCloud/models/storage_exist.rb +194 -0
  71. data/lib/AsposeDiagramCloud/models/storage_file.rb +239 -0
  72. data/lib/AsposeDiagramCloud/models/svg_save_options.rb +321 -0
  73. data/lib/AsposeDiagramCloud/models/swf_save_options.rb +271 -0
  74. data/lib/AsposeDiagramCloud/models/upload_response.rb +188 -0
  75. data/lib/AsposeDiagramCloud/models/xaml_save_options.rb +262 -0
  76. data/lib/AsposeDiagramCloud/models/xps_save_options.rb +271 -0
  77. data/lib/{aspose_diagram_cloud → AsposeDiagramCloud}/version.rb +3 -3
  78. data/spec/api/test_convert_spec.rb +308 -0
  79. data/spec/api_client_spec.rb +2 -2
  80. data/spec/configuration_spec.rb +5 -5
  81. data/spec/spec_helper.rb +10 -6
  82. data/testData/FileUpload.vdx +437 -0
  83. metadata +80 -55
  84. data/docs/DiagramFileApi.md +0 -228
  85. data/docs/DiagramModel.md +0 -9
  86. data/docs/DiagramResponse.md +0 -10
  87. data/docs/Link.md +0 -11
  88. data/docs/PageModel.md +0 -9
  89. data/docs/SaveResponse.md +0 -10
  90. data/docs/SaveResult.md +0 -10
  91. data/lib/aspose_diagram_cloud.rb +0 -51
  92. data/lib/aspose_diagram_cloud/api/diagram_file_api.rb +0 -304
  93. data/spec/api/diagram_file_api_spec.rb +0 -118
  94. data/spec/api/o_auth_api_spec.rb +0 -56
  95. data/spec/models/access_token_response_spec.rb +0 -84
  96. data/spec/models/diagram_model_spec.rb +0 -48
  97. data/spec/models/diagram_response_spec.rb +0 -54
  98. data/spec/models/file_format_request_spec.rb +0 -42
  99. data/spec/models/link_spec.rb +0 -60
  100. data/spec/models/page_model_spec.rb +0 -48
  101. data/spec/models/saa_spose_response_spec.rb +0 -48
  102. data/spec/models/save_response_spec.rb +0 -54
  103. data/spec/models/save_result_spec.rb +0 -54
  104. data/spec/models/sharp_model_spec.rb +0 -42
@@ -1,9 +1,9 @@
1
1
  =begin
2
- #Web API Swagger specification
2
+ #Aspose.Diagram Cloud API Reference
3
3
 
4
4
  #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
5
 
6
- OpenAPI spec version: 1.0
6
+ OpenAPI spec version: 3.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.0-SNAPSHOT
@@ -14,21 +14,17 @@ require 'date'
14
14
 
15
15
  module AsposeDiagramCloud
16
16
 
17
- class SharpModel
18
- attr_accessor :name
19
-
17
+ class SaaSposeResponse
20
18
 
21
19
  # Attribute mapping from ruby-style variable name to JSON key.
22
20
  def self.attribute_map
23
21
  {
24
- :'name' => :'Name'
25
22
  }
26
23
  end
27
24
 
28
25
  # Attribute type mapping.
29
26
  def self.swagger_types
30
27
  {
31
- :'name' => :'String'
32
28
  }
33
29
  end
34
30
 
@@ -40,10 +36,6 @@ module AsposeDiagramCloud
40
36
  # convert string to symbol for hash key
41
37
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
42
38
 
43
- if attributes.has_key?(:'Name')
44
- self.name = attributes[:'Name']
45
- end
46
-
47
39
  end
48
40
 
49
41
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -63,8 +55,7 @@ module AsposeDiagramCloud
63
55
  # @param [Object] Object to be compared
64
56
  def ==(o)
65
57
  return true if self.equal?(o)
66
- self.class == o.class &&
67
- name == o.name
58
+ self.class == o.class
68
59
  end
69
60
 
70
61
  # @see the `==` method
@@ -76,7 +67,7 @@ module AsposeDiagramCloud
76
67
  # Calculates hash code according to all attributes.
77
68
  # @return [Fixnum] Hash code
78
69
  def hash
79
- [name].hash
70
+ [].hash
80
71
  end
81
72
 
82
73
  # Builds the object from hash
@@ -1,9 +1,9 @@
1
1
  =begin
2
- #Web API Swagger specification
2
+ #Aspose.Diagram Cloud API Reference
3
3
 
4
4
  #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
5
 
6
- OpenAPI spec version: 1.0
6
+ OpenAPI spec version: 3.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.0-SNAPSHOT
@@ -14,29 +14,29 @@ require 'date'
14
14
 
15
15
  module AsposeDiagramCloud
16
16
 
17
- class SaveResponse
18
- attr_accessor :status
17
+ class SaveAsResponse
18
+ attr_accessor :source_file
19
19
 
20
- attr_accessor :code
20
+ attr_accessor :saved_file
21
21
 
22
- attr_accessor :save_result
22
+ attr_accessor :additionals
23
23
 
24
24
 
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
26
26
  def self.attribute_map
27
27
  {
28
- :'status' => :'Status',
29
- :'code' => :'Code',
30
- :'save_result' => :'SaveResult'
28
+ :'source_file' => :'SourceFile',
29
+ :'saved_file' => :'SavedFile',
30
+ :'additionals' => :'Additionals'
31
31
  }
32
32
  end
33
33
 
34
34
  # Attribute type mapping.
35
35
  def self.swagger_types
36
36
  {
37
- :'status' => :'String',
38
- :'code' => :'Integer',
39
- :'save_result' => :'SaveResult'
37
+ :'source_file' => :'String',
38
+ :'saved_file' => :'String',
39
+ :'additionals' => :'Array<String>'
40
40
  }
41
41
  end
42
42
 
@@ -48,16 +48,18 @@ module AsposeDiagramCloud
48
48
  # convert string to symbol for hash key
49
49
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
50
50
 
51
- if attributes.has_key?(:'Status')
52
- self.status = attributes[:'Status']
51
+ if attributes.has_key?(:'SourceFile')
52
+ self.source_file = attributes[:'SourceFile']
53
53
  end
54
54
 
55
- if attributes.has_key?(:'Code')
56
- self.code = attributes[:'Code']
55
+ if attributes.has_key?(:'SavedFile')
56
+ self.saved_file = attributes[:'SavedFile']
57
57
  end
58
58
 
59
- if attributes.has_key?(:'SaveResult')
60
- self.save_result = attributes[:'SaveResult']
59
+ if attributes.has_key?(:'Additionals')
60
+ if (value = attributes[:'Additionals']).is_a?(Array)
61
+ self.additionals = value
62
+ end
61
63
  end
62
64
 
63
65
  end
@@ -66,17 +68,12 @@ module AsposeDiagramCloud
66
68
  # @return Array for valid properies with the reasons
67
69
  def list_invalid_properties
68
70
  invalid_properties = Array.new
69
- if @code.nil?
70
- invalid_properties.push("invalid value for 'code', code cannot be nil.")
71
- end
72
-
73
71
  return invalid_properties
74
72
  end
75
73
 
76
74
  # Check to see if the all the properties in the model are valid
77
75
  # @return true if the model is valid
78
76
  def valid?
79
- return false if @code.nil?
80
77
  return true
81
78
  end
82
79
 
@@ -85,9 +82,9 @@ module AsposeDiagramCloud
85
82
  def ==(o)
86
83
  return true if self.equal?(o)
87
84
  self.class == o.class &&
88
- status == o.status &&
89
- code == o.code &&
90
- save_result == o.save_result
85
+ source_file == o.source_file &&
86
+ saved_file == o.saved_file &&
87
+ additionals == o.additionals
91
88
  end
92
89
 
93
90
  # @see the `==` method
@@ -99,7 +96,7 @@ module AsposeDiagramCloud
99
96
  # Calculates hash code according to all attributes.
100
97
  # @return [Fixnum] Hash code
101
98
  def hash
102
- [status, code, save_result].hash
99
+ [source_file, saved_file, additionals].hash
103
100
  end
104
101
 
105
102
  # Builds the object from hash
@@ -0,0 +1,235 @@
1
+ =begin
2
+ #Aspose.Diagram Cloud API Reference
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 3.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module AsposeDiagramCloud
16
+
17
+ class SaveOptionsModel
18
+ attr_accessor :save_format
19
+
20
+ attr_accessor :default_font
21
+
22
+ class EnumAttributeValidator
23
+ attr_reader :datatype
24
+ attr_reader :allowable_values
25
+
26
+ def initialize(datatype, allowable_values)
27
+ @allowable_values = allowable_values.map do |value|
28
+ case datatype.to_s
29
+ when /Integer/i
30
+ value.to_i
31
+ when /Float/i
32
+ value.to_f
33
+ else
34
+ value
35
+ end
36
+ end
37
+ end
38
+
39
+ def valid?(value)
40
+ !value || allowable_values.include?(value)
41
+ end
42
+ end
43
+
44
+ # Attribute mapping from ruby-style variable name to JSON key.
45
+ def self.attribute_map
46
+ {
47
+ :'save_format' => :'SaveFormat',
48
+ :'default_font' => :'DefaultFont'
49
+ }
50
+ end
51
+
52
+ # Attribute type mapping.
53
+ def self.swagger_types
54
+ {
55
+ :'save_format' => :'String',
56
+ :'default_font' => :'String'
57
+ }
58
+ end
59
+
60
+ # Initializes the object
61
+ # @param [Hash] attributes Model attributes in the form of hash
62
+ def initialize(attributes = {})
63
+ return unless attributes.is_a?(Hash)
64
+
65
+ # convert string to symbol for hash key
66
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
67
+
68
+ if attributes.has_key?(:'SaveFormat')
69
+ self.save_format = attributes[:'SaveFormat']
70
+ end
71
+
72
+ if attributes.has_key?(:'DefaultFont')
73
+ self.default_font = attributes[:'DefaultFont']
74
+ end
75
+
76
+ end
77
+
78
+ # Show invalid properties with the reasons. Usually used together with valid?
79
+ # @return Array for valid properies with the reasons
80
+ def list_invalid_properties
81
+ invalid_properties = Array.new
82
+ if @save_format.nil?
83
+ invalid_properties.push("invalid value for 'save_format', save_format cannot be nil.")
84
+ end
85
+
86
+ return invalid_properties
87
+ end
88
+
89
+ # Check to see if the all the properties in the model are valid
90
+ # @return true if the model is valid
91
+ def valid?
92
+ return false if @save_format.nil?
93
+ save_format_validator = EnumAttributeValidator.new('String', ["VDX", "VSX", "VTX", "TIFF", "PNG", "BMP", "EMF", "JPEG", "PDF", "XPS", "GIF", "HTML", "SVG", "SWF", "XAML", "VSDX", "VSTX", "VSSX", "VSDM", "VSSM", "VSTM"])
94
+ return false unless save_format_validator.valid?(@save_format)
95
+ return true
96
+ end
97
+
98
+ # Custom attribute writer method checking allowed values (enum).
99
+ # @param [Object] save_format Object to be assigned
100
+ def save_format=(save_format)
101
+ validator = EnumAttributeValidator.new('String', ["VDX", "VSX", "VTX", "TIFF", "PNG", "BMP", "EMF", "JPEG", "PDF", "XPS", "GIF", "HTML", "SVG", "SWF", "XAML", "VSDX", "VSTX", "VSSX", "VSDM", "VSSM", "VSTM"])
102
+ unless validator.valid?(save_format)
103
+ fail ArgumentError, "invalid value for 'save_format', must be one of #{validator.allowable_values}."
104
+ end
105
+ @save_format = save_format
106
+ end
107
+
108
+ # Checks equality by comparing each attribute.
109
+ # @param [Object] Object to be compared
110
+ def ==(o)
111
+ return true if self.equal?(o)
112
+ self.class == o.class &&
113
+ save_format == o.save_format &&
114
+ default_font == o.default_font
115
+ end
116
+
117
+ # @see the `==` method
118
+ # @param [Object] Object to be compared
119
+ def eql?(o)
120
+ self == o
121
+ end
122
+
123
+ # Calculates hash code according to all attributes.
124
+ # @return [Fixnum] Hash code
125
+ def hash
126
+ [save_format, default_font].hash
127
+ end
128
+
129
+ # Builds the object from hash
130
+ # @param [Hash] attributes Model attributes in the form of hash
131
+ # @return [Object] Returns the model itself
132
+ def build_from_hash(attributes)
133
+ return nil unless attributes.is_a?(Hash)
134
+ self.class.swagger_types.each_pair do |key, type|
135
+ if type =~ /\AArray<(.*)>/i
136
+ # check to ensure the input is an array given that the the attribute
137
+ # is documented as an array but the input is not
138
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
139
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
140
+ end
141
+ elsif !attributes[self.class.attribute_map[key]].nil?
142
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
143
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
144
+ end
145
+
146
+ self
147
+ end
148
+
149
+ # Deserializes the data based on type
150
+ # @param string type Data type
151
+ # @param string value Value to be deserialized
152
+ # @return [Object] Deserialized data
153
+ def _deserialize(type, value)
154
+ case type.to_sym
155
+ when :DateTime
156
+ DateTime.parse(value)
157
+ when :Date
158
+ Date.parse(value)
159
+ when :String
160
+ value.to_s
161
+ when :Integer
162
+ value.to_i
163
+ when :Float
164
+ value.to_f
165
+ when :BOOLEAN
166
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
167
+ true
168
+ else
169
+ false
170
+ end
171
+ when :Object
172
+ # generic object (usually a Hash), return directly
173
+ value
174
+ when /\AArray<(?<inner_type>.+)>\z/
175
+ inner_type = Regexp.last_match[:inner_type]
176
+ value.map { |v| _deserialize(inner_type, v) }
177
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
178
+ k_type = Regexp.last_match[:k_type]
179
+ v_type = Regexp.last_match[:v_type]
180
+ {}.tap do |hash|
181
+ value.each do |k, v|
182
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
183
+ end
184
+ end
185
+ else # model
186
+ temp_model = AsposeDiagramCloud.const_get(type).new
187
+ temp_model.build_from_hash(value)
188
+ end
189
+ end
190
+
191
+ # Returns the string representation of the object
192
+ # @return [String] String presentation of the object
193
+ def to_s
194
+ to_hash.to_s
195
+ end
196
+
197
+ # to_body is an alias to to_hash (backward compatibility)
198
+ # @return [Hash] Returns the object in the form of hash
199
+ def to_body
200
+ to_hash
201
+ end
202
+
203
+ # Returns the object in the form of hash
204
+ # @return [Hash] Returns the object in the form of hash
205
+ def to_hash
206
+ hash = {}
207
+ self.class.attribute_map.each_pair do |attr, param|
208
+ value = self.send(attr)
209
+ next if value.nil?
210
+ hash[param] = _to_hash(value)
211
+ end
212
+ hash
213
+ end
214
+
215
+ # Outputs non-array value in the form of hash
216
+ # For object, use to_hash. Otherwise, just return the value
217
+ # @param [Object] value Any valid value
218
+ # @return [Hash] Returns the value in the form of hash
219
+ def _to_hash(value)
220
+ if value.is_a?(Array)
221
+ value.compact.map{ |v| _to_hash(v) }
222
+ elsif value.is_a?(Hash)
223
+ {}.tap do |hash|
224
+ value.each { |k, v| hash[k] = _to_hash(v) }
225
+ end
226
+ elsif value.respond_to? :to_hash
227
+ value.to_hash
228
+ else
229
+ value
230
+ end
231
+ end
232
+
233
+ end
234
+
235
+ end
@@ -1,9 +1,9 @@
1
1
  =begin
2
- #Web API Swagger specification
2
+ #Aspose.Diagram Cloud API Reference
3
3
 
4
4
  #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
5
 
6
- OpenAPI spec version: 1.0
6
+ OpenAPI spec version: 3.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.0-SNAPSHOT
@@ -14,17 +14,20 @@ require 'date'
14
14
 
15
15
  module AsposeDiagramCloud
16
16
 
17
- class DiagramModel
17
+ class SaveOptionsRequest
18
18
  attr_accessor :file_name
19
19
 
20
- attr_accessor :pages
20
+ attr_accessor :folder
21
+
22
+ attr_accessor :save_options
21
23
 
22
24
 
23
25
  # Attribute mapping from ruby-style variable name to JSON key.
24
26
  def self.attribute_map
25
27
  {
26
28
  :'file_name' => :'FileName',
27
- :'pages' => :'Pages'
29
+ :'folder' => :'Folder',
30
+ :'save_options' => :'SaveOptions'
28
31
  }
29
32
  end
30
33
 
@@ -32,7 +35,8 @@ module AsposeDiagramCloud
32
35
  def self.swagger_types
33
36
  {
34
37
  :'file_name' => :'String',
35
- :'pages' => :'Array<PageModel>'
38
+ :'folder' => :'String',
39
+ :'save_options' => :'SaveOptionsModel'
36
40
  }
37
41
  end
38
42
 
@@ -48,10 +52,12 @@ module AsposeDiagramCloud
48
52
  self.file_name = attributes[:'FileName']
49
53
  end
50
54
 
51
- if attributes.has_key?(:'Pages')
52
- if (value = attributes[:'Pages']).is_a?(Array)
53
- self.pages = value
54
- end
55
+ if attributes.has_key?(:'Folder')
56
+ self.folder = attributes[:'Folder']
57
+ end
58
+
59
+ if attributes.has_key?(:'SaveOptions')
60
+ self.save_options = attributes[:'SaveOptions']
55
61
  end
56
62
 
57
63
  end
@@ -75,7 +81,8 @@ module AsposeDiagramCloud
75
81
  return true if self.equal?(o)
76
82
  self.class == o.class &&
77
83
  file_name == o.file_name &&
78
- pages == o.pages
84
+ folder == o.folder &&
85
+ save_options == o.save_options
79
86
  end
80
87
 
81
88
  # @see the `==` method
@@ -87,7 +94,7 @@ module AsposeDiagramCloud
87
94
  # Calculates hash code according to all attributes.
88
95
  # @return [Fixnum] Hash code
89
96
  def hash
90
- [file_name, pages].hash
97
+ [file_name, folder, save_options].hash
91
98
  end
92
99
 
93
100
  # Builds the object from hash