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
@@ -24,10 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Provides options that control how a presentation is saved in an image format.
27
- class ImageExportOptions
28
- # Export format.
29
- attr_accessor :format
30
-
27
+ class ImageExportOptions < ExportOptions
31
28
  # Gets or sets the position of the notes on the page.
32
29
  attr_accessor :notes_position
33
30
 
@@ -64,39 +61,28 @@ module AsposeSlidesCloud
64
61
 
65
62
  # Attribute mapping from ruby-style variable name to JSON key.
66
63
  def self.attribute_map
67
- {
68
- :'format' => :'Format',
64
+ super.merge({
69
65
  :'notes_position' => :'NotesPosition',
70
66
  :'comments_position' => :'CommentsPosition',
71
67
  :'comments_area_width' => :'CommentsAreaWidth',
72
- :'comments_area_color' => :'CommentsAreaColor'
73
- }
68
+ :'comments_area_color' => :'CommentsAreaColor',
69
+ })
74
70
  end
75
71
 
76
72
  # Attribute type mapping.
77
73
  def self.swagger_types
78
- {
79
- :'format' => :'String',
74
+ super.merge({
80
75
  :'notes_position' => :'String',
81
76
  :'comments_position' => :'String',
82
77
  :'comments_area_width' => :'Integer',
83
- :'comments_area_color' => :'String'
84
- }
78
+ :'comments_area_color' => :'String',
79
+ })
85
80
  end
86
81
 
87
82
  # Initializes the object
88
83
  # @param [Hash] attributes Model attributes in the form of hash
89
84
  def initialize(attributes = {})
90
- return unless attributes.is_a?(Hash)
91
-
92
- # convert string to symbol for hash key
93
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
94
-
95
- if attributes.has_key?(:'Format')
96
- self.format = attributes[:'Format']
97
- else
98
- self.format = "image"
99
- end
85
+ super
100
86
 
101
87
  if attributes.has_key?(:'NotesPosition')
102
88
  self.notes_position = attributes[:'NotesPosition']
@@ -113,12 +99,13 @@ module AsposeSlidesCloud
113
99
  if attributes.has_key?(:'CommentsAreaColor')
114
100
  self.comments_area_color = attributes[:'CommentsAreaColor']
115
101
  end
102
+ self.format = "image"
116
103
  end
117
104
 
118
105
  # Show invalid properties with the reasons. Usually used together with valid?
119
106
  # @return Array for valid properties with the reasons
120
107
  def list_invalid_properties
121
- invalid_properties = Array.new
108
+ invalid_properties = super
122
109
  if @notes_position.nil?
123
110
  invalid_properties.push('invalid value for "notes_position", notes_position cannot be nil.')
124
111
  end
@@ -137,6 +124,7 @@ module AsposeSlidesCloud
137
124
  # Check to see if the all the properties in the model are valid
138
125
  # @return true if the model is valid
139
126
  def valid?
127
+ return false if !super
140
128
  return false if @notes_position.nil?
141
129
  notes_position_validator = EnumAttributeValidator.new('String', ['None', 'BottomFull', 'BottomTruncated'])
142
130
  return false unless notes_position_validator.valid?(@notes_position)
@@ -172,6 +160,7 @@ module AsposeSlidesCloud
172
160
  def ==(o)
173
161
  return true if self.equal?(o)
174
162
  self.class == o.class &&
163
+ default_regular_font == o.default_regular_font &&
175
164
  format == o.format &&
176
165
  notes_position == o.notes_position &&
177
166
  comments_position == o.comments_position &&
@@ -188,7 +177,7 @@ module AsposeSlidesCloud
188
177
  # Calculates hash code according to all attributes.
189
178
  # @return [Fixnum] Hash code
190
179
  def hash
191
- [format, notes_position, comments_position, comments_area_width, comments_area_color].hash
180
+ [default_regular_font, format, notes_position, comments_position, comments_area_width, comments_area_color].hash
192
181
  end
193
182
 
194
183
  # Builds the object from hash
@@ -24,51 +24,28 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # List of images.
27
- class Images
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 Images < ResourceBase
34
28
  # Image list.
