aspose_slides_cloud 20.7.0 → 20.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (159) hide show
  1. checksums.yaml +4 -4
  2. data/TestData/ChartTest.pptx +0 -0
  3. data/lib/aspose_slides_cloud.rb +5 -3
  4. data/lib/aspose_slides_cloud/api/slides_api.rb +407 -0
  5. data/lib/aspose_slides_cloud/api/slides_api_requests.rb +165 -0
  6. data/lib/aspose_slides_cloud/api_client.rb +1 -2
  7. data/lib/aspose_slides_cloud/models/add_layout_slide.rb +11 -40
  8. data/lib/aspose_slides_cloud/models/add_master_slide.rb +11 -40
  9. data/lib/aspose_slides_cloud/models/add_shape.rb +11 -40
  10. data/lib/aspose_slides_cloud/models/add_slide.rb +11 -40
  11. data/lib/aspose_slides_cloud/models/api_info.rb +2 -2
  12. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +2 -2
  13. data/lib/aspose_slides_cloud/models/audio_frame.rb +12 -236
  14. data/lib/aspose_slides_cloud/models/axes.rb +2 -2
  15. data/lib/aspose_slides_cloud/models/axis.rb +2 -2
  16. data/lib/aspose_slides_cloud/models/base64_input_file.rb +11 -49
  17. data/lib/aspose_slides_cloud/models/blur_effect.rb +2 -2
  18. data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +11 -216
  19. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +10 -40
  20. data/lib/aspose_slides_cloud/models/bubble_series.rb +11 -205
  21. data/lib/aspose_slides_cloud/models/chart.rb +12 -210
  22. data/lib/aspose_slides_cloud/models/chart_category.rb +16 -4
  23. data/lib/aspose_slides_cloud/models/chart_title.rb +2 -2
  24. data/lib/aspose_slides_cloud/models/chart_wall.rb +2 -2
  25. data/lib/aspose_slides_cloud/models/color_scheme.rb +10 -32
  26. data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +2 -2
  27. data/lib/aspose_slides_cloud/models/connector.rb +11 -234
  28. data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +2 -2
  29. data/lib/aspose_slides_cloud/models/disc_usage.rb +2 -2
  30. data/lib/aspose_slides_cloud/models/document.rb +10 -32
  31. data/lib/aspose_slides_cloud/models/document_properties.rb +10 -32
  32. data/lib/aspose_slides_cloud/models/document_property.rb +10 -32
  33. data/lib/aspose_slides_cloud/models/document_replace_result.rb +10 -86
  34. data/lib/aspose_slides_cloud/models/effect.rb +2 -2
  35. data/lib/aspose_slides_cloud/models/effect_format.rb +2 -2
  36. data/lib/aspose_slides_cloud/models/entity_exists.rb +2 -2
  37. data/lib/aspose_slides_cloud/models/error.rb +2 -2
  38. data/lib/aspose_slides_cloud/models/error_details.rb +2 -2
  39. data/lib/aspose_slides_cloud/models/export_options.rb +13 -3
  40. data/lib/aspose_slides_cloud/models/file_version.rb +10 -67
  41. data/lib/aspose_slides_cloud/models/file_versions.rb +2 -2
  42. data/lib/aspose_slides_cloud/models/files_list.rb +2 -2
  43. data/lib/aspose_slides_cloud/models/files_upload_result.rb +2 -2
  44. data/lib/aspose_slides_cloud/models/fill_format.rb +2 -2
  45. data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +2 -2
  46. data/lib/aspose_slides_cloud/models/font_scheme.rb +10 -32
  47. data/lib/aspose_slides_cloud/models/font_set.rb +2 -2
  48. data/lib/aspose_slides_cloud/models/format_scheme.rb +10 -32
  49. data/lib/aspose_slides_cloud/models/geometry_shape.rb +10 -200
  50. data/lib/aspose_slides_cloud/models/glow_effect.rb +2 -2
  51. data/lib/aspose_slides_cloud/models/gradient_fill.rb +11 -40
  52. data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +2 -2
  53. data/lib/aspose_slides_cloud/models/graphical_object.rb +11 -209
  54. data/lib/aspose_slides_cloud/models/group_shape.rb +11 -209
  55. data/lib/aspose_slides_cloud/models/html_export_options.rb +13 -24
  56. data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +2 -2
  57. data/lib/aspose_slides_cloud/models/image.rb +10 -32
  58. data/lib/aspose_slides_cloud/models/image_export_options.rb +13 -24
  59. data/lib/aspose_slides_cloud/models/images.rb +10 -32
  60. data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +2 -2
  61. data/lib/aspose_slides_cloud/models/input.rb +2 -2
  62. data/lib/aspose_slides_cloud/models/input_file.rb +2 -2
  63. data/lib/aspose_slides_cloud/models/interactive_sequence.rb +2 -2
  64. data/lib/aspose_slides_cloud/models/layout_slide.rb +10 -32
  65. data/lib/aspose_slides_cloud/models/layout_slides.rb +10 -32
  66. data/lib/aspose_slides_cloud/models/legend.rb +2 -2
  67. data/lib/aspose_slides_cloud/models/line_format.rb +2 -2
  68. data/lib/aspose_slides_cloud/models/master_slide.rb +10 -32
  69. data/lib/aspose_slides_cloud/models/master_slides.rb +10 -32
  70. data/lib/aspose_slides_cloud/models/merge.rb +11 -40
  71. data/lib/aspose_slides_cloud/models/merging_source.rb +2 -2
  72. data/lib/aspose_slides_cloud/models/no_fill.rb +9 -38
  73. data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +2 -2
  74. data/lib/aspose_slides_cloud/models/notes_slide.rb +10 -32
  75. data/lib/aspose_slides_cloud/models/object_exist.rb +2 -2
  76. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +12 -210
  77. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +10 -12
  78. data/lib/aspose_slides_cloud/models/one_value_series.rb +11 -205
  79. data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +2 -2
  80. data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +2 -2
  81. data/lib/aspose_slides_cloud/models/output_file.rb +2 -2
  82. data/lib/aspose_slides_cloud/models/paragraph.rb +10 -32
  83. data/lib/aspose_slides_cloud/models/paragraphs.rb +10 -32
  84. data/lib/aspose_slides_cloud/models/path_input_file.rb +11 -49
  85. data/lib/aspose_slides_cloud/models/path_output_file.rb +11 -40
  86. data/lib/aspose_slides_cloud/models/pattern_fill.rb +11 -40
  87. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +13 -24
  88. data/lib/aspose_slides_cloud/models/picture_fill.rb +11 -40
  89. data/lib/aspose_slides_cloud/models/picture_frame.rb +12 -236
  90. data/lib/aspose_slides_cloud/models/pipeline.rb +2 -2
  91. data/lib/aspose_slides_cloud/models/placeholder.rb +10 -32
  92. data/lib/aspose_slides_cloud/models/placeholders.rb +10 -32
  93. data/lib/aspose_slides_cloud/models/plot_area.rb +2 -2
  94. data/lib/aspose_slides_cloud/models/portion.rb +10 -32
  95. data/lib/aspose_slides_cloud/models/portions.rb +10 -32
  96. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +13 -24
  97. data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +2 -2
  98. data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +2 -2
  99. data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +2 -2
  100. data/lib/aspose_slides_cloud/models/reflection_effect.rb +2 -2
  101. data/lib/aspose_slides_cloud/models/remove_shape.rb +11 -40
  102. data/lib/aspose_slides_cloud/models/remove_slide.rb +11 -40
  103. data/lib/aspose_slides_cloud/models/reorder_slide.rb +11 -40
  104. data/lib/aspose_slides_cloud/models/replace_text.rb +11 -40
  105. data/lib/aspose_slides_cloud/models/request_input_file.rb +11 -49
  106. data/lib/aspose_slides_cloud/models/reset_slide.rb +11 -40
  107. data/lib/aspose_slides_cloud/models/resource_base.rb +2 -2
  108. data/lib/aspose_slides_cloud/models/resource_uri.rb +2 -2
  109. data/lib/aspose_slides_cloud/models/resource_uri_element.rb +2 -2
  110. data/lib/aspose_slides_cloud/models/response_output_file.rb +9 -38
  111. data/lib/aspose_slides_cloud/models/save.rb +11 -40
  112. data/lib/aspose_slides_cloud/models/save_shape.rb +11 -40
  113. data/lib/aspose_slides_cloud/models/save_slide.rb +11 -40
  114. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +10 -12
  115. data/lib/aspose_slides_cloud/models/scatter_series.rb +11 -205
  116. data/lib/aspose_slides_cloud/models/series.rb +2 -2
  117. data/lib/aspose_slides_cloud/models/series_marker.rb +2 -2
  118. data/lib/aspose_slides_cloud/models/shape.rb +11 -234
  119. data/lib/aspose_slides_cloud/models/shape_base.rb +10 -32
  120. data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +2 -2
  121. data/lib/aspose_slides_cloud/models/shapes.rb +10 -32
  122. data/lib/aspose_slides_cloud/models/slide.rb +10 -32
  123. data/lib/aspose_slides_cloud/models/slide_animation.rb +10 -32
  124. data/lib/aspose_slides_cloud/models/slide_background.rb +10 -32
  125. data/lib/aspose_slides_cloud/models/slide_comment.rb +2 -2
  126. data/lib/aspose_slides_cloud/models/slide_comments.rb +10 -32
  127. data/lib/aspose_slides_cloud/models/slide_replace_result.rb +10 -146
  128. data/lib/aspose_slides_cloud/models/slides.rb +10 -32
  129. data/lib/aspose_slides_cloud/models/smart_art.rb +12 -210
  130. data/lib/aspose_slides_cloud/models/smart_art_node.rb +2 -2
  131. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +11 -209
  132. data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +2 -2
  133. data/lib/aspose_slides_cloud/models/solid_fill.rb +11 -40
  134. data/lib/aspose_slides_cloud/models/split_document_result.rb +10 -32
  135. data/lib/aspose_slides_cloud/models/storage_exist.rb +2 -2
  136. data/lib/aspose_slides_cloud/models/storage_file.rb +2 -2
  137. data/lib/aspose_slides_cloud/models/svg_export_options.rb +13 -24
  138. data/lib/aspose_slides_cloud/models/swf_export_options.rb +13 -24
  139. data/lib/aspose_slides_cloud/models/table.rb +12 -210
  140. data/lib/aspose_slides_cloud/models/table_cell.rb +2 -2
  141. data/lib/aspose_slides_cloud/models/table_column.rb +2 -2
  142. data/lib/aspose_slides_cloud/models/table_row.rb +2 -2
  143. data/lib/aspose_slides_cloud/models/task.rb +2 -2
  144. data/lib/aspose_slides_cloud/models/text_item.rb +2 -2
  145. data/lib/aspose_slides_cloud/models/text_items.rb +10 -32
  146. data/lib/aspose_slides_cloud/models/theme.rb +10 -32
  147. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +13 -24
  148. data/lib/aspose_slides_cloud/models/update_background.rb +11 -40
  149. data/lib/aspose_slides_cloud/models/update_shape.rb +11 -40
  150. data/lib/aspose_slides_cloud/models/video_frame.rb +12 -236
  151. data/lib/aspose_slides_cloud/models/view_properties.rb +10 -32
  152. data/lib/aspose_slides_cloud/models/waterfall_series.rb +11 -216
  153. data/lib/aspose_slides_cloud/models/xps_export_options.rb +13 -24
  154. data/lib/aspose_slides_cloud/type_registry.rb +313 -0
  155. data/lib/aspose_slides_cloud/version.rb +1 -1
  156. data/spec/api/slides_api_spec.rb +1417 -63
  157. data/spec/extra/extra_spec.rb +66 -33
  158. data/testRules.json +31 -0
  159. metadata +4 -2
