aspose_slides_cloud 20.7.0 → 21.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (174) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/TestData/ChartTest.pptx +0 -0
  4. data/TestData/Sections.pptx +0 -0
  5. data/TestData/test-unprotected.pptx +0 -0
  6. data/TestData/test.pdf +0 -0
  7. data/TestData/test.pptx +0 -0
  8. data/lib/aspose_slides_cloud.rb +12 -5
  9. data/lib/aspose_slides_cloud/api/slides_api.rb +2130 -940
  10. data/lib/aspose_slides_cloud/api/slides_api_requests.rb +531 -31
  11. data/lib/aspose_slides_cloud/api_client.rb +25 -23
  12. data/lib/aspose_slides_cloud/configuration.rb +7 -2
  13. data/lib/aspose_slides_cloud/models/add_layout_slide.rb +11 -40
  14. data/lib/aspose_slides_cloud/models/add_master_slide.rb +11 -40
  15. data/lib/aspose_slides_cloud/models/add_shape.rb +11 -40
  16. data/lib/aspose_slides_cloud/models/add_slide.rb +11 -40
  17. data/lib/aspose_slides_cloud/models/api_info.rb +2 -2
  18. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +2 -2
  19. data/lib/aspose_slides_cloud/models/audio_frame.rb +12 -238
  20. data/lib/aspose_slides_cloud/models/axes.rb +2 -2
  21. data/lib/aspose_slides_cloud/models/axis.rb +2 -2
  22. data/lib/aspose_slides_cloud/models/base64_input_file.rb +11 -49
  23. data/lib/aspose_slides_cloud/models/blur_effect.rb +2 -2
  24. data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +11 -216
  25. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +10 -40
  26. data/lib/aspose_slides_cloud/models/bubble_series.rb +11 -205
  27. data/lib/aspose_slides_cloud/models/chart.rb +14 -214
  28. data/lib/aspose_slides_cloud/models/chart_category.rb +34 -12
  29. data/lib/aspose_slides_cloud/models/chart_title.rb +2 -2
  30. data/lib/aspose_slides_cloud/models/chart_wall.rb +2 -2
  31. data/lib/aspose_slides_cloud/models/color_scheme.rb +10 -32
  32. data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +2 -2
  33. data/lib/aspose_slides_cloud/models/connector.rb +12 -236
  34. data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +2 -2
  35. data/lib/aspose_slides_cloud/models/{resource_uri_element.rb → data_point.rb} +4 -14
  36. data/lib/aspose_slides_cloud/models/disc_usage.rb +2 -2
  37. data/lib/aspose_slides_cloud/models/document.rb +15 -37
  38. data/lib/aspose_slides_cloud/models/document_properties.rb +10 -32
  39. data/lib/aspose_slides_cloud/models/document_property.rb +10 -32
  40. data/lib/aspose_slides_cloud/models/document_replace_result.rb +10 -86
  41. data/lib/aspose_slides_cloud/models/effect.rb +2 -2
  42. data/lib/aspose_slides_cloud/models/effect_format.rb +2 -2
  43. data/lib/aspose_slides_cloud/models/entity_exists.rb +2 -2
  44. data/lib/aspose_slides_cloud/models/error.rb +2 -2
  45. data/lib/aspose_slides_cloud/models/error_details.rb +2 -2
  46. data/lib/aspose_slides_cloud/models/export_options.rb +13 -3
  47. data/lib/aspose_slides_cloud/models/file_version.rb +10 -67
  48. data/lib/aspose_slides_cloud/models/file_versions.rb +2 -2
  49. data/lib/aspose_slides_cloud/models/files_list.rb +2 -2
  50. data/lib/aspose_slides_cloud/models/files_upload_result.rb +2 -2
  51. data/lib/aspose_slides_cloud/models/fill_format.rb +2 -2
  52. data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +2 -2
  53. data/lib/aspose_slides_cloud/models/font_scheme.rb +10 -32
  54. data/lib/aspose_slides_cloud/models/font_set.rb +2 -2
  55. data/lib/aspose_slides_cloud/models/format_scheme.rb +10 -32
  56. data/lib/aspose_slides_cloud/models/geometry_shape.rb +13 -204
  57. data/lib/aspose_slides_cloud/models/glow_effect.rb +2 -2
  58. data/lib/aspose_slides_cloud/models/gradient_fill.rb +11 -40
  59. data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +2 -2
  60. data/lib/aspose_slides_cloud/models/graphical_object.rb +11 -211
  61. data/lib/aspose_slides_cloud/models/group_shape.rb +11 -211
  62. data/lib/aspose_slides_cloud/models/header_footer.rb +247 -0
  63. data/lib/aspose_slides_cloud/models/html_export_options.rb +13 -24
  64. data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +2 -12
  65. data/lib/aspose_slides_cloud/models/image.rb +10 -32
  66. data/lib/aspose_slides_cloud/models/image_export_options.rb +13 -24
  67. data/lib/aspose_slides_cloud/models/images.rb +10 -32
  68. data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +2 -2
  69. data/lib/aspose_slides_cloud/models/input.rb +2 -2
  70. data/lib/aspose_slides_cloud/models/input_file.rb +2 -2
  71. data/lib/aspose_slides_cloud/models/interactive_sequence.rb +2 -2
  72. data/lib/aspose_slides_cloud/models/layout_slide.rb +11 -33
  73. data/lib/aspose_slides_cloud/models/layout_slides.rb +10 -32
  74. data/lib/aspose_slides_cloud/models/legend.rb +2 -2
  75. data/lib/aspose_slides_cloud/models/line_format.rb +25 -3
  76. data/lib/aspose_slides_cloud/models/master_slide.rb +11 -33
  77. data/lib/aspose_slides_cloud/models/master_slides.rb +10 -32
  78. data/lib/aspose_slides_cloud/models/merge.rb +11 -40
  79. data/lib/aspose_slides_cloud/models/merging_source.rb +2 -2
  80. data/lib/aspose_slides_cloud/models/no_fill.rb +9 -38
  81. data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +2 -2
  82. data/lib/aspose_slides_cloud/models/notes_slide.rb +10 -32
  83. data/lib/aspose_slides_cloud/models/notes_slide_header_footer.rb +267 -0
  84. data/lib/aspose_slides_cloud/models/object_exist.rb +2 -2
  85. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +12 -212
  86. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +10 -12
  87. data/lib/aspose_slides_cloud/models/one_value_series.rb +11 -205
  88. data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +2 -2
  89. data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +2 -2
  90. data/lib/aspose_slides_cloud/models/output_file.rb +2 -2
  91. data/lib/aspose_slides_cloud/models/paragraph.rb +10 -32
  92. data/lib/aspose_slides_cloud/models/paragraphs.rb +10 -32
  93. data/lib/aspose_slides_cloud/models/path_input_file.rb +11 -49
  94. data/lib/aspose_slides_cloud/models/path_output_file.rb +11 -40
  95. data/lib/aspose_slides_cloud/models/pattern_fill.rb +11 -40
  96. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +13 -24
  97. data/lib/aspose_slides_cloud/models/picture_fill.rb +12 -41
  98. data/lib/aspose_slides_cloud/models/picture_frame.rb +12 -238
  99. data/lib/aspose_slides_cloud/models/pipeline.rb +2 -2
  100. data/lib/aspose_slides_cloud/models/placeholder.rb +10 -32
  101. data/lib/aspose_slides_cloud/models/placeholders.rb +10 -32
  102. data/lib/aspose_slides_cloud/models/plot_area.rb +2 -2
  103. data/lib/aspose_slides_cloud/models/portion.rb +10 -32
  104. data/lib/aspose_slides_cloud/models/portions.rb +10 -32
  105. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +13 -24
  106. data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +2 -2
  107. data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +2 -2
  108. data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +2 -2
  109. data/lib/aspose_slides_cloud/models/protection_properties.rb +217 -0
  110. data/lib/aspose_slides_cloud/models/reflection_effect.rb +2 -2
  111. data/lib/aspose_slides_cloud/models/remove_shape.rb +11 -40
  112. data/lib/aspose_slides_cloud/models/remove_slide.rb +11 -40
  113. data/lib/aspose_slides_cloud/models/reorder_slide.rb +11 -40
  114. data/lib/aspose_slides_cloud/models/replace_text.rb +11 -40
  115. data/lib/aspose_slides_cloud/models/request_input_file.rb +11 -49
  116. data/lib/aspose_slides_cloud/models/reset_slide.rb +11 -40
  117. data/lib/aspose_slides_cloud/models/resource_base.rb +2 -2
  118. data/lib/aspose_slides_cloud/models/resource_uri.rb +2 -2
  119. data/lib/aspose_slides_cloud/models/response_output_file.rb +9 -38
  120. data/lib/aspose_slides_cloud/models/save.rb +11 -40
  121. data/lib/aspose_slides_cloud/models/save_shape.rb +11 -40
  122. data/lib/aspose_slides_cloud/models/save_slide.rb +11 -40
  123. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +10 -12
  124. data/lib/aspose_slides_cloud/models/scatter_series.rb +11 -205
  125. data/lib/aspose_slides_cloud/models/section.rb +234 -0
  126. data/lib/aspose_slides_cloud/models/sections.rb +209 -0
  127. data/lib/aspose_slides_cloud/models/series.rb +4 -4
  128. data/lib/aspose_slides_cloud/models/series_marker.rb +2 -2
  129. data/lib/aspose_slides_cloud/models/shape.rb +12 -236
  130. data/lib/aspose_slides_cloud/models/shape_base.rb +11 -54
  131. data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +2 -2
  132. data/lib/aspose_slides_cloud/models/shapes.rb +10 -32
  133. data/lib/aspose_slides_cloud/models/slide.rb +17 -39
  134. data/lib/aspose_slides_cloud/models/slide_animation.rb +10 -32
  135. data/lib/aspose_slides_cloud/models/slide_background.rb +10 -32
  136. data/lib/aspose_slides_cloud/models/slide_comment.rb +2 -2
  137. data/lib/aspose_slides_cloud/models/slide_comments.rb +10 -32
  138. data/lib/aspose_slides_cloud/models/slide_properties.rb +315 -0
  139. data/lib/aspose_slides_cloud/models/slide_replace_result.rb +10 -146
  140. data/lib/aspose_slides_cloud/models/slides.rb +10 -32
  141. data/lib/aspose_slides_cloud/models/smart_art.rb +12 -212
  142. data/lib/aspose_slides_cloud/models/smart_art_node.rb +3 -3
  143. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +10 -209
  144. data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +2 -2
  145. data/lib/aspose_slides_cloud/models/solid_fill.rb +11 -40
  146. data/lib/aspose_slides_cloud/models/split_document_result.rb +10 -32
  147. data/lib/aspose_slides_cloud/models/storage_exist.rb +2 -2
  148. data/lib/aspose_slides_cloud/models/storage_file.rb +2 -2
  149. data/lib/aspose_slides_cloud/models/svg_export_options.rb +13 -24
  150. data/lib/aspose_slides_cloud/models/swf_export_options.rb +13 -24
  151. data/lib/aspose_slides_cloud/models/table.rb +12 -212
  152. data/lib/aspose_slides_cloud/models/table_cell.rb +2 -2
  153. data/lib/aspose_slides_cloud/models/table_column.rb +2 -2
  154. data/lib/aspose_slides_cloud/models/table_row.rb +2 -2
  155. data/lib/aspose_slides_cloud/models/task.rb +2 -2
  156. data/lib/aspose_slides_cloud/models/text_item.rb +2 -2
  157. data/lib/aspose_slides_cloud/models/text_items.rb +10 -32
  158. data/lib/aspose_slides_cloud/models/theme.rb +12 -34
  159. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +13 -24
  160. data/lib/aspose_slides_cloud/models/update_background.rb +11 -40
  161. data/lib/aspose_slides_cloud/models/update_shape.rb +11 -40
  162. data/lib/aspose_slides_cloud/models/video_frame.rb +12 -238
  163. data/lib/aspose_slides_cloud/models/view_properties.rb +10 -32
  164. data/lib/aspose_slides_cloud/models/waterfall_chart_data_point.rb +206 -0
  165. data/lib/aspose_slides_cloud/models/waterfall_series.rb +11 -216
  166. data/lib/aspose_slides_cloud/models/xps_export_options.rb +13 -24
  167. data/lib/aspose_slides_cloud/type_registry.rb +324 -0
  168. data/lib/aspose_slides_cloud/version.rb +1 -1
  169. data/spec/api/slides_api_spec.rb +8664 -1406
  170. data/spec/extra/extra_spec.rb +70 -38
  171. data/spec/spec_utils.rb +10 -6
  172. data/testConfig.json +2 -2
  173. data/testRules.json +121 -80
  174. metadata +16 -3
