aspose_slides_cloud 20.6.0 → 20.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose_slides_cloud.rb +1 -0
  3. data/lib/aspose_slides_cloud/api/slides_api.rb +196 -4
  4. data/lib/aspose_slides_cloud/api/slides_api_requests.rb +78 -0
  5. data/lib/aspose_slides_cloud/api_client.rb +6 -3
  6. data/lib/aspose_slides_cloud/models/add_layout_slide.rb +20 -8
  7. data/lib/aspose_slides_cloud/models/add_master_slide.rb +20 -8
  8. data/lib/aspose_slides_cloud/models/add_shape.rb +20 -8
  9. data/lib/aspose_slides_cloud/models/add_slide.rb +20 -8
  10. data/lib/aspose_slides_cloud/models/api_info.rb +20 -8
  11. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +20 -8
  12. data/lib/aspose_slides_cloud/models/audio_frame.rb +20 -8
  13. data/lib/aspose_slides_cloud/models/axes.rb +20 -8
  14. data/lib/aspose_slides_cloud/models/axis.rb +20 -8
  15. data/lib/aspose_slides_cloud/models/base64_input_file.rb +20 -8
  16. data/lib/aspose_slides_cloud/models/blur_effect.rb +20 -8
  17. data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +22 -8
  18. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +20 -8
  19. data/lib/aspose_slides_cloud/models/bubble_series.rb +22 -8
  20. data/lib/aspose_slides_cloud/models/chart.rb +20 -8
  21. data/lib/aspose_slides_cloud/models/chart_category.rb +20 -8
  22. data/lib/aspose_slides_cloud/models/chart_title.rb +20 -8
  23. data/lib/aspose_slides_cloud/models/chart_wall.rb +20 -8
  24. data/lib/aspose_slides_cloud/models/color_scheme.rb +20 -8
  25. data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +20 -8
  26. data/lib/aspose_slides_cloud/models/connector.rb +20 -8
  27. data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +20 -8
  28. data/lib/aspose_slides_cloud/models/disc_usage.rb +20 -8
  29. data/lib/aspose_slides_cloud/models/document.rb +20 -8
  30. data/lib/aspose_slides_cloud/models/document_properties.rb +20 -8
  31. data/lib/aspose_slides_cloud/models/document_property.rb +20 -8
  32. data/lib/aspose_slides_cloud/models/document_replace_result.rb +20 -8
  33. data/lib/aspose_slides_cloud/models/effect.rb +20 -8
  34. data/lib/aspose_slides_cloud/models/effect_format.rb +20 -8
  35. data/lib/aspose_slides_cloud/models/entity_exists.rb +212 -0
  36. data/lib/aspose_slides_cloud/models/error.rb +20 -8
  37. data/lib/aspose_slides_cloud/models/error_details.rb +20 -8
  38. data/lib/aspose_slides_cloud/models/export_options.rb +20 -8
  39. data/lib/aspose_slides_cloud/models/file_version.rb +20 -8
  40. data/lib/aspose_slides_cloud/models/file_versions.rb +20 -8
  41. data/lib/aspose_slides_cloud/models/files_list.rb +20 -8
  42. data/lib/aspose_slides_cloud/models/files_upload_result.rb +20 -8
  43. data/lib/aspose_slides_cloud/models/fill_format.rb +20 -8
  44. data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +20 -8
  45. data/lib/aspose_slides_cloud/models/font_scheme.rb +20 -8
  46. data/lib/aspose_slides_cloud/models/font_set.rb +20 -8
  47. data/lib/aspose_slides_cloud/models/format_scheme.rb +20 -8
  48. data/lib/aspose_slides_cloud/models/geometry_shape.rb +20 -8
  49. data/lib/aspose_slides_cloud/models/glow_effect.rb +20 -8
  50. data/lib/aspose_slides_cloud/models/gradient_fill.rb +20 -8
  51. data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +20 -8
  52. data/lib/aspose_slides_cloud/models/graphical_object.rb +20 -8
  53. data/lib/aspose_slides_cloud/models/group_shape.rb +20 -8
  54. data/lib/aspose_slides_cloud/models/html_export_options.rb +20 -8
  55. data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +20 -8
  56. data/lib/aspose_slides_cloud/models/image.rb +20 -8
  57. data/lib/aspose_slides_cloud/models/image_export_options.rb +20 -8
  58. data/lib/aspose_slides_cloud/models/images.rb +20 -8
  59. data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +20 -8
  60. data/lib/aspose_slides_cloud/models/input.rb +20 -8
  61. data/lib/aspose_slides_cloud/models/input_file.rb +20 -8
  62. data/lib/aspose_slides_cloud/models/interactive_sequence.rb +20 -8
  63. data/lib/aspose_slides_cloud/models/layout_slide.rb +20 -8
  64. data/lib/aspose_slides_cloud/models/layout_slides.rb +20 -8
  65. data/lib/aspose_slides_cloud/models/legend.rb +20 -8
  66. data/lib/aspose_slides_cloud/models/line_format.rb +20 -8
  67. data/lib/aspose_slides_cloud/models/master_slide.rb +20 -8
  68. data/lib/aspose_slides_cloud/models/master_slides.rb +20 -8
  69. data/lib/aspose_slides_cloud/models/merge.rb +20 -8
  70. data/lib/aspose_slides_cloud/models/merging_source.rb +20 -8
  71. data/lib/aspose_slides_cloud/models/no_fill.rb +20 -8
  72. data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +20 -8
  73. data/lib/aspose_slides_cloud/models/notes_slide.rb +20 -8
  74. data/lib/aspose_slides_cloud/models/object_exist.rb +20 -8
  75. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +20 -8
  76. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +20 -8
  77. data/lib/aspose_slides_cloud/models/one_value_series.rb +22 -8
  78. data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +20 -8
  79. data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +20 -8
  80. data/lib/aspose_slides_cloud/models/output_file.rb +20 -8
  81. data/lib/aspose_slides_cloud/models/paragraph.rb +21 -9
  82. data/lib/aspose_slides_cloud/models/paragraphs.rb +20 -8
  83. data/lib/aspose_slides_cloud/models/path_input_file.rb +20 -8
  84. data/lib/aspose_slides_cloud/models/path_output_file.rb +20 -8
  85. data/lib/aspose_slides_cloud/models/pattern_fill.rb +20 -8
  86. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +20 -8
  87. data/lib/aspose_slides_cloud/models/picture_fill.rb +20 -8
  88. data/lib/aspose_slides_cloud/models/picture_frame.rb +20 -8
  89. data/lib/aspose_slides_cloud/models/pipeline.rb +20 -8
  90. data/lib/aspose_slides_cloud/models/placeholder.rb +20 -8
  91. data/lib/aspose_slides_cloud/models/placeholders.rb +20 -8
  92. data/lib/aspose_slides_cloud/models/plot_area.rb +20 -8
  93. data/lib/aspose_slides_cloud/models/portion.rb +20 -8
  94. data/lib/aspose_slides_cloud/models/portions.rb +28 -16
  95. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +20 -8
  96. data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +20 -8
  97. data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +20 -8
  98. data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +20 -8
  99. data/lib/aspose_slides_cloud/models/reflection_effect.rb +20 -8
  100. data/lib/aspose_slides_cloud/models/remove_shape.rb +20 -8
  101. data/lib/aspose_slides_cloud/models/remove_slide.rb +20 -8
  102. data/lib/aspose_slides_cloud/models/reorder_slide.rb +20 -8
  103. data/lib/aspose_slides_cloud/models/replace_text.rb +20 -8
  104. data/lib/aspose_slides_cloud/models/request_input_file.rb +20 -8
  105. data/lib/aspose_slides_cloud/models/reset_slide.rb +20 -8
  106. data/lib/aspose_slides_cloud/models/resource_base.rb +20 -8
  107. data/lib/aspose_slides_cloud/models/resource_uri.rb +20 -8
  108. data/lib/aspose_slides_cloud/models/resource_uri_element.rb +20 -8
  109. data/lib/aspose_slides_cloud/models/response_output_file.rb +20 -8
  110. data/lib/aspose_slides_cloud/models/save.rb +20 -8
  111. data/lib/aspose_slides_cloud/models/save_shape.rb +20 -8
  112. data/lib/aspose_slides_cloud/models/save_slide.rb +20 -8
  113. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +20 -8
  114. data/lib/aspose_slides_cloud/models/scatter_series.rb +22 -8
  115. data/lib/aspose_slides_cloud/models/series.rb +45 -12
  116. data/lib/aspose_slides_cloud/models/series_marker.rb +20 -8
  117. data/lib/aspose_slides_cloud/models/shape.rb +20 -8
  118. data/lib/aspose_slides_cloud/models/shape_base.rb +20 -8
  119. data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +20 -8
  120. data/lib/aspose_slides_cloud/models/shapes.rb +20 -8
  121. data/lib/aspose_slides_cloud/models/slide.rb +20 -8
  122. data/lib/aspose_slides_cloud/models/slide_animation.rb +20 -8
  123. data/lib/aspose_slides_cloud/models/slide_background.rb +20 -8
  124. data/lib/aspose_slides_cloud/models/slide_comment.rb +20 -8
  125. data/lib/aspose_slides_cloud/models/slide_comments.rb +20 -8
  126. data/lib/aspose_slides_cloud/models/slide_replace_result.rb +20 -8
  127. data/lib/aspose_slides_cloud/models/slides.rb +20 -8
  128. data/lib/aspose_slides_cloud/models/smart_art.rb +20 -8
  129. data/lib/aspose_slides_cloud/models/smart_art_node.rb +20 -8
  130. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +20 -8
  131. data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +20 -8
  132. data/lib/aspose_slides_cloud/models/solid_fill.rb +20 -8
  133. data/lib/aspose_slides_cloud/models/split_document_result.rb +20 -8
  134. data/lib/aspose_slides_cloud/models/storage_exist.rb +20 -8
  135. data/lib/aspose_slides_cloud/models/storage_file.rb +20 -8
  136. data/lib/aspose_slides_cloud/models/svg_export_options.rb +20 -8
  137. data/lib/aspose_slides_cloud/models/swf_export_options.rb +20 -8
  138. data/lib/aspose_slides_cloud/models/table.rb +20 -8
  139. data/lib/aspose_slides_cloud/models/table_cell.rb +20 -8
  140. data/lib/aspose_slides_cloud/models/table_column.rb +20 -8
  141. data/lib/aspose_slides_cloud/models/table_row.rb +20 -8
  142. data/lib/aspose_slides_cloud/models/task.rb +20 -8
  143. data/lib/aspose_slides_cloud/models/text_item.rb +20 -8
  144. data/lib/aspose_slides_cloud/models/text_items.rb +20 -8
  145. data/lib/aspose_slides_cloud/models/theme.rb +20 -8
  146. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +20 -8
  147. data/lib/aspose_slides_cloud/models/update_background.rb +20 -8
  148. data/lib/aspose_slides_cloud/models/update_shape.rb +20 -8
  149. data/lib/aspose_slides_cloud/models/video_frame.rb +20 -8
  150. data/lib/aspose_slides_cloud/models/view_properties.rb +20 -8
  151. data/lib/aspose_slides_cloud/models/waterfall_series.rb +22 -8
  152. data/lib/aspose_slides_cloud/models/xps_export_options.rb +20 -8
  153. data/lib/aspose_slides_cloud/version.rb +1 -1
  154. data/spec/api/slides_api_spec.rb +626 -1
  155. data/spec/extra/extra_spec.rb +111 -9
  156. data/spec/spec_utils.rb +8 -1
  157. data/testRules.json +29 -4
  158. metadata +3 -2