@@ -24,51 +24,28 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Placeholder list.
27
- class Placeholders
28
- # Gets or sets the link to this resource.
29
- attr_accessor :self_uri
30
-
31
- # List of alternate links.
32
- attr_accessor :alternate_links
33
-
27
+ class Placeholders < ResourceBase
34
28
  # List for placeholder links.
35
29
  attr_accessor :placeholder_links
36
30
 
37
31
  # Attribute mapping from ruby-style variable name to JSON key.
38
32
  def self.attribute_map
39
- {
40
- :'self_uri' => :'SelfUri',
41
- :'alternate_links' => :'AlternateLinks',
42
- :'placeholder_links' => :'PlaceholderLinks'
43
- }
33
+ super.merge({
34
+ :'placeholder_links' => :'PlaceholderLinks',
35
+ })
44
36
  end
45
37
 
46
38
  # Attribute type mapping.
47
39
  def self.swagger_types
48
- {
49
- :'self_uri' => :'ResourceUri',
50
- :'alternate_links' => :'Array<ResourceUri>',
51
- :'placeholder_links' => :'Array<ResourceUri>'
52
- }
40
+ super.merge({
41
+ :'placeholder_links' => :'Array<ResourceUri>',
42
+ })
53
43
  end
54
44
 
55
45
  # Initializes the object