@@ -113,7 +113,7 @@ module AsposeSlidesCloud
113
113
  :'border_left' => :'BorderLeft',
114
114
  :'border_bottom' => :'BorderBottom',
115
115
  :'border_diagonal_up' => :'BorderDiagonalUp',
116
- :'border_diagonal_down' => :'BorderDiagonalDown'
116
+ :'border_diagonal_down' => :'BorderDiagonalDown',
117
117
  }
118
118
  end
119
119
 
@@ -135,7 +135,7 @@ module AsposeSlidesCloud
135
135
  :'border_left' => :'LineFormat',
136
136
  :'border_bottom' => :'LineFormat',
137
137
  :'border_diagonal_up' => :'LineFormat',
138
- :'border_diagonal_down' => :'LineFormat'
138
+ :'border_diagonal_down' => :'LineFormat',
139
139
  }
140
140
  end
141
141
 
@@ -31,14 +31,14 @@ module AsposeSlidesCloud
31
31
  # Attribute mapping from ruby-style variable name to JSON key.
32
32
  def self.attribute_map
33
33
  {
34
- :'width' => :'Width'
34
+ :'width' => :'Width',
35
35
  }
36
36
  end
37
37
 
38
38
  # Attribute type mapping.
39
39
  def self.swagger_types
40
40
  {
41
- :'width' => :'Float'
41
+ :'width' => :'Float',
42
42
  }