@@ -127,15 +127,27 @@ module AsposeSlidesCloud
127
127
  def build_from_hash(attributes)
128
128
  return nil unless attributes.is_a?(Hash)
129
129
  self.class.swagger_types.each_pair do |key, type|
130
- if type =~ /\AArray<(.*)>/i
131
- # check to ensure the input is an array given that the the attribute
132
- # is documented as an array but the input is not
133
- if attributes[self.class.attribute_map[key]].is_a?(Array)
134
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
130
+ mapKey = self.class.attribute_map[key]
131
+ if !mapKey.nil?
132
+ val = attributes[mapKey]
133
+ if val.nil?
134
+ mapKeyString = mapKey.to_s
135
+ mapKeyString[0] = mapKeyString[0].downcase
136
+ mapKey = mapKeyString.to_sym
137
+ val = attributes[mapKey]
135
138
  end
136
- elsif !attributes[self.class.attribute_map[key]].nil?
137
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
138
- end # or else data not found in attributes(hash), not an issue as the data can be optional
139
+ if !val.nil?
140
+ if type =~ /\AArray<(.*)>/i
141
+ # check to ensure the input is an array given that the the attribute
142
+ # is documented as an array but the input is not
143
+ if val.is_a?(Array)
144
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
145
+ end
146
+ else
147
+ self.send("#{key}=", _deserialize(type, val))
148
+ end
149
+ end
150
+ end
139
151
  end
140
152
 
141
153
  self
@@ -104,15 +104,27 @@ module AsposeSlidesCloud
104
104
  def build_from_hash(attributes)
105
105
  return nil unless attributes.is_a?(Hash)
106
106
  self.class.swagger_types.each_pair do |key, type|
107
- if type =~ /\AArray<(.*)>/i
108
- # check to ensure the input is an array given that the the attribute
109
- # is documented as an array but the input is not
110
- if attributes[self.class.attribute_map[key]].is_a?(Array)
111
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
107
+ mapKey = self.class.attribute_map[key]
108
+ if !mapKey.nil?
109
+ val = attributes[mapKey]
110
+ if val.nil?
111
+ mapKeyString = mapKey.to_s
112
+ mapKeyString[0] = mapKeyString[0].downcase
113
+ mapKey = mapKeyString.to_sym
114
+ val = attributes[mapKey]
112
115
  end
113
- elsif !attributes[self.class.attribute_map[key]].nil?
114
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
115
- end # or else data not found in attributes(hash), not an issue as the data can be optional
116
+ if !val.nil?
117
+ if type =~ /\AArray<(.*)>/i
118
+ # check to ensure the input is an array given that the the attribute
119
+ # is documented as an array but the input is not
120
+ if val.is_a?(Array)
121
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
122
+ end
123
+ else
124
+ self.send("#{key}=", _deserialize(type, val))
125
+ end
126
+ end
127
+ end
116
128
  end