56
46
  # @param [Hash] attributes Model attributes in the form of hash
57
47
  def initialize(attributes = {})
58
- return unless attributes.is_a?(Hash)
59
-
60
- # convert string to symbol for hash key
61
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
62
-
63
- if attributes.has_key?(:'SelfUri')
64
- self.self_uri = attributes[:'SelfUri']
65
- end
66
-
67
- if attributes.has_key?(:'AlternateLinks')
68
- if (value = attributes[:'AlternateLinks']).is_a?(Array)
69
- self.alternate_links = value
70
- end
71
- end
48
+ super
72
49
 
73
50
  if attributes.has_key?(:'PlaceholderLinks')
74
51
  if (value = attributes[:'PlaceholderLinks']).is_a?(Array)
@@ -80,13 +57,14 @@ module AsposeSlidesCloud
80
57
  # Show invalid properties with the reasons. Usually used together with valid?
81
58
  # @return Array for valid properties with the reasons
82
59
  def list_invalid_properties
83
- invalid_properties = Array.new
60
+ invalid_properties = super
84
61
  invalid_properties
85
62
  end
86
63
 
87
64
  # Check to see if the all the properties in the model are valid
88
65
  # @return true if the model is valid
89
66
  def valid?
67
+ return false if !super
90
68
  true