43
43
  end
44
44
 
@@ -39,7 +39,7 @@ module AsposeSlidesCloud
39
39
  {
40
40
  :'cells' => :'Cells',
41
41
  :'minimal_height' => :'MinimalHeight',
42
- :'height' => :'Height'
42
+ :'height' => :'Height',
43
43
  }
44
44
  end
45
45
 
@@ -48,7 +48,7 @@ module AsposeSlidesCloud
48
48
  {
49
49
  :'cells' => :'Array<TableCell>',
50
50
  :'minimal_height' => :'Float',
51
- :'height' => :'Float'
51
+ :'height' => :'Float',
52
52
  }
53
53
  end
54
54
 
@@ -52,14 +52,14 @@ module AsposeSlidesCloud
52
52
  # Attribute mapping from ruby-style variable name to JSON key.
53
53
  def self.attribute_map
54
54
  {
55
- :'type' => :'Type'
55
+ :'type' => :'Type',
56
56
  }
57
57
  end
58
58
 
59
59
  # Attribute type mapping.
60
60
  def self.swagger_types
61
61
  {
62
- :'type' => :'String'
62
+ :'type' => :'String',
63
63
  }
64
64
  end
65
65
 
@@ -35,7 +35,7 @@ module AsposeSlidesCloud
35
35
  def self.attribute_map