117
129
 
118
130
  self
@@ -118,15 +118,27 @@ module AsposeSlidesCloud
118
118
  def build_from_hash(attributes)
119
119
  return nil unless attributes.is_a?(Hash)
120
120
  self.class.swagger_types.each_pair do |key, type|
121
- if type =~ /\AArray<(.*)>/i
122
- # check to ensure the input is an array given that the the attribute
123
- # is documented as an array but the input is not
124
- if attributes[self.class.attribute_map[key]].is_a?(Array)
125
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
121
+ mapKey = self.class.attribute_map[key]
122
+ if !mapKey.nil?
123
+ val = attributes[mapKey]
124
+ if val.nil?
125
+ mapKeyString = mapKey.to_s
126
+ mapKeyString[0] = mapKeyString[0].downcase
127
+ mapKey = mapKeyString.to_sym
128
+ val = attributes[mapKey]
126
129
  end
127
- elsif !attributes[self.class.attribute_map[key]].nil?
128
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
129
- end # or else data not found in attributes(hash), not an issue as the data can be optional
130
+ if !val.nil?
131
+ if type =~ /\AArray<(.*)>/i
132
+ # check to ensure the input is an array given that the the attribute
133
+ # is documented as an array but the input is not
134
+ if val.is_a?(Array)
135
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
136
+ end
137
+ else
138
+ self.send("#{key}=", _deserialize(type, val))
139
+ end
140
+ end
141
+ end
130
142
  end
131
143
 
132
144
  self
@@ -146,15 +146,27 @@ module AsposeSlidesCloud
146
146
  def build_from_hash(attributes)
147
147
  return nil unless attributes.is_a?(Hash)
148
148
  self.class.swagger_types.each_pair do |key, type|
149
- if type =~ /\AArray<(.*)>/i
150
- # check to ensure the input is an array given that the the attribute
151
- # is documented as an array but the input is not
152
- if attributes[self.class.attribute_map[key]].is_a?(Array)
153
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
149
+ mapKey = self.class.attribute_map[key]
150
+ if !mapKey.nil?
151
+ val = attributes[mapKey]
152
+ if val.nil?
153
+ mapKeyString = mapKey.to_s
154
+ mapKeyString[0] = mapKeyString[0].downcase
155
+ mapKey = mapKeyString.to_sym
156
+ val = attributes[mapKey]
154
157
  end
155
- elsif !attributes[self.class.attribute_map[key]].nil?
156
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
157
- end # or else data not found in attributes(hash), not an issue as the data can be optional
158
+ if !val.nil?
159
+ if type =~ /\AArray<(.*)>/i
160
+ # check to ensure the input is an array given that the the attribute
161
+ # is documented as an array but the input is not
162
+ if val.is_a?(Array)
163
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
164
+ end
165
+ else
166
+ self.send("#{key}=", _deserialize(type, val))
167
+ end
168
+ end
169
+ end
158
170
  end
159
171
 
160
172
  self
@@ -321,15 +321,27 @@ module AsposeSlidesCloud
321
321
  def build_from_hash(attributes)
322
322
  return nil unless attributes.is_a?(Hash)
323
323
  self.class.swagger_types.each_pair do |key, type|
324
- if type =~ /\AArray<(.*)>/i
325
- # check to ensure the input is an array given that the the attribute
326
- # is documented as an array but the input is not
327
- if attributes[self.class.attribute_map[key]].is_a?(Array)
328
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
324
+ mapKey = self.class.attribute_map[key]
325
+ if !mapKey.nil?
326
+ val = attributes[mapKey]
327
+ if val.nil?
328
+ mapKeyString = mapKey.to_s
329
+ mapKeyString[0] = mapKeyString[0].downcase
330
+ mapKey = mapKeyString.to_sym
331
+ val = attributes[mapKey]
329
332
  end
330
- elsif !attributes[self.class.attribute_map[key]].nil?
331
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
332
- end # or else data not found in attributes(hash), not an issue as the data can be optional
333
+ if !val.nil?
334
+ if type =~ /\AArray<(.*)>/i
335
+ # check to ensure the input is an array given that the the attribute
336
+ # is documented as an array but the input is not
337
+ if val.is_a?(Array)
338
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
339
+ end
340
+ else
341
+ self.send("#{key}=", _deserialize(type, val))
342
+ end
343
+ end
344
+ end
333
345
  end
334
346
 
335
347
  self
@@ -157,15 +157,27 @@ module AsposeSlidesCloud
157
157
  def build_from_hash(attributes)
158
158
  return nil unless attributes.is_a?(Hash)
159
159
  self.class.swagger_types.each_pair do |key, type|
160
- if type =~ /\AArray<(.*)>/i
161
- # check to ensure the input is an array given that the the attribute
162
- # is documented as an array but the input is not
163
- if attributes[self.class.attribute_map[key]].is_a?(Array)
164
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
160
+ mapKey = self.class.attribute_map[key]
161
+ if !mapKey.nil?
162
+ val = attributes[mapKey]
163
+ if val.nil?
164
+ mapKeyString = mapKey.to_s
165
+ mapKeyString[0] = mapKeyString[0].downcase
166
+ mapKey = mapKeyString.to_sym
167
+ val = attributes[mapKey]
165
168
  end
166
- elsif !attributes[self.class.attribute_map[key]].nil?
167
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
168
- end # or else data not found in attributes(hash), not an issue as the data can be optional
169
+ if !val.nil?
170
+ if type =~ /\AArray<(.*)>/i
171
+ # check to ensure the input is an array given that the the attribute
172
+ # is documented as an array but the input is not
173
+ if val.is_a?(Array)
174
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
175
+ end
176
+ else
177
+ self.send("#{key}=", _deserialize(type, val))
178
+ end
179
+ end
180
+ end
169
181
  end
170
182
 
171
183
  self
@@ -155,15 +155,27 @@ module AsposeSlidesCloud
155
155
  def build_from_hash(attributes)
156
156
  return nil unless attributes.is_a?(Hash)
157
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) })
158
+ mapKey = self.class.attribute_map[key]
159
+ if !mapKey.nil?
160
+ val = attributes[mapKey]
161
+ if val.nil?
162
+ mapKeyString = mapKey.to_s
163
+ mapKeyString[0] = mapKeyString[0].downcase
164
+ mapKey = mapKeyString.to_sym
165
+ val = attributes[mapKey]
163
166
  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
+ if !val.nil?
168
+ if type =~ /\AArray<(.*)>/i
169
+ # check to ensure the input is an array given that the the attribute
170
+ # is documented as an array but the input is not
171
+ if val.is_a?(Array)
172
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
173
+ end
174
+ else
175
+ self.send("#{key}=", _deserialize(type, val))
176
+ end
177
+ end
178
+ end
167
179
  end
168
180
 
169
181
  self
@@ -442,15 +442,27 @@ module AsposeSlidesCloud
442
442
  def build_from_hash(attributes)
443
443
  return nil unless attributes.is_a?(Hash)
444
444
  self.class.swagger_types.each_pair do |key, type|