91
69
  end
92
70
 
@@ -81,7 +81,7 @@ module AsposeSlidesCloud
81
81
  :'layout_target_type' => :'LayoutTargetType',
82
82
  :'fill_format' => :'FillFormat',
83
83
  :'effect_format' => :'EffectFormat',
84
- :'line_format' => :'LineFormat'
84
+ :'line_format' => :'LineFormat',
85
85
  }
86
86
  end
87
87
 
@@ -95,7 +95,7 @@ module AsposeSlidesCloud
95
95
  :'layout_target_type' => :'String',
96
96
  :'fill_format' => :'FillFormat',
97
97
  :'effect_format' => :'EffectFormat',
98
- :'line_format' => :'LineFormat'
98
+ :'line_format' => :'LineFormat',
99
99
  }
100
100
  end
101
101
 
@@ -24,13 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Represents portion resource
27
- class Portion
28
- # Gets or sets the link to this resource.
29
- attr_accessor :self_uri
30
-
31
- # List of alternate links.
32
- attr_accessor :alternate_links
33
-
27
+ class Portion < ResourceBase
34
28
  # Text.
35
29
  attr_accessor :text
36
30
 
@@ -130,9 +124,7 @@ module AsposeSlidesCloud
130
124
 
131
125
  # Attribute mapping from ruby-style variable name to JSON key.
132
126
  def self.attribute_map
133
- {
134
- :'self_uri' => :'SelfUri',
135
- :'alternate_links' => :'AlternateLinks',
127
+ super.merge({
136
128
  :'text' => :'Text',
137
129
  :'font_bold' => :'FontBold',
138
130
  :'font_italic' => :'FontItalic',
@@ -157,15 +149,13 @@ module AsposeSlidesCloud
157
149
  :'effect_format' => :'EffectFormat',
158
150
  :'line_format' => :'LineFormat',
159
151
  :'underline_fill_format' => :'UnderlineFillFormat',
160
- :'underline_line_format' => :'UnderlineLineFormat'
161
- }
152
+ :'underline_line_format' => :'UnderlineLineFormat',
153
+ })
162
154
  end
163
155
 
164
156
  # Attribute type mapping.
165
157
  def self.swagger_types
166
- {
167
- :'self_uri' => :'ResourceUri',
168
- :'alternate_links' => :'Array<ResourceUri>',
158
+ super.merge({
169
159
  :'text' => :'String',
170
160
  :'font_bold' => :'String',
171
161
  :'font_italic' => :'String',
@@ -190,27 +180,14 @@ module AsposeSlidesCloud
190
180
  :'effect_format' => :'EffectFormat',
191
181
  :'line_format' => :'LineFormat',
192
182
  :'underline_fill_format' => :'FillFormat',
193
- :'underline_line_format' => :'LineFormat'
194
- }
183
+ :'underline_line_format' => :'LineFormat',
184
+ })
195
185
  end