36
36
  {
37
37
  :'uri' => :'Uri',
38
- :'text' => :'Text'
38
+ :'text' => :'Text',
39
39
  }
40
40
  end
41
41
 
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
43
43
  def self.swagger_types
44
44
  {
45
45
  :'uri' => :'ResourceUri',
46
- :'text' => :'String'
46
+ :'text' => :'String',
47
47
  }
48
48
  end
49
49
 
@@ -24,51 +24,28 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Represents text of resource
27
- class TextItems
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 TextItems < ResourceBase
34
28
  # Gets or sets the text items.
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<TextItem>'
52
- }
40
+ super.merge({
41
+ :'items' => :'Array<TextItem>',
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,13 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Represents Slide's theme
27
- class Theme
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 Theme < ResourceBase
34
28
  # Name.
35
29
  attr_accessor :name
36
30
 
@@ -45,45 +39,28 @@ module AsposeSlidesCloud
45
39
 
46
40
  # Attribute mapping from ruby-style variable name to JSON key.
47
41
  def self.attribute_map
48
- {
49
- :'self_uri' => :'SelfUri',
50
- :'alternate_links' => :'AlternateLinks',
42
+ super.merge({
51
43
  :'name' => :'Name',
52
44
  :'color_scheme' => :'ColorScheme',
53
45
  :'font_scheme' => :'FontScheme',
54
- :'format_scheme' => :'FormatScheme'
55
- }
46
+ :'format_scheme' => :'FormatScheme',
47
+ })
56
48
  end
57
49
 
58
50
  # Attribute type mapping.
59
51
  def self.swagger_types
60
- {
61
- :'self_uri' => :'ResourceUri',
62
- :'alternate_links' => :'Array<ResourceUri>',
52
+ super.merge({
63
53
  :'name' => :'String',
64
- :'color_scheme' => :'ResourceUriElement',
65
- :'font_scheme' => :'ResourceUriElement',
66
- :'format_scheme' => :'ResourceUriElement'
67
- }
54
+ :'color_scheme' => :'ResourceUri',
55
+ :'font_scheme' => :'ResourceUri',
56
+ :'format_scheme' => :'ResourceUri',
57
+ })
68
58
  end
69
59
 
70
60
  # Initializes the object
71
61
  # @param [Hash] attributes Model attributes in the form of hash
72
62
  def initialize(attributes = {})
73
- return unless attributes.is_a?(Hash)
74
-
75
- # convert string to symbol for hash key
76
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
77
-
78
- if attributes.has_key?(:'SelfUri')
79
- self.self_uri = attributes[:'SelfUri']
80
- end
81
-
82
- if attributes.has_key?(:'AlternateLinks')
83
- if (value = attributes[:'AlternateLinks']).is_a?(Array)
84
- self.alternate_links = value
85
- end
86
- end
63
+ super
87
64
 
88
65
  if attributes.has_key?(:'Name')
89
66
  self.name = attributes[:'Name']
@@ -105,13 +82,14 @@ module AsposeSlidesCloud
105
82
  # Show invalid properties with the reasons. Usually used together with valid?
106
83
  # @return Array for valid properties with the reasons
107
84
  def list_invalid_properties
108
- invalid_properties = Array.new
85
+ invalid_properties = super
109
86
  invalid_properties
110
87
  end
111
88
 
112
89
  # Check to see if the all the properties in the model are valid
113
90
  # @return true if the model is valid
114
91
  def valid?
92
+ return false if !super
115
93
  true
116
94
  end
117
95
 
@@ -24,10 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Provides options that control how a presentation is saved in TIFF format.
27
- class TiffExportOptions
28
- # Export format.
29
- attr_accessor :format
30
-
27
+ class TiffExportOptions < ExportOptions
31
28
  # Compression type.
32
29
  attr_accessor :compression
33
30
 
@@ -88,8 +85,7 @@ module AsposeSlidesCloud
88
85
 
89
86
  # Attribute mapping from ruby-style variable name to JSON key.
90
87
  def self.attribute_map
91
- {
92
- :'format' => :'Format',
88
+ super.merge({
93
89
  :'compression' => :'Compression',
94
90
  :'width' => :'Width',
95
91
  :'height' => :'Height',
@@ -101,14 +97,13 @@ module AsposeSlidesCloud
101
97
  :'comments_position' => :'CommentsPosition',
102
98
  :'comments_area_width' => :'CommentsAreaWidth',
103
99
  :'comments_area_color' => :'CommentsAreaColor',
104
- :'show_comments_by_no_author' => :'ShowCommentsByNoAuthor'
105
- }
100
+ :'show_comments_by_no_author' => :'ShowCommentsByNoAuthor',
101
+ })
106
102
  end
107
103
 
108
104
  # Attribute type mapping.
109
105
  def self.swagger_types
110
- {
111
- :'format' => :'String',
106
+ super.merge({
112
107
  :'compression' => :'String',
113
108
  :'width' => :'Integer',
114
109
  :'height' => :'Integer',
@@ -120,23 +115,14 @@ module AsposeSlidesCloud
120
115
  :'comments_position' => :'String',
121
116
  :'comments_area_width' => :'Integer',
122
117
  :'comments_area_color' => :'String',
123
- :'show_comments_by_no_author' => :'BOOLEAN'
124
- }
118
+ :'show_comments_by_no_author' => :'BOOLEAN',
119
+ })
125
120
  end
126
121
 
127
122
  # Initializes the object
128
123
  # @param [Hash] attributes Model attributes in the form of hash
129
124
  def initialize(attributes = {})
130
- return unless attributes.is_a?(Hash)
131
-
132
- # convert string to symbol for hash key
133
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
134
-
135
- if attributes.has_key?(:'Format')
136
- self.format = attributes[:'Format']
137
- else
138
- self.format = "tiff"
139
- end
125
+ super
140
126
 
141
127
  if attributes.has_key?(:'Compression')
142
128
  self.compression = attributes[:'Compression']
@@ -185,12 +171,13 @@ module AsposeSlidesCloud
185
171
  if attributes.has_key?(:'ShowCommentsByNoAuthor')
186
172
  self.show_comments_by_no_author = attributes[:'ShowCommentsByNoAuthor']
187
173
  end
174
+ self.format = "tiff"
188
175
  end
189
176
 
190
177
  # Show invalid properties with the reasons. Usually used together with valid?
191
178
  # @return Array for valid properties with the reasons
192
179
  def list_invalid_properties
193
- invalid_properties = Array.new
180
+ invalid_properties = super
194
181
  if @compression.nil?
195
182
  invalid_properties.push('invalid value for "compression", compression cannot be nil.')
196
183
  end
@@ -225,6 +212,7 @@ module AsposeSlidesCloud
225
212
  # Check to see if the all the properties in the model are valid
226
213
  # @return true if the model is valid
227
214
  def valid?
215
+ return false if !super
228
216
  return false if @compression.nil?
229
217
  compression_validator = EnumAttributeValidator.new('String', ['Default', 'None', 'CCITT3', 'CCITT4', 'LZW', 'RLE'])
230
218
  return false unless compression_validator.valid?(@compression)
@@ -288,6 +276,7 @@ module AsposeSlidesCloud
288
276
  def ==(o)
289
277
  return true if self.equal?(o)
290
278
  self.class == o.class &&
279
+ default_regular_font == o.default_regular_font &&
291
280
  format == o.format &&
292
281
  compression == o.compression &&
293
282
  width == o.width &&
@@ -312,7 +301,7 @@ module AsposeSlidesCloud
312
301
  # Calculates hash code according to all attributes.
313
302
  # @return [Fixnum] Hash code
314
303
  def hash
315
- [format, compression, width, height, dpi_x, dpi_y, show_hidden_slides, pixel_format, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
304
+ [default_regular_font, format, compression, width, height, dpi_x, dpi_y, show_hidden_slides, pixel_format, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
316
305
  end
317
306
 
318
307
  # Builds the object from hash
@@ -24,10 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Update background task.
27
- class UpdateBackground
28
- # Task type.
29
- attr_accessor :type
30
-
27
+ class UpdateBackground < Task
31
28
  # List of slide indices.
32
29
  attr_accessor :slides
33
30
 
@@ -58,35 +55,24 @@ module AsposeSlidesCloud
58
55
 
59
56
  # Attribute mapping from ruby-style variable name to JSON key.
60
57
  def self.attribute_map
61
- {
62
- :'type' => :'Type',
58
+ super.merge({
63
59
  :'slides' => :'Slides',
64
- :'background' => :'Background'
65
- }
60
+ :'background' => :'Background',
61
+ })
66
62
  end
67
63
 
68
64
  # Attribute type mapping.
69
65
  def self.swagger_types
70
- {
71
- :'type' => :'String',
66
+ super.merge({
72
67
  :'slides' => :'Array<Integer>',
73
- :'background' => :'SlideBackground'
74
- }
68
+ :'background' => :'SlideBackground',
69
+ })
75
70
  end
76
71
 
77
72
  # Initializes the object
78
73
  # @param [Hash] attributes Model attributes in the form of hash
79
74
  def initialize(attributes = {})
80
- return unless attributes.is_a?(Hash)
81
-
82
- # convert string to symbol for hash key
83
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
84
-
85
- if attributes.has_key?(:'Type')
86
- self.type = attributes[:'Type']
87
- else
88
- self.type = "UpdateBackground"
89
- end
75
+ super
90
76
 
91
77
  if attributes.has_key?(:'Slides')
92
78
  if (value = attributes[:'Slides']).is_a?(Array)
@@ -97,38 +83,23 @@ module AsposeSlidesCloud
97
83
  if attributes.has_key?(:'Background')
98
84
  self.background = attributes[:'Background']
99
85
  end
86
+ self.type = "UpdateBackground"
100
87
  end
101
88
 
102
89
  # Show invalid properties with the reasons. Usually used together with valid?
103
90
  # @return Array for valid properties with the reasons
104
91
  def list_invalid_properties
105
- invalid_properties = Array.new
106
- if @type.nil?
107
- invalid_properties.push('invalid value for "type", type cannot be nil.')
108
- end
109
-
92
+ invalid_properties = super
110
93
  invalid_properties
111
94
  end
112
95
 
113
96
  # Check to see if the all the properties in the model are valid
114
97
  # @return true if the model is valid
115
98
  def valid?
116
- return false if @type.nil?
117
- type_validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
118
- return false unless type_validator.valid?(@type)
99
+ return false if !super
119
100
  true
120
101
  end
121
102
 
122
- # Custom attribute writer method checking allowed values (enum).
123
- # @param [Object] type Object to be assigned
124
- def type=(type)
125
- validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
126
- unless validator.valid?(type)
127
- fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
128
- end
129
- @type = type
130
- end
131
-
132
103
  # Checks equality by comparing each attribute.
133
104
  # @param [Object] Object to be compared
134
105
  def ==(o)