445
- if type =~ /\AArray<(.*)>/i
446
- # check to ensure the input is an array given that the the attribute
447
- # is documented as an array but the input is not
448
- if attributes[self.class.attribute_map[key]].is_a?(Array)
449
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
445
+ mapKey = self.class.attribute_map[key]
446
+ if !mapKey.nil?
447
+ val = attributes[mapKey]
448
+ if val.nil?
449
+ mapKeyString = mapKey.to_s
450
+ mapKeyString[0] = mapKeyString[0].downcase
451
+ mapKey = mapKeyString.to_sym
452
+ val = attributes[mapKey]
450
453
  end
451
- elsif !attributes[self.class.attribute_map[key]].nil?
452
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
453
- end # or else data not found in attributes(hash), not an issue as the data can be optional
454
+ if !val.nil?
455
+ if type =~ /\AArray<(.*)>/i
456
+ # check to ensure the input is an array given that the the attribute
457
+ # is documented as an array but the input is not
458
+ if val.is_a?(Array)
459
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
460
+ end
461
+ else
462
+ self.send("#{key}=", _deserialize(type, val))
463
+ end
464
+ end
465
+ end
454
466
  end
455
467
 
456
468
  self
@@ -266,15 +266,27 @@ module AsposeSlidesCloud
266
266
  def build_from_hash(attributes)
267
267
  return nil unless attributes.is_a?(Hash)
268
268
  self.class.swagger_types.each_pair do |key, type|
269
- if type =~ /\AArray<(.*)>/i
270
- # check to ensure the input is an array given that the the attribute
271
- # is documented as an array but the input is not
272
- if attributes[self.class.attribute_map[key]].is_a?(Array)
273
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
269
+ mapKey = self.class.attribute_map[key]
270
+ if !mapKey.nil?
271
+ val = attributes[mapKey]
272
+ if val.nil?
273
+ mapKeyString = mapKey.to_s
274
+ mapKeyString[0] = mapKeyString[0].downcase
275
+ mapKey = mapKeyString.to_sym
276
+ val = attributes[mapKey]
274
277
  end
275
- elsif !attributes[self.class.attribute_map[key]].nil?
276
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
277
- end # or else data not found in attributes(hash), not an issue as the data can be optional
278
+ if !val.nil?
279
+ if type =~ /\AArray<(.*)>/i
280
+ # check to ensure the input is an array given that the the attribute
281
+ # is documented as an array but the input is not
282
+ if val.is_a?(Array)
283
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
284
+ end
285
+ else
286
+ self.send("#{key}=", _deserialize(type, val))
287
+ end
288
+ end
289
+ end
278
290
  end
279
291
 
280
292
  self
@@ -237,6 +237,8 @@ module AsposeSlidesCloud
237
237
 
238
238
  if attributes.has_key?(:'DataPointType')
239
239
  self.data_point_type = attributes[:'DataPointType']
240
+ else
241
+ self.data_point_type = "OneValue"
240
242
  end
241
243
 
242
244
  if attributes.has_key?(:'DataPoints')
@@ -337,15 +339,27 @@ module AsposeSlidesCloud
337
339
  def build_from_hash(attributes)
338
340
  return nil unless attributes.is_a?(Hash)
339
341
  self.class.swagger_types.each_pair do |key, type|
340
- if type =~ /\AArray<(.*)>/i
341
- # check to ensure the input is an array given that the the attribute
342
- # is documented as an array but the input is not
343
- if attributes[self.class.attribute_map[key]].is_a?(Array)
344
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
342
+ mapKey = self.class.attribute_map[key]
343
+ if !mapKey.nil?
344
+ val = attributes[mapKey]
345
+ if val.nil?
346
+ mapKeyString = mapKey.to_s
347
+ mapKeyString[0] = mapKeyString[0].downcase
348
+ mapKey = mapKeyString.to_sym
349
+ val = attributes[mapKey]
350
+ end
351
+ if !val.nil?
352
+ if type =~ /\AArray<(.*)>/i
353
+ # check to ensure the input is an array given that the the attribute
354
+ # is documented as an array but the input is not
355
+ if val.is_a?(Array)
356
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
357
+ end
358
+ else
359
+ self.send("#{key}=", _deserialize(type, val))
360
+ end
345
361
  end
346
- elsif !attributes[self.class.attribute_map[key]].nil?
347
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
348
- end # or else data not found in attributes(hash), not an issue as the data can be optional
362
+ end
349
363
  end
350
364
 
351
365
  self
@@ -141,15 +141,27 @@ module AsposeSlidesCloud
141
141
  def build_from_hash(attributes)
142
142
  return nil unless attributes.is_a?(Hash)
143
143
  self.class.swagger_types.each_pair do |key, type|
144
- if type =~ /\AArray<(.*)>/i
145
- # check to ensure the input is an array given that the the attribute
146
- # is documented as an array but the input is not
147
- if attributes[self.class.attribute_map[key]].is_a?(Array)
148
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
144
+ mapKey = self.class.attribute_map[key]
145
+ if !mapKey.nil?
146
+ val = attributes[mapKey]
147
+ if val.nil?
148
+ mapKeyString = mapKey.to_s
149
+ mapKeyString[0] = mapKeyString[0].downcase
150
+ mapKey = mapKeyString.to_sym
151
+ val = attributes[mapKey]
149
152
  end
150
- elsif !attributes[self.class.attribute_map[key]].nil?
151
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
152
- end # or else data not found in attributes(hash), not an issue as the data can be optional
153
+ if !val.nil?
154
+ if type =~ /\AArray<(.*)>/i
155
+ # check to ensure the input is an array given that the the attribute
156
+ # is documented as an array but the input is not
157
+ if val.is_a?(Array)
158
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
159
+ end
160
+ else
161
+ self.send("#{key}=", _deserialize(type, val))
162
+ end
163
+ end
164
+ end
153
165
  end
154
166
 
155
167
  self
@@ -21,5 +21,5 @@ SOFTWARE.
21
21
  =end
22
22
 
23
23
  module AsposeSlidesCloud
24
- VERSION = '20.6.0'
24
+ VERSION = '20.7.0'
25
25
  end
@@ -324,6 +324,203 @@ describe 'SlidesApi' do
324
324
  end
325
325
  end
326
326
 