35
29
  attr_accessor :list
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
- :'list' => :'List'
43
- }
33
+ super.merge({
34
+ :'list' => :'List',
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
- :'list' => :'Array<Image>'
52
- }
40
+ super.merge({
41
+ :'list' => :'Array<Image>',
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?(:'List')
74
51
  if (value = attributes[:'List']).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
 
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
43
43
  :'direction' => :'Direction',
44
44
  :'distance' => :'Distance',
45
45
  :'blur_radius' => :'BlurRadius',
46
- :'shadow_color' => :'ShadowColor'
46
+ :'shadow_color' => :'ShadowColor',
47
47
  }
48
48
  end
49
49
 
@@ -53,7 +53,7 @@ module AsposeSlidesCloud
53
53
  :'direction' => :'Float',
54
54
  :'distance' => :'Float',
55
55
  :'blur_radius' => :'Float',
56
- :'shadow_color' => :'String'
56
+ :'shadow_color' => :'String',
57
57
  }
58
58
  end
59
59
 
@@ -39,7 +39,7 @@ module AsposeSlidesCloud
39
39
  {
40
40
  :'template' => :'Template',
41
41
  :'html_data' => :'HtmlData',
42
- :'template_data' => :'TemplateData'
42
+ :'template_data' => :'TemplateData',
43
43
  }
44
44
  end
45
45
 
@@ -48,7 +48,7 @@ module AsposeSlidesCloud
48
48
  {
49
49
  :'template' => :'InputFile',
50
50
  :'html_data' => :'InputFile',
51
- :'template_data' => :'InputFile'
51
+ :'template_data' => :'InputFile',
52
52
  }
53
53
  end
54
54
 
@@ -56,7 +56,7 @@ module AsposeSlidesCloud
56
56
  def self.attribute_map
57
57
  {
58
58
  :'password' => :'Password',
59
- :'type' => :'Type'
59
+ :'type' => :'Type',
60
60
  }
61
61
  end
62
62
 
@@ -64,7 +64,7 @@ module AsposeSlidesCloud
64
64
  def self.swagger_types
65
65
  {
66
66
  :'password' => :'String',
67
- :'type' => :'String'
67
+ :'type' => :'String',
68
68
  }
69
69
  end
70
70
 
@@ -35,7 +35,7 @@ module AsposeSlidesCloud
35
35
  def self.attribute_map
36
36
  {
37
37
  :'effects' => :'Effects',
38
- :'trigger_shape_index' => :'TriggerShapeIndex'
38
+ :'trigger_shape_index' => :'TriggerShapeIndex',
39
39
  }
40
40
  end
41
41
 
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
43
43
  def self.swagger_types
44
44
  {
45
45
  :'effects' => :'Array<Effect>',
46
- :'trigger_shape_index' => :'Integer'
46
+ :'trigger_shape_index' => :'Integer',
47
47
  }
48
48
  end
49
49
 
@@ -24,13 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Layout slide.
27
- class LayoutSlide
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 LayoutSlide < ResourceBase
34
28
  # Name.
35
29
  attr_accessor :name
36
30
 
@@ -67,45 +61,28 @@ module AsposeSlidesCloud
67
61
 
68
62
  # Attribute mapping from ruby-style variable name to JSON key.
69
63
  def self.attribute_map
70
- {
71
- :'self_uri' => :'SelfUri',
72
- :'alternate_links' => :'AlternateLinks',
64
+ super.merge({
73
65
  :'name' => :'Name',
74
66
  :'type' => :'Type',
75
67
  :'master_slide' => :'MasterSlide',
76
- :'depending_slides' => :'DependingSlides'
77
- }
68
+ :'depending_slides' => :'DependingSlides',
69
+ })
78
70
  end
79
71
 
80
72
  # Attribute type mapping.
81
73
  def self.swagger_types
82
- {
83
- :'self_uri' => :'ResourceUri',
84
- :'alternate_links' => :'Array<ResourceUri>',
74
+ super.merge({
85
75
  :'name' => :'String',
86
76
  :'type' => :'String',
87
- :'master_slide' => :'ResourceUriElement',
88
- :'depending_slides' => :'Array<ResourceUriElement>'
89
- }
77
+ :'master_slide' => :'ResourceUri',
78
+ :'depending_slides' => :'Array<ResourceUri>',
79
+ })
90
80
  end
91
81
 
92
82
  # Initializes the object
93
83
  # @param [Hash] attributes Model attributes in the form of hash
94
84
  def initialize(attributes = {})
95
- return unless attributes.is_a?(Hash)
96
-
97
- # convert string to symbol for hash key
98
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
99
-
100
- if attributes.has_key?(:'SelfUri')
101
- self.self_uri = attributes[:'SelfUri']
102
- end
103
-
104
- if attributes.has_key?(:'AlternateLinks')
105
- if (value = attributes[:'AlternateLinks']).is_a?(Array)
106
- self.alternate_links = value
107
- end
108
- end
85
+ super
109
86
 
110
87
  if attributes.has_key?(:'Name')
111
88
  self.name = attributes[:'Name']
@@ -129,7 +106,7 @@ module AsposeSlidesCloud
129
106
  # Show invalid properties with the reasons. Usually used together with valid?
130
107
  # @return Array for valid properties with the reasons
131
108
  def list_invalid_properties
132
- invalid_properties = Array.new
109
+ invalid_properties = super
133
110
  if @type.nil?
134
111
  invalid_properties.push('invalid value for "type", type cannot be nil.')
135
112
  end
@@ -140,6 +117,7 @@ module AsposeSlidesCloud
140
117
  # Check to see if the all the properties in the model are valid
141
118
  # @return true if the model is valid
142
119
  def valid?
120
+ return false if !super
143
121
  return false if @type.nil?
144
122
  type_validator = EnumAttributeValidator.new('String', ['Title', 'Text', 'TwoColumnText', 'Table', 'TextAndChart', 'ChartAndText', 'Diagram', 'Chart', 'TextAndClipArt', 'ClipArtAndText', 'TitleOnly', 'Blank', 'TextAndObject', 'ObjectAndText', 'Object', 'TitleAndObject', 'TextAndMedia', 'MediaAndText', 'ObjectOverText', 'TextOverObject', 'TextAndTwoObjects', 'TwoObjectsAndText', 'TwoObjectsOverText', 'FourObjects', 'VerticalText', 'ClipArtAndVerticalText', 'VerticalTitleAndText', 'VerticalTitleAndTextOverChart', 'TwoObjects', 'ObjectAndTwoObject', 'TwoObjectsAndObject', 'SectionHeader', 'TwoTextAndTwoObjects', 'TitleObjectAndCaption', 'PictureAndCaption', 'Custom'])
145
123
  return false unless type_validator.valid?(@type)
@@ -24,51 +24,28 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Layout slide list.
27
- class LayoutSlides
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 LayoutSlides < ResourceBase
34
28
  # List of layout slide links.
35
29
  attr_accessor :slide_list
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
- :'slide_list' => :'SlideList'
43
- }
33
+ super.merge({
34
+ :'slide_list' => :'SlideList',
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
- :'slide_list' => :'Array<ResourceUriElement>'
52
- }
40
+ super.merge({
41
+ :'slide_list' => :'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?(:'SlideList')
74
51
  if (value = attributes[:'SlideList']).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
 
@@ -85,7 +85,7 @@ module AsposeSlidesCloud
85
85
  :'overlay' => :'Overlay',
86
86
  :'fill_format' => :'FillFormat',
87
87
  :'effect_format' => :'EffectFormat',
88
- :'line_format' => :'LineFormat'
88
+ :'line_format' => :'LineFormat',
89
89
  }
90
90
  end
91
91
 
@@ -100,7 +100,7 @@ module AsposeSlidesCloud
100
100
  :'overlay' => :'BOOLEAN',
101
101
  :'fill_format' => :'FillFormat',
102
102
  :'effect_format' => :'EffectFormat',
103
- :'line_format' => :'LineFormat'
103
+ :'line_format' => :'LineFormat',
104
104
  }
105
105
  end
106
106
 
@@ -40,6 +40,9 @@ module AsposeSlidesCloud
40
40
  # Style.
41
41
  attr_accessor :style
42
42
 
43
+ # Sketch type.
44
+ attr_accessor :sketch_type
45
+
43
46
  # Begin arrowhead.
44
47
  attr_accessor :begin_arrow_head
45
48
 
@@ -88,12 +91,13 @@ module AsposeSlidesCloud
88
91
  :'dash_style' => :'DashStyle',
89
92
  :'join_style' => :'JoinStyle',
90
93
  :'style' => :'Style',
94
+ :'sketch_type' => :'SketchType',
91
95
  :'begin_arrow_head' => :'BeginArrowHead',
92
96
  :'end_arrow_head' => :'EndArrowHead',
93
97
  :'custom_dash_pattern' => :'CustomDashPattern',
94
98
  :'fill_format' => :'FillFormat',
95
99
  :'miter_limit' => :'MiterLimit',
96
- :'width' => :'Width'
100
+ :'width' => :'Width',
97
101
  }