196
186
 
197
187
  # Initializes the object
198
188
  # @param [Hash] attributes Model attributes in the form of hash
199
189
  def initialize(attributes = {})
200
- return unless attributes.is_a?(Hash)
201
-
202
- # convert string to symbol for hash key
203
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
204
-
205
- if attributes.has_key?(:'SelfUri')
206
- self.self_uri = attributes[:'SelfUri']
207
- end
208
-
209
- if attributes.has_key?(:'AlternateLinks')
210
- if (value = attributes[:'AlternateLinks']).is_a?(Array)
211
- self.alternate_links = value
212
- end
213
- end
190
+ super
214
191
 
215
192
  if attributes.has_key?(:'Text')
216
193
  self.text = attributes[:'Text']
@@ -316,13 +293,14 @@ module AsposeSlidesCloud
316
293
  # Show invalid properties with the reasons. Usually used together with valid?
317
294
  # @return Array for valid properties with the reasons
318
295
  def list_invalid_properties
319
- invalid_properties = Array.new
296
+ invalid_properties = super
320
297
  invalid_properties
321
298
  end
322
299
 
323
300
  # Check to see if the all the properties in the model are valid
324
301
  # @return true if the model is valid
325
302
  def valid?
303
+ return false if !super
326
304
  font_bold_validator = EnumAttributeValidator.new('String', ['False', 'True', 'NotDefined'])
327
305
  return false unless font_bold_validator.valid?(@font_bold)
328
306
  font_italic_validator = EnumAttributeValidator.new('String', ['False', 'True', 'NotDefined'])
@@ -24,51 +24,28 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Represents list of Links to Paragraphs resources
27
- class Portions
28
- # Gets or sets the link to this resource.
29
- attr_accessor :self_uri
30
-
31
- # List of alternate links.
32
- attr_accessor :alternate_links
33
-
27
+ class Portions < ResourceBase
34
28
  # List of portion links.
35
29
  attr_accessor :items
36
30
 
37
31
  # Attribute mapping from ruby-style variable name to JSON key.
38
32
  def self.attribute_map
39
- {
40
- :'self_uri' => :'SelfUri',
41
- :'alternate_links' => :'AlternateLinks',
42
- :'items' => :'Items'
43
- }
33
+ super.merge({
34
+ :'items' => :'Items',
35
+ })
44
36
  end
45
37
 
46
38
  # Attribute type mapping.
47
39
  def self.swagger_types
48
- {
49
- :'self_uri' => :'ResourceUri',
50
- :'alternate_links' => :'Array<ResourceUri>',
51
- :'items' => :'Array<Portion>'
52
- }
40
+ super.merge({
41
+ :'items' => :'Array<Portion>',
42
+ })
53
43
  end
54
44
 
55
45
  # Initializes the object
56
46
  # @param [Hash] attributes Model attributes in the form of hash
57
47
  def initialize(attributes = {})
58
- return unless attributes.is_a?(Hash)
59
-
60
- # convert string to symbol for hash key
61
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
62
-
63
- if attributes.has_key?(:'SelfUri')
64
- self.self_uri = attributes[:'SelfUri']
65
- end
66
-
67
- if attributes.has_key?(:'AlternateLinks')
68
- if (value = attributes[:'AlternateLinks']).is_a?(Array)
69
- self.alternate_links = value
70
- end
71
- end
48
+ super
72
49
 
73
50
  if attributes.has_key?(:'Items')
74
51
  if (value = attributes[:'Items']).is_a?(Array)
@@ -80,13 +57,14 @@ module AsposeSlidesCloud
80
57
  # Show invalid properties with the reasons. Usually used together with valid?
81
58
  # @return Array for valid properties with the reasons
82
59
  def list_invalid_properties
83
- invalid_properties = Array.new
60
+ invalid_properties = super
84
61
  invalid_properties
85
62
  end
86
63
 
87
64
  # Check to see if the all the properties in the model are valid
88
65
  # @return true if the model is valid
89
66
  def valid?
67
+ return false if !super
90
68
  true
91
69
  end
92
70
 
@@ -24,10 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Provides options that control how a presentation is saved in PPTX format.
27
- class PptxExportOptions
28
- # Export format.
29
- attr_accessor :format
30
-
27
+ class PptxExportOptions < ExportOptions
31
28
  # The conformance class to which the PresentationML document conforms. Read/write Conformance.