327
+ # unit tests for delete_chart_series
328
+ # Delete a series from a chart.
329
+ # @param name Document name.
330
+ # @param slide_index Slide index.
331
+ # @param shape_index Shape index (must be a chart).
332
+ # @param series_index Series index.
333
+ # @param [Hash] opts the optional parameters
334
+ # @option opts [String] :password Document password.
335
+ # @option opts [String] :folder Document folder.
336
+ # @option opts [String] :storage Document storage.
337
+ # @return [Chart]
338
+ describe 'delete_chart_series test' do
339
+ it 'should work' do
340
+ requestParam = AsposeSlidesCloud::DeleteChartSeriesRequest.new
341
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeleteChartSeries', 'String')
342
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeleteChartSeries', 'Integer')
343
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeleteChartSeries', 'Integer')
344
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'DeleteChartSeries', 'Integer')
345
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeleteChartSeries', 'String')
346
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeleteChartSeries', 'String')
347
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeleteChartSeries', 'String')
348
+ AsposeSlidesCloud::SpecUtils.initialize('DeleteChartSeries', nil, nil)
349
+ o, c, _h = AsposeSlidesCloud::SpecUtils.api.delete_chart_series_with_http_info(requestParam)
350
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeleteChartSeries', nil, nil)
351
+ expect(c).to eq(code)
352
+ expect(o).not_to be_nil
353
+ end
354
+
355
+ it 'invalid name' do
356
+ requestParam = AsposeSlidesCloud::DeleteChartSeriesRequest.new
357
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeleteChartSeries', 'String')
358
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeleteChartSeries', 'Integer')
359
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeleteChartSeries', 'Integer')
360
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'DeleteChartSeries', 'Integer')
361
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeleteChartSeries', 'String')
362
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeleteChartSeries', 'String')
363
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeleteChartSeries', 'String')
364
+ requestParam.name = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'DeleteChartSeries', requestParam.name, 'String')
365
+ AsposeSlidesCloud::SpecUtils.initialize('DeleteChartSeries', 'name', requestParam.name)
366
+ begin
367
+ AsposeSlidesCloud::SpecUtils.api.delete_chart_series_with_http_info(requestParam)
368
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeleteChartSeries', 'name')
369
+ fail "An exception expected"
370
+ end
371
+ rescue AsposeSlidesCloud::ApiError => e
372
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeleteChartSeries', 'name', requestParam.name)
373
+ expect(e.code).to eq(code)
374
+ expect(e.response_body).to include(message)
375
+ rescue
376
+ end
377
+ end
378
+
379
+ it 'invalid slide_index' do
380
+ requestParam = AsposeSlidesCloud::DeleteChartSeriesRequest.new
381
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeleteChartSeries', 'String')
382
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeleteChartSeries', 'Integer')
383
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeleteChartSeries', 'Integer')
384
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'DeleteChartSeries', 'Integer')
385
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeleteChartSeries', 'String')
386
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeleteChartSeries', 'String')
387
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeleteChartSeries', 'String')
388
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('slideIndex', 'DeleteChartSeries', requestParam.slide_index, 'Integer')
389
+ AsposeSlidesCloud::SpecUtils.initialize('DeleteChartSeries', 'slideIndex', requestParam.slide_index)
390
+ begin
391
+ AsposeSlidesCloud::SpecUtils.api.delete_chart_series_with_http_info(requestParam)
392
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeleteChartSeries', 'slideIndex')
393
+ fail "An exception expected"
394
+ end
395
+ rescue AsposeSlidesCloud::ApiError => e
396
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeleteChartSeries', 'slideIndex', requestParam.slide_index)
397
+ expect(e.code).to eq(code)
398
+ expect(e.response_body).to include(message)
399
+ rescue
400
+ end
401
+ end
402
+
403
+ it 'invalid shape_index' do
404
+ requestParam = AsposeSlidesCloud::DeleteChartSeriesRequest.new
405
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeleteChartSeries', 'String')
406
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeleteChartSeries', 'Integer')
407
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeleteChartSeries', 'Integer')
408
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'DeleteChartSeries', 'Integer')
409
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeleteChartSeries', 'String')
410
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeleteChartSeries', 'String')
411
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeleteChartSeries', 'String')
412
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('shapeIndex', 'DeleteChartSeries', requestParam.shape_index, 'Integer')
413
+ AsposeSlidesCloud::SpecUtils.initialize('DeleteChartSeries', 'shapeIndex', requestParam.shape_index)
414
+ begin
415
+ AsposeSlidesCloud::SpecUtils.api.delete_chart_series_with_http_info(requestParam)
416
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeleteChartSeries', 'shapeIndex')
417
+ fail "An exception expected"
418
+ end
419
+ rescue AsposeSlidesCloud::ApiError => e
420
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeleteChartSeries', 'shapeIndex', requestParam.shape_index)
421
+ expect(e.code).to eq(code)
422
+ expect(e.response_body).to include(message)
423
+ rescue
424
+ end
425
+ end
426
+
427
+ it 'invalid series_index' do
428
+ requestParam = AsposeSlidesCloud::DeleteChartSeriesRequest.new
429
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeleteChartSeries', 'String')
430
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeleteChartSeries', 'Integer')
431
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeleteChartSeries', 'Integer')
432
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'DeleteChartSeries', 'Integer')
433
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeleteChartSeries', 'String')
434
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeleteChartSeries', 'String')
435
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeleteChartSeries', 'String')
436
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('seriesIndex', 'DeleteChartSeries', requestParam.series_index, 'Integer')
437
+ AsposeSlidesCloud::SpecUtils.initialize('DeleteChartSeries', 'seriesIndex', requestParam.series_index)
438
+ begin
439
+ AsposeSlidesCloud::SpecUtils.api.delete_chart_series_with_http_info(requestParam)
440
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeleteChartSeries', 'seriesIndex')
441
+ fail "An exception expected"
442
+ end
443
+ rescue AsposeSlidesCloud::ApiError => e
444
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeleteChartSeries', 'seriesIndex', requestParam.series_index)
445
+ expect(e.code).to eq(code)
446
+ expect(e.response_body).to include(message)
447
+ rescue
448
+ end
449
+ end
450
+
451
+ it 'invalid password' do
452
+ requestParam = AsposeSlidesCloud::DeleteChartSeriesRequest.new
453
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeleteChartSeries', 'String')
454
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeleteChartSeries', 'Integer')
455
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeleteChartSeries', 'Integer')
456
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'DeleteChartSeries', 'Integer')
457
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeleteChartSeries', 'String')
458
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeleteChartSeries', 'String')
459
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeleteChartSeries', 'String')
460
+ requestParam.password = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'DeleteChartSeries', requestParam.password, 'String')
461
+ AsposeSlidesCloud::SpecUtils.initialize('DeleteChartSeries', 'password', requestParam.password)
462
+ begin
463
+ AsposeSlidesCloud::SpecUtils.api.delete_chart_series_with_http_info(requestParam)
464
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeleteChartSeries', 'password')
465
+ fail "An exception expected"
466
+ end
467
+ rescue AsposeSlidesCloud::ApiError => e
468
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeleteChartSeries', 'password', requestParam.password)
469
+ expect(e.code).to eq(code)
470
+ expect(e.response_body).to include(message)
471
+ rescue
472
+ end
473
+ end
474
+
475
+ it 'invalid folder' do
476
+ requestParam = AsposeSlidesCloud::DeleteChartSeriesRequest.new
477
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeleteChartSeries', 'String')
478
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeleteChartSeries', 'Integer')
479
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeleteChartSeries', 'Integer')
480
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'DeleteChartSeries', 'Integer')
481
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeleteChartSeries', 'String')
482
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeleteChartSeries', 'String')
483
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeleteChartSeries', 'String')
484
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'DeleteChartSeries', requestParam.folder, 'String')
485
+ AsposeSlidesCloud::SpecUtils.initialize('DeleteChartSeries', 'folder', requestParam.folder)
486
+ begin
487
+ AsposeSlidesCloud::SpecUtils.api.delete_chart_series_with_http_info(requestParam)
488
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeleteChartSeries', 'folder')
489
+ fail "An exception expected"
490
+ end
491
+ rescue AsposeSlidesCloud::ApiError => e
492
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeleteChartSeries', 'folder', requestParam.folder)
493
+ expect(e.code).to eq(code)
494
+ expect(e.response_body).to include(message)
495
+ rescue
496
+ end
497
+ end
498
+
499
+ it 'invalid storage' do
500
+ requestParam = AsposeSlidesCloud::DeleteChartSeriesRequest.new
501
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeleteChartSeries', 'String')
502
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeleteChartSeries', 'Integer')
503
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeleteChartSeries', 'Integer')
504
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'DeleteChartSeries', 'Integer')
505
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeleteChartSeries', 'String')
506
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeleteChartSeries', 'String')
507
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeleteChartSeries', 'String')
508
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'DeleteChartSeries', requestParam.storage, 'String')
509
+ AsposeSlidesCloud::SpecUtils.initialize('DeleteChartSeries', 'storage', requestParam.storage)
510
+ begin
511
+ AsposeSlidesCloud::SpecUtils.api.delete_chart_series_with_http_info(requestParam)
512
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeleteChartSeries', 'storage')
513
+ fail "An exception expected"
514
+ end
515
+ rescue AsposeSlidesCloud::ApiError => e
516
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeleteChartSeries', 'storage', requestParam.storage)
517
+ expect(e.code).to eq(code)
518
+ expect(e.response_body).to include(message)
519
+ rescue
520
+ end
521
+ end
522
+ end
523
+
327
524
  # unit tests for delete_file