98
102
  end
99
103
 
@@ -105,12 +109,13 @@ module AsposeSlidesCloud
105
109
  :'dash_style' => :'String',
106
110
  :'join_style' => :'String',
107
111
  :'style' => :'String',
112
+ :'sketch_type' => :'String',
108
113
  :'begin_arrow_head' => :'ArrowHeadProperties',
109
114
  :'end_arrow_head' => :'ArrowHeadProperties',
110
115
  :'custom_dash_pattern' => :'CustomDashPattern',
111
116
  :'fill_format' => :'FillFormat',
112
117
  :'miter_limit' => :'Float',
113
- :'width' => :'Float'
118
+ :'width' => :'Float',
114
119
  }
115
120
  end
116
121
 
@@ -142,6 +147,10 @@ module AsposeSlidesCloud
142
147
  self.style = attributes[:'Style']
143
148
  end
144
149
 
150
+ if attributes.has_key?(:'SketchType')
151
+ self.sketch_type = attributes[:'SketchType']
152
+ end
153
+
145
154
  if attributes.has_key?(:'BeginArrowHead')
146
155
  self.begin_arrow_head = attributes[:'BeginArrowHead']
147
156
  end
@@ -187,6 +196,8 @@ module AsposeSlidesCloud
187
196
  return false unless join_style_validator.valid?(@join_style)