32
29
  attr_accessor :conformance
33
30
 
@@ -55,43 +52,33 @@ module AsposeSlidesCloud
55
52
 
56
53
  # Attribute mapping from ruby-style variable name to JSON key.
57
54
  def self.attribute_map
58
- {
59
- :'format' => :'Format',
60
- :'conformance' => :'Conformance'
61
- }
55
+ super.merge({
56
+ :'conformance' => :'Conformance',
57
+ })
62
58
  end
63
59
 
64
60
  # Attribute type mapping.
65
61
  def self.swagger_types
66
- {
67
- :'format' => :'String',
68
- :'conformance' => :'String'
69
- }
62
+ super.merge({
63
+ :'conformance' => :'String',
64
+ })
70
65
  end
71
66
 
72
67
  # Initializes the object
73
68
  # @param [Hash] attributes Model attributes in the form of hash
74
69
  def initialize(attributes = {})
75
- return unless attributes.is_a?(Hash)
76
-
77
- # convert string to symbol for hash key
78
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
79
-
80
- if attributes.has_key?(:'Format')
81
- self.format = attributes[:'Format']
82
- else
83
- self.format = "pptx"
84
- end
70
+ super
85
71
 
86
72
  if attributes.has_key?(:'Conformance')
87
73
  self.conformance = attributes[:'Conformance']
88
74
  end
75
+ self.format = "pptx"
89
76
  end
90
77
 
91
78
  # Show invalid properties with the reasons. Usually used together with valid?
92
79
  # @return Array for valid properties with the reasons
93
80
  def list_invalid_properties
94
- invalid_properties = Array.new
81
+ invalid_properties = super
95
82
  if @conformance.nil?
96
83
  invalid_properties.push('invalid value for "conformance", conformance cannot be nil.')
97
84
  end
@@ -102,6 +89,7 @@ module AsposeSlidesCloud
102
89
  # Check to see if the all the properties in the model are valid
103
90
  # @return true if the model is valid
104
91
  def valid?
92
+ return false if !super
105
93
  return false if @conformance.nil?
106
94
  conformance_validator = EnumAttributeValidator.new('String', ['Ecma376_2006', 'Iso29500_2008_Transitional', 'Iso29500_2008_Strict'])
107
95
  return false unless conformance_validator.valid?(@conformance)
@@ -123,6 +111,7 @@ module AsposeSlidesCloud
123
111
  def ==(o)
124
112
  return true if self.equal?(o)
125
113
  self.class == o.class &&
114
+ default_regular_font == o.default_regular_font &&
126
115
  format == o.format &&
127
116
  conformance == o.conformance
128
117
  end
@@ -136,7 +125,7 @@ module AsposeSlidesCloud
136
125
  # Calculates hash code according to all attributes.
137
126
  # @return [Fixnum] Hash code
138
127
  def hash
139
- [format, conformance].hash
128
+ [default_regular_font, format, conformance].hash
140
129
  end
141
130
 
142
131
  # Builds the object from hash
@@ -39,7 +39,7 @@ module AsposeSlidesCloud
39
39
  {
40
40
  :'path' => :'Path',
41
41
  :'password' => :'Password',
42
- :'slides' => :'Slides'
42
+ :'slides' => :'Slides',
43
43
  }
44
44
  end
45
45
 
@@ -48,7 +48,7 @@ module AsposeSlidesCloud
48
48
  {
49
49
  :'path' => :'String',
50
50
  :'password' => :'String',
51
- :'slides' => :'Array<Integer>'
51
+ :'slides' => :'Array<Integer>',
52
52
  }
53
53
  end
54
54
 
@@ -35,7 +35,7 @@ module AsposeSlidesCloud
35
35
  def self.attribute_map
36
36
  {
37
37
  :'presentation_paths' => :'PresentationPaths',
38
- :'presentation_passwords' => :'PresentationPasswords'
38
+ :'presentation_passwords' => :'PresentationPasswords',
39
39
  }
40
40
  end
41
41
 
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
43
43
  def self.swagger_types
44
44
  {
45
45
  :'presentation_paths' => :'Array<String>',
46
- :'presentation_passwords' => :'Array<String>'
46
+ :'presentation_passwords' => :'Array<String>',
47
47
  }
48
48
  end
49
49
 
@@ -65,7 +65,7 @@ module AsposeSlidesCloud
65
65
  :'direction' => :'Direction',