328
525
  # Delete file
329
526
  # @param [Hash] opts the optional parameters
@@ -8733,8 +8930,8 @@ describe 'SlidesApi' do
8733
8930
  # Read slide animation effects.
8734
8931
  # @param name Document name.
8735
8932
  # @param slide_index Slide index.
8736
- # @param shape_index Shape index. If specified, only effects related to that shape are returned.
8737
8933
  # @param [Hash] opts the optional parameters
8934
+ # @option opts [Integer] :shape_index Shape index. If specified, only effects related to that shape are returned.
8738
8935
  # @option opts [String] :password Document password.
8739
8936
  # @option opts [String] :folder Document folder.
8740
8937
  # @option opts [String] :storage Document storage.
@@ -15562,6 +15759,203 @@ describe 'SlidesApi' do
15562
15759
  end
15563
15760
  end
15564
15761
 
15762
+ # unit tests for post_chart_series
15763
+ # Add a new series to a chart.
15764
+ # @param name Document name.
15765
+ # @param slide_index Slide index.
15766
+ # @param shape_index Shape index (must be a chart).
15767
+ # @param [Hash] opts the optional parameters
15768
+ # @option opts [Series] :series Series DTO.
15769
+ # @option opts [String] :password Document password.
15770
+ # @option opts [String] :folder Document folder.
15771
+ # @option opts [String] :storage Document storage.
15772
+ # @return [Chart]
15773
+ describe 'post_chart_series test' do
15774
+ it 'should work' do
15775
+ requestParam = AsposeSlidesCloud::PostChartSeriesRequest.new
15776
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartSeries', 'String')
15777
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartSeries', 'Integer')
15778
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartSeries', 'Integer')
15779
+ requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PostChartSeries', 'Series')
15780
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartSeries', 'String')
15781
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartSeries', 'String')
15782
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartSeries', 'String')
15783
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartSeries', nil, nil)
15784
+ o, c, _h = AsposeSlidesCloud::SpecUtils.api.post_chart_series_with_http_info(requestParam)
15785
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartSeries', nil, nil)
15786
+ expect(c).to eq(code)
15787
+ expect(o).not_to be_nil
15788
+ end
15789
+
15790
+ it 'invalid name' do
15791
+ requestParam = AsposeSlidesCloud::PostChartSeriesRequest.new
15792
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartSeries', 'String')
15793
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartSeries', 'Integer')
15794
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartSeries', 'Integer')
15795
+ requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PostChartSeries', 'Series')
15796
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartSeries', 'String')
15797
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartSeries', 'String')
15798
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartSeries', 'String')
15799
+ requestParam.name = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'PostChartSeries', requestParam.name, 'String')
15800
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartSeries', 'name', requestParam.name)
15801
+ begin
15802
+ AsposeSlidesCloud::SpecUtils.api.post_chart_series_with_http_info(requestParam)
15803
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartSeries', 'name')
15804
+ fail "An exception expected"
15805
+ end
15806
+ rescue AsposeSlidesCloud::ApiError => e
15807
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartSeries', 'name', requestParam.name)
15808
+ expect(e.code).to eq(code)
15809
+ expect(e.response_body).to include(message)
15810
+ rescue
15811
+ end
15812
+ end
15813
+
15814
+ it 'invalid slide_index' do
15815
+ requestParam = AsposeSlidesCloud::PostChartSeriesRequest.new
15816
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartSeries', 'String')
15817
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartSeries', 'Integer')
15818
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartSeries', 'Integer')
15819
+ requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PostChartSeries', 'Series')
15820
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartSeries', 'String')
15821
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartSeries', 'String')
15822
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartSeries', 'String')
15823
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('slideIndex', 'PostChartSeries', requestParam.slide_index, 'Integer')
15824
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartSeries', 'slideIndex', requestParam.slide_index)
15825
+ begin
15826
+ AsposeSlidesCloud::SpecUtils.api.post_chart_series_with_http_info(requestParam)
15827
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartSeries', 'slideIndex')
15828
+ fail "An exception expected"
15829
+ end
15830
+ rescue AsposeSlidesCloud::ApiError => e
15831
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartSeries', 'slideIndex', requestParam.slide_index)
15832
+ expect(e.code).to eq(code)
15833
+ expect(e.response_body).to include(message)
15834
+ rescue
15835
+ end
15836
+ end
15837
+
15838
+ it 'invalid shape_index' do
15839
+ requestParam = AsposeSlidesCloud::PostChartSeriesRequest.new
15840
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartSeries', 'String')
15841
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartSeries', 'Integer')
15842
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartSeries', 'Integer')
15843
+ requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PostChartSeries', 'Series')
15844
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartSeries', 'String')
15845
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartSeries', 'String')
15846
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartSeries', 'String')
15847
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('shapeIndex', 'PostChartSeries', requestParam.shape_index, 'Integer')
15848
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartSeries', 'shapeIndex', requestParam.shape_index)
15849
+ begin
15850
+ AsposeSlidesCloud::SpecUtils.api.post_chart_series_with_http_info(requestParam)
15851
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartSeries', 'shapeIndex')
15852
+ fail "An exception expected"
15853
+ end
15854
+ rescue AsposeSlidesCloud::ApiError => e
15855
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartSeries', 'shapeIndex', requestParam.shape_index)
15856
+ expect(e.code).to eq(code)
15857
+ expect(e.response_body).to include(message)
15858
+ rescue
15859
+ end
15860
+ end
15861
+
15862
+ it 'invalid series' do
15863
+ requestParam = AsposeSlidesCloud::PostChartSeriesRequest.new
15864
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartSeries', 'String')
15865
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartSeries', 'Integer')
15866
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartSeries', 'Integer')
15867
+ requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PostChartSeries', 'Series')
15868
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartSeries', 'String')
15869
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartSeries', 'String')
15870
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartSeries', 'String')
15871
+ requestParam.series = AsposeSlidesCloud::SpecUtils.invalidize_param_value('series', 'PostChartSeries', requestParam.series, 'Series')
15872
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartSeries', 'series', requestParam.series)
15873
+ begin
15874
+ AsposeSlidesCloud::SpecUtils.api.post_chart_series_with_http_info(requestParam)
15875
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartSeries', 'series')
15876
+ fail "An exception expected"
15877
+ end
15878
+ rescue AsposeSlidesCloud::ApiError => e
15879
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartSeries', 'series', requestParam.series)
15880
+ expect(e.code).to eq(code)
15881
+ expect(e.response_body).to include(message)
15882
+ rescue
15883
+ end
15884
+ end
15885
+
15886
+ it 'invalid password' do
15887
+ requestParam = AsposeSlidesCloud::PostChartSeriesRequest.new
15888
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartSeries', 'String')
15889
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartSeries', 'Integer')
15890
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartSeries', 'Integer')
15891
+ requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PostChartSeries', 'Series')
15892
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartSeries', 'String')
15893
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartSeries', 'String')
15894
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartSeries', 'String')
15895
+ requestParam.password = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'PostChartSeries', requestParam.password, 'String')
15896
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartSeries', 'password', requestParam.password)
15897
+ begin
15898
+ AsposeSlidesCloud::SpecUtils.api.post_chart_series_with_http_info(requestParam)
15899
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartSeries', 'password')
15900
+ fail "An exception expected"
15901
+ end
15902
+ rescue AsposeSlidesCloud::ApiError => e
15903
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartSeries', 'password', requestParam.password)
15904
+ expect(e.code).to eq(code)
15905
+ expect(e.response_body).to include(message)
15906
+ rescue
15907
+ end
15908
+ end
15909
+
15910
+ it 'invalid folder' do
15911
+ requestParam = AsposeSlidesCloud::PostChartSeriesRequest.new
15912
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartSeries', 'String')
15913
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartSeries', 'Integer')
15914
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartSeries', 'Integer')
15915
+ requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PostChartSeries', 'Series')
15916
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartSeries', 'String')
15917
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartSeries', 'String')
15918
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartSeries', 'String')
15919
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'PostChartSeries', requestParam.folder, 'String')
15920
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartSeries', 'folder', requestParam.folder)
15921
+ begin
15922
+ AsposeSlidesCloud::SpecUtils.api.post_chart_series_with_http_info(requestParam)
15923
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartSeries', 'folder')
15924
+ fail "An exception expected"
15925
+ end
15926
+ rescue AsposeSlidesCloud::ApiError => e
15927
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartSeries', 'folder', requestParam.folder)
15928
+ expect(e.code).to eq(code)
15929
+ expect(e.response_body).to include(message)
15930
+ rescue
15931
+ end
15932
+ end
15933
+
15934
+ it 'invalid storage' do
15935
+ requestParam = AsposeSlidesCloud::PostChartSeriesRequest.new
15936
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartSeries', 'String')
15937
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartSeries', 'Integer')
15938
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartSeries', 'Integer')
15939
+ requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PostChartSeries', 'Series')
15940
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartSeries', 'String')
15941
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartSeries', 'String')
15942
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartSeries', 'String')
15943
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'PostChartSeries', requestParam.storage, 'String')
15944
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartSeries', 'storage', requestParam.storage)
15945
+ begin
15946
+ AsposeSlidesCloud::SpecUtils.api.post_chart_series_with_http_info(requestParam)
15947
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartSeries', 'storage')
15948
+ fail "An exception expected"
15949
+ end
15950
+ rescue AsposeSlidesCloud::ApiError => e
15951
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartSeries', 'storage', requestParam.storage)
15952
+ expect(e.code).to eq(code)
15953
+ expect(e.response_body).to include(message)
15954
+ rescue
15955
+ end
15956
+ end
15957
+ end
15958
+
15565
15959
  # unit tests for post_copy_layout_slide_from_source_presentation