188
197
  style_validator = EnumAttributeValidator.new('String', ['Single', 'ThinThin', 'ThinThick', 'ThickThin', 'ThickBetweenThin', 'NotDefined'])
189
198
  return false unless style_validator.valid?(@style)
199
+ sketch_type_validator = EnumAttributeValidator.new('String', ['None', 'Curved', 'Freehand', 'Scribble', 'NotDefined'])
200
+ return false unless sketch_type_validator.valid?(@sketch_type)
190
201
  true
191
202
  end
192
203
 
@@ -240,6 +251,16 @@ module AsposeSlidesCloud
240
251
  @style = style
241
252
  end
242
253
 
254
+ # Custom attribute writer method checking allowed values (enum).
255
+ # @param [Object] sketch_type Object to be assigned
256
+ def sketch_type=(sketch_type)
257
+ validator = EnumAttributeValidator.new('String', ['None', 'Curved', 'Freehand', 'Scribble', 'NotDefined'])
258
+ unless validator.valid?(sketch_type)
259
+ fail ArgumentError, 'invalid value for "sketch_type", must be one of #{validator.allowable_values}.'
260
+ end
261
+ @sketch_type = sketch_type
262
+ end
263
+
243
264
  # Checks equality by comparing each attribute.
244
265
  # @param [Object] Object to be compared
245
266
  def ==(o)
@@ -250,6 +271,7 @@ module AsposeSlidesCloud
250
271
  dash_style == o.dash_style &&
251
272
  join_style == o.join_style &&
252
273
  style == o.style &&
274
+ sketch_type == o.sketch_type &&
253
275
  begin_arrow_head == o.begin_arrow_head &&
254
276
  end_arrow_head == o.end_arrow_head &&
255
277
  custom_dash_pattern == o.custom_dash_pattern &&
@@ -267,7 +289,7 @@ module AsposeSlidesCloud
267
289
  # Calculates hash code according to all attributes.
268
290
  # @return [Fixnum] Hash code
269
291
  def hash
270
- [alignment, cap_style, dash_style, join_style, style, begin_arrow_head, end_arrow_head, custom_dash_pattern, fill_format, miter_limit, width].hash
292
+ [alignment, cap_style, dash_style, join_style, style, sketch_type, begin_arrow_head, end_arrow_head, custom_dash_pattern, fill_format, miter_limit, width].hash
271
293
  end
272
294
 
273
295
  # Builds the object from hash