66
66
  :'distance' => :'Distance',
67
67
  :'preset' => :'Preset',
68
- :'shadow_color' => :'ShadowColor'
68
+ :'shadow_color' => :'ShadowColor',
69
69
  }
70
70
  end
71
71
 
@@ -75,7 +75,7 @@ module AsposeSlidesCloud
75
75
  :'direction' => :'Float',
76
76
  :'distance' => :'Float',
77
77
  :'preset' => :'String',
78
- :'shadow_color' => :'String'
78
+ :'shadow_color' => :'String',
79
79
  }
80
80
  end
81
81
 
@@ -105,7 +105,7 @@ module AsposeSlidesCloud
105
105
  :'start_reflection_opacity' => :'StartReflectionOpacity',
106
106
  :'end_reflection_opacity' => :'EndReflectionOpacity',
107
107
  :'rectangle_align' => :'RectangleAlign',
108
- :'rotate_shadow_with_shape' => :'RotateShadowWithShape'
108
+ :'rotate_shadow_with_shape' => :'RotateShadowWithShape',
109
109
  }
110
110
  end
111
111
 
@@ -125,7 +125,7 @@ module AsposeSlidesCloud
125
125
  :'start_reflection_opacity' => :'Float',
126
126
  :'end_reflection_opacity' => :'Float',
127
127
  :'rectangle_align' => :'String',
128
- :'rotate_shadow_with_shape' => :'BOOLEAN'
128
+ :'rotate_shadow_with_shape' => :'BOOLEAN',
129
129
  }
130
130
  end
131
131
 
@@ -24,10 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Remove shape task.
27
- class RemoveShape
28
- # Task type.
29
- attr_accessor :type
30
-
27
+ class RemoveShape < Task
31
28
  # Shape path for a grouped or smart art shape.
32
29
  attr_accessor :shape_path
33
30
 
@@ -55,69 +52,43 @@ module AsposeSlidesCloud
55
52
 
56
53
  # Attribute mapping from ruby-style variable name to JSON key.
57
54
  def self.attribute_map
58
- {
59
- :'type' => :'Type',
60
- :'shape_path' => :'ShapePath'
61
- }
55
+ super.merge({
56
+ :'shape_path' => :'ShapePath',
57
+ })
62
58
  end
63
59
 
64
60
  # Attribute type mapping.
65
61
  def self.swagger_types
66
- {
67
- :'type' => :'String',
68
- :'shape_path' => :'String'
69
- }
62
+ super.merge({
63
+ :'shape_path' => :'String',
64
+ })
70
65
  end
71
66
 
72
67
  # Initializes the object
73
68
  # @param [Hash] attributes Model attributes in the form of hash
74
69
  def initialize(attributes = {})
75
- return unless attributes.is_a?(Hash)
76
-
77
- # convert string to symbol for hash key
78
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
79
-
80
- if attributes.has_key?(:'Type')
81
- self.type = attributes[:'Type']
82
- else
83
- self.type = "RemoveShape"
84
- end
70
+ super
85
71
 
86
72
  if attributes.has_key?(:'ShapePath')
87
73
  self.shape_path = attributes[:'ShapePath']
88
74
  end
75
+ self.type = "RemoveShape"
89
76
  end
90
77
 
91
78
  # Show invalid properties with the reasons. Usually used together with valid?
92
79
  # @return Array for valid properties with the reasons
93
80
  def list_invalid_properties
94
- invalid_properties = Array.new
95
- if @type.nil?
96
- invalid_properties.push('invalid value for "type", type cannot be nil.')
97
- end
98
-
81
+ invalid_properties = super
99
82
  invalid_properties
100
83
  end
101
84
 
102
85
  # Check to see if the all the properties in the model are valid
103
86
  # @return true if the model is valid
104
87
  def valid?
105
- return false if @type.nil?
106
- type_validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
107
- return false unless type_validator.valid?(@type)
88
+ return false if !super
108
89
  true
109
90
  end
110
91
 
111
- # Custom attribute writer method checking allowed values (enum).
112
- # @param [Object] type Object to be assigned
113
- def type=(type)
114
- validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
115
- unless validator.valid?(type)
116
- fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
117
- end
118
- @type = type
119
- end
120
-
121
92
  # Checks equality by comparing each attribute.
122
93
  # @param [Object] Object to be compared
123
94
  def ==(o)