15566
15960
  # Copy layoutSlide from source presentation.
15567
15961
  # @param name Document name.
@@ -22156,6 +22550,237 @@ describe 'SlidesApi' do
22156
22550
  end
22157
22551
  end
22158
22552
 
22553
+ # unit tests for put_chart_series
22554
+ # Update a series in a chart.
22555
+ # @param name Document name.
22556
+ # @param slide_index Slide index.
22557
+ # @param shape_index Shape index (must be a chart).
22558
+ # @param series_index Series index.
22559
+ # @param [Hash] opts the optional parameters
22560
+ # @option opts [Series] :series Series DTO.
22561
+ # @option opts [String] :password Document password.
22562
+ # @option opts [String] :folder Document folder.
22563
+ # @option opts [String] :storage Document storage.
22564
+ # @return [Chart]
22565
+ describe 'put_chart_series test' do
22566
+ it 'should work' do
22567
+ requestParam = AsposeSlidesCloud::PutChartSeriesRequest.new
22568
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartSeries', 'String')
22569
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartSeries', 'Integer')
22570
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartSeries', 'Integer')
22571
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PutChartSeries', 'Integer')
22572
+ requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PutChartSeries', 'Series')
22573
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartSeries', 'String')
22574
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartSeries', 'String')
22575
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartSeries', 'String')
22576
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartSeries', nil, nil)
22577
+ o, c, _h = AsposeSlidesCloud::SpecUtils.api.put_chart_series_with_http_info(requestParam)
22578
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartSeries', nil, nil)
22579
+ expect(c).to eq(code)
22580
+ expect(o).not_to be_nil
22581
+ end
22582
+
22583
+ it 'invalid name' do
22584
+ requestParam = AsposeSlidesCloud::PutChartSeriesRequest.new
22585
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartSeries', 'String')
22586
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartSeries', 'Integer')
22587
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartSeries', 'Integer')
22588
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PutChartSeries', 'Integer')
22589
+ requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PutChartSeries', 'Series')
22590
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartSeries', 'String')
22591
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartSeries', 'String')
22592
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartSeries', 'String')
22593
+ requestParam.name = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'PutChartSeries', requestParam.name, 'String')
22594
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartSeries', 'name', requestParam.name)
22595
+ begin
22596
+ AsposeSlidesCloud::SpecUtils.api.put_chart_series_with_http_info(requestParam)
22597
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PutChartSeries', 'name')
22598
+ fail "An exception expected"
22599
+ end
22600
+ rescue AsposeSlidesCloud::ApiError => e
22601
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartSeries', 'name', requestParam.name)
22602
+ expect(e.code).to eq(code)
22603
+ expect(e.response_body).to include(message)
22604
+ rescue
22605
+ end
22606
+ end
22607
+
22608
+ it 'invalid slide_index' do
22609
+ requestParam = AsposeSlidesCloud::PutChartSeriesRequest.new
22610
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartSeries', 'String')
22611
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartSeries', 'Integer')
22612
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartSeries', 'Integer')
22613
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PutChartSeries', 'Integer')
22614
+ requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PutChartSeries', 'Series')
22615
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartSeries', 'String')
22616
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartSeries', 'String')
22617
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartSeries', 'String')
22618
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('slideIndex', 'PutChartSeries', requestParam.slide_index, 'Integer')
22619
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartSeries', 'slideIndex', requestParam.slide_index)
22620
+ begin
22621
+ AsposeSlidesCloud::SpecUtils.api.put_chart_series_with_http_info(requestParam)
22622
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PutChartSeries', 'slideIndex')
22623
+ fail "An exception expected"
22624
+ end
22625
+ rescue AsposeSlidesCloud::ApiError => e
22626
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartSeries', 'slideIndex', requestParam.slide_index)
22627
+ expect(e.code).to eq(code)
22628
+ expect(e.response_body).to include(message)
22629
+ rescue
22630
+ end
22631
+ end
22632
+
22633
+ it 'invalid shape_index' do
22634
+ requestParam = AsposeSlidesCloud::PutChartSeriesRequest.new
22635
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartSeries', 'String')
22636
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartSeries', 'Integer')
22637
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartSeries', 'Integer')
22638
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PutChartSeries', 'Integer')
22639
+ requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PutChartSeries', 'Series')
22640
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartSeries', 'String')
22641
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartSeries', 'String')
22642
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartSeries', 'String')
22643
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('shapeIndex', 'PutChartSeries', requestParam.shape_index, 'Integer')
22644
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartSeries', 'shapeIndex', requestParam.shape_index)
22645
+ begin
22646
+ AsposeSlidesCloud::SpecUtils.api.put_chart_series_with_http_info(requestParam)
22647
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PutChartSeries', 'shapeIndex')
22648
+ fail "An exception expected"
22649
+ end
22650
+ rescue AsposeSlidesCloud::ApiError => e
22651
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartSeries', 'shapeIndex', requestParam.shape_index)
22652
+ expect(e.code).to eq(code)
22653
+ expect(e.response_body).to include(message)
22654
+ rescue
22655
+ end
22656
+ end
22657
+
22658
+ it 'invalid series_index' do
22659
+ requestParam = AsposeSlidesCloud::PutChartSeriesRequest.new
22660
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartSeries', 'String')
22661
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartSeries', 'Integer')
22662
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartSeries', 'Integer')
22663
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PutChartSeries', 'Integer')
22664
+ requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PutChartSeries', 'Series')
22665
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartSeries', 'String')
22666
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartSeries', 'String')
22667
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartSeries', 'String')
22668
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('seriesIndex', 'PutChartSeries', requestParam.series_index, 'Integer')
22669
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartSeries', 'seriesIndex', requestParam.series_index)
22670
+ begin
22671
+ AsposeSlidesCloud::SpecUtils.api.put_chart_series_with_http_info(requestParam)
22672
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PutChartSeries', 'seriesIndex')
22673
+ fail "An exception expected"
22674
+ end
22675
+ rescue AsposeSlidesCloud::ApiError => e
22676
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartSeries', 'seriesIndex', requestParam.series_index)
22677
+ expect(e.code).to eq(code)
22678
+ expect(e.response_body).to include(message)
22679
+ rescue
22680
+ end
22681
+ end
22682
+
22683
+ it 'invalid series' do
22684
+ requestParam = AsposeSlidesCloud::PutChartSeriesRequest.new
22685
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartSeries', 'String')
22686
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartSeries', 'Integer')
22687
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartSeries', 'Integer')
22688
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PutChartSeries', 'Integer')
22689
+ requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PutChartSeries', 'Series')
22690
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartSeries', 'String')
22691
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartSeries', 'String')
22692
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartSeries', 'String')
22693
+ requestParam.series = AsposeSlidesCloud::SpecUtils.invalidize_param_value('series', 'PutChartSeries', requestParam.series, 'Series')
22694
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartSeries', 'series', requestParam.series)
22695
+ begin
22696
+ AsposeSlidesCloud::SpecUtils.api.put_chart_series_with_http_info(requestParam)
22697
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PutChartSeries', 'series')
22698
+ fail "An exception expected"
22699
+ end
22700
+ rescue AsposeSlidesCloud::ApiError => e
22701
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartSeries', 'series', requestParam.series)
22702
+ expect(e.code).to eq(code)
22703
+ expect(e.response_body).to include(message)
22704
+ rescue
22705
+ end
22706
+ end
22707
+
22708
+ it 'invalid password' do
22709
+ requestParam = AsposeSlidesCloud::PutChartSeriesRequest.new
22710
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartSeries', 'String')
22711
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartSeries', 'Integer')
22712
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartSeries', 'Integer')
22713
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PutChartSeries', 'Integer')
22714
+ requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PutChartSeries', 'Series')
22715
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartSeries', 'String')
22716
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartSeries', 'String')
22717
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartSeries', 'String')
22718
+ requestParam.password = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'PutChartSeries', requestParam.password, 'String')
22719
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartSeries', 'password', requestParam.password)
22720
+ begin
22721
+ AsposeSlidesCloud::SpecUtils.api.put_chart_series_with_http_info(requestParam)
22722
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PutChartSeries', 'password')
22723
+ fail "An exception expected"
22724
+ end
22725
+ rescue AsposeSlidesCloud::ApiError => e
22726
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartSeries', 'password', requestParam.password)
22727
+ expect(e.code).to eq(code)
22728
+ expect(e.response_body).to include(message)
22729
+ rescue
22730
+ end
22731
+ end
22732
+
22733
+ it 'invalid folder' do
22734
+ requestParam = AsposeSlidesCloud::PutChartSeriesRequest.new
22735
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartSeries', 'String')
22736
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartSeries', 'Integer')
22737
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartSeries', 'Integer')
22738
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PutChartSeries', 'Integer')
22739
+ requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PutChartSeries', 'Series')
22740
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartSeries', 'String')
22741
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartSeries', 'String')
22742
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartSeries', 'String')
22743
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'PutChartSeries', requestParam.folder, 'String')
22744
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartSeries', 'folder', requestParam.folder)
22745
+ begin
22746
+ AsposeSlidesCloud::SpecUtils.api.put_chart_series_with_http_info(requestParam)
22747
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PutChartSeries', 'folder')
22748
+ fail "An exception expected"
22749
+ end
22750
+ rescue AsposeSlidesCloud::ApiError => e
22751
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartSeries', 'folder', requestParam.folder)
22752
+ expect(e.code).to eq(code)
22753
+ expect(e.response_body).to include(message)
22754
+ rescue
22755
+ end
22756
+ end
22757
+
22758
+ it 'invalid storage' do
22759
+ requestParam = AsposeSlidesCloud::PutChartSeriesRequest.new
22760
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartSeries', 'String')
22761
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartSeries', 'Integer')
22762
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartSeries', 'Integer')
22763
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PutChartSeries', 'Integer')
22764
+ requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PutChartSeries', 'Series')
22765
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartSeries', 'String')
22766
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartSeries', 'String')
22767
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartSeries', 'String')
22768
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'PutChartSeries', requestParam.storage, 'String')
22769
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartSeries', 'storage', requestParam.storage)
22770
+ begin
22771
+ AsposeSlidesCloud::SpecUtils.api.put_chart_series_with_http_info(requestParam)
22772
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PutChartSeries', 'storage')
22773
+ fail "An exception expected"
22774
+ end
22775
+ rescue AsposeSlidesCloud::ApiError => e
22776
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartSeries', 'storage', requestParam.storage)
22777
+ expect(e.code).to eq(code)
22778
+ expect(e.response_body).to include(message)
22779
+ rescue
22780
+ end
22781
+ end
22782
+ end
22783
+
22159
22784
  # unit tests for put_layout_slide
22160
22785
  # Update a layoutSlide.
22161
22786
  # @param name Document name.