aspose_slides_cloud 20.6.0 → 21.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/TestData/ChartTest.pptx +0 -0
- data/TestData/Sections.pptx +0 -0
- data/TestData/test-unprotected.pptx +0 -0
- data/TestData/test.pptx +0 -0
- data/lib/aspose_slides_cloud.rb +13 -5
- data/lib/aspose_slides_cloud/api/slides_api.rb +2432 -691
- data/lib/aspose_slides_cloud/api/slides_api_requests.rb +609 -31
- data/lib/aspose_slides_cloud/api_client.rb +30 -24
- data/lib/aspose_slides_cloud/configuration.rb +7 -2
- data/lib/aspose_slides_cloud/models/add_layout_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/add_master_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/add_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/add_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/api_info.rb +22 -10
- data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +22 -10
- data/lib/aspose_slides_cloud/models/audio_frame.rb +32 -246
- data/lib/aspose_slides_cloud/models/axes.rb +22 -10
- data/lib/aspose_slides_cloud/models/axis.rb +22 -10
- data/lib/aspose_slides_cloud/models/base64_input_file.rb +31 -57
- data/lib/aspose_slides_cloud/models/blur_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +31 -222
- data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +30 -48
- data/lib/aspose_slides_cloud/models/bubble_series.rb +31 -211
- data/lib/aspose_slides_cloud/models/chart.rb +32 -220
- data/lib/aspose_slides_cloud/models/chart_category.rb +54 -20
- data/lib/aspose_slides_cloud/models/chart_title.rb +22 -10
- data/lib/aspose_slides_cloud/models/chart_wall.rb +22 -10
- data/lib/aspose_slides_cloud/models/color_scheme.rb +30 -40
- data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +22 -10
- data/lib/aspose_slides_cloud/models/connector.rb +32 -244
- data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +22 -10
- data/lib/aspose_slides_cloud/models/{resource_uri_element.rb → data_point.rb} +24 -22
- data/lib/aspose_slides_cloud/models/disc_usage.rb +22 -10
- data/lib/aspose_slides_cloud/models/document.rb +35 -45
- data/lib/aspose_slides_cloud/models/document_properties.rb +30 -40
- data/lib/aspose_slides_cloud/models/document_property.rb +30 -40
- data/lib/aspose_slides_cloud/models/document_replace_result.rb +30 -94
- data/lib/aspose_slides_cloud/models/effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/effect_format.rb +22 -10
- data/lib/aspose_slides_cloud/models/entity_exists.rb +212 -0
- data/lib/aspose_slides_cloud/models/error.rb +22 -10
- data/lib/aspose_slides_cloud/models/error_details.rb +22 -10
- data/lib/aspose_slides_cloud/models/export_options.rb +33 -11
- data/lib/aspose_slides_cloud/models/file_version.rb +30 -75
- data/lib/aspose_slides_cloud/models/file_versions.rb +22 -10
- data/lib/aspose_slides_cloud/models/files_list.rb +22 -10
- data/lib/aspose_slides_cloud/models/files_upload_result.rb +22 -10
- data/lib/aspose_slides_cloud/models/fill_format.rb +22 -10
- data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/font_scheme.rb +30 -40
- data/lib/aspose_slides_cloud/models/font_set.rb +22 -10
- data/lib/aspose_slides_cloud/models/format_scheme.rb +30 -40
- data/lib/aspose_slides_cloud/models/geometry_shape.rb +33 -212
- data/lib/aspose_slides_cloud/models/glow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/gradient_fill.rb +31 -48
- data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +22 -10
- data/lib/aspose_slides_cloud/models/graphical_object.rb +31 -219
- data/lib/aspose_slides_cloud/models/group_shape.rb +31 -219
- data/lib/aspose_slides_cloud/models/header_footer.rb +247 -0
- data/lib/aspose_slides_cloud/models/html_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +22 -20
- data/lib/aspose_slides_cloud/models/image.rb +30 -40
- data/lib/aspose_slides_cloud/models/image_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/images.rb +30 -40
- data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/input.rb +22 -10
- data/lib/aspose_slides_cloud/models/input_file.rb +22 -10
- data/lib/aspose_slides_cloud/models/interactive_sequence.rb +22 -10
- data/lib/aspose_slides_cloud/models/layout_slide.rb +31 -41
- data/lib/aspose_slides_cloud/models/layout_slides.rb +30 -40
- data/lib/aspose_slides_cloud/models/legend.rb +22 -10
- data/lib/aspose_slides_cloud/models/line_format.rb +22 -10
- data/lib/aspose_slides_cloud/models/master_slide.rb +31 -41
- data/lib/aspose_slides_cloud/models/master_slides.rb +30 -40
- data/lib/aspose_slides_cloud/models/merge.rb +31 -48
- data/lib/aspose_slides_cloud/models/merging_source.rb +22 -10
- data/lib/aspose_slides_cloud/models/no_fill.rb +29 -46
- data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +22 -10
- data/lib/aspose_slides_cloud/models/notes_slide.rb +30 -40
- data/lib/aspose_slides_cloud/models/notes_slide_header_footer.rb +267 -0
- data/lib/aspose_slides_cloud/models/object_exist.rb +22 -10
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +32 -220
- data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +30 -20
- data/lib/aspose_slides_cloud/models/one_value_series.rb +31 -211
- data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +22 -10
- data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/output_file.rb +22 -10
- data/lib/aspose_slides_cloud/models/paragraph.rb +30 -40
- data/lib/aspose_slides_cloud/models/paragraphs.rb +30 -40
- data/lib/aspose_slides_cloud/models/path_input_file.rb +31 -57
- data/lib/aspose_slides_cloud/models/path_output_file.rb +31 -48
- data/lib/aspose_slides_cloud/models/pattern_fill.rb +31 -48
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/picture_fill.rb +32 -49
- data/lib/aspose_slides_cloud/models/picture_frame.rb +32 -246
- data/lib/aspose_slides_cloud/models/pipeline.rb +22 -10
- data/lib/aspose_slides_cloud/models/placeholder.rb +30 -40
- data/lib/aspose_slides_cloud/models/placeholders.rb +30 -40
- data/lib/aspose_slides_cloud/models/plot_area.rb +22 -10
- data/lib/aspose_slides_cloud/models/portion.rb +30 -40
- data/lib/aspose_slides_cloud/models/portions.rb +36 -46
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +22 -10
- data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +22 -10
- data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/reflection_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/remove_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/remove_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/reorder_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/replace_text.rb +31 -48
- data/lib/aspose_slides_cloud/models/request_input_file.rb +31 -57
- data/lib/aspose_slides_cloud/models/reset_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/resource_base.rb +22 -10
- data/lib/aspose_slides_cloud/models/resource_uri.rb +22 -10
- data/lib/aspose_slides_cloud/models/response_output_file.rb +29 -46
- data/lib/aspose_slides_cloud/models/save.rb +31 -48
- data/lib/aspose_slides_cloud/models/save_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/save_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +30 -20
- data/lib/aspose_slides_cloud/models/scatter_series.rb +31 -211
- data/lib/aspose_slides_cloud/models/section.rb +234 -0
- data/lib/aspose_slides_cloud/models/sections.rb +209 -0
- data/lib/aspose_slides_cloud/models/series.rb +45 -12
- data/lib/aspose_slides_cloud/models/series_marker.rb +22 -10
- data/lib/aspose_slides_cloud/models/shape.rb +32 -244
- data/lib/aspose_slides_cloud/models/shape_base.rb +31 -62
- data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +22 -10
- data/lib/aspose_slides_cloud/models/shapes.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide.rb +37 -47
- data/lib/aspose_slides_cloud/models/slide_animation.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide_background.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide_comment.rb +22 -10
- data/lib/aspose_slides_cloud/models/slide_comments.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide_replace_result.rb +30 -154
- data/lib/aspose_slides_cloud/models/slides.rb +30 -40
- data/lib/aspose_slides_cloud/models/smart_art.rb +32 -220
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +23 -11
- data/lib/aspose_slides_cloud/models/smart_art_shape.rb +30 -217
- data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/solid_fill.rb +31 -48
- data/lib/aspose_slides_cloud/models/split_document_result.rb +30 -40
- data/lib/aspose_slides_cloud/models/storage_exist.rb +22 -10
- data/lib/aspose_slides_cloud/models/storage_file.rb +22 -10
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/table.rb +32 -220
- data/lib/aspose_slides_cloud/models/table_cell.rb +22 -10
- data/lib/aspose_slides_cloud/models/table_column.rb +22 -10
- data/lib/aspose_slides_cloud/models/table_row.rb +22 -10
- data/lib/aspose_slides_cloud/models/task.rb +22 -10
- data/lib/aspose_slides_cloud/models/text_item.rb +22 -10
- data/lib/aspose_slides_cloud/models/text_items.rb +30 -40
- data/lib/aspose_slides_cloud/models/theme.rb +32 -42
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/update_background.rb +31 -48
- data/lib/aspose_slides_cloud/models/update_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/video_frame.rb +32 -246
- data/lib/aspose_slides_cloud/models/view_properties.rb +30 -40
- data/lib/aspose_slides_cloud/models/waterfall_chart_data_point.rb +206 -0
- data/lib/aspose_slides_cloud/models/waterfall_series.rb +31 -222
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/type_registry.rb +324 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +22294 -14411
- data/spec/extra/extra_spec.rb +156 -22
- data/spec/spec_utils.rb +15 -4
- data/testConfig.json +2 -2
- data/testRules.json +141 -73
- metadata +14 -3
@@ -24,13 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents image DTO.
|
27
|
-
class Image
|
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 Image < ResourceBase
|
34
28
|
# Get or sets the width of an image.
|
35
29
|
attr_accessor :width
|
36
30
|
|
@@ -42,43 +36,26 @@ module AsposeSlidesCloud
|
|
42
36
|
|
43
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
44
38
|
def self.attribute_map
|
45
|
-
{
|
46
|
-
:'self_uri' => :'SelfUri',
|
47
|
-
:'alternate_links' => :'AlternateLinks',
|
39
|
+
super.merge({
|
48
40
|
:'width' => :'Width',
|
49
41
|
:'height' => :'Height',
|
50
|
-
:'content_type' => :'ContentType'
|
51
|
-
}
|
42
|
+
:'content_type' => :'ContentType',
|
43
|
+
})
|
52
44
|
end
|
53
45
|
|
54
46
|
# Attribute type mapping.
|
55
47
|
def self.swagger_types
|
56
|
-
{
|
57
|
-
:'self_uri' => :'ResourceUri',
|
58
|
-
:'alternate_links' => :'Array<ResourceUri>',
|
48
|
+
super.merge({
|
59
49
|
:'width' => :'Integer',
|
60
50
|
:'height' => :'Integer',
|
61
|
-
:'content_type' => :'String'
|
62
|
-
}
|
51
|
+
:'content_type' => :'String',
|
52
|
+
})
|
63
53
|
end
|
64
54
|
|
65
55
|
# Initializes the object
|
66
56
|
# @param [Hash] attributes Model attributes in the form of hash
|
67
57
|
def initialize(attributes = {})
|
68
|
-
|
69
|
-
|
70
|
-
# convert string to symbol for hash key
|
71
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
72
|
-
|
73
|
-
if attributes.has_key?(:'SelfUri')
|
74
|
-
self.self_uri = attributes[:'SelfUri']
|
75
|
-
end
|
76
|
-
|
77
|
-
if attributes.has_key?(:'AlternateLinks')
|
78
|
-
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
79
|
-
self.alternate_links = value
|
80
|
-
end
|
81
|
-
end
|
58
|
+
super
|
82
59
|
|
83
60
|
if attributes.has_key?(:'Width')
|
84
61
|
self.width = attributes[:'Width']
|
@@ -96,7 +73,7 @@ module AsposeSlidesCloud
|
|
96
73
|
# Show invalid properties with the reasons. Usually used together with valid?
|
97
74
|
# @return Array for valid properties with the reasons
|
98
75
|
def list_invalid_properties
|
99
|
-
invalid_properties =
|
76
|
+
invalid_properties = super
|
100
77
|
if @width.nil?
|
101
78
|
invalid_properties.push('invalid value for "width", width cannot be nil.')
|
102
79
|
end
|
@@ -111,6 +88,7 @@ module AsposeSlidesCloud
|
|
111
88
|
# Check to see if the all the properties in the model are valid
|
112
89
|
# @return true if the model is valid
|
113
90
|
def valid?
|
91
|
+
return false if !super
|
114
92
|
return false if @width.nil?
|
115
93
|
return false if @height.nil?
|
116
94
|
true
|
@@ -146,15 +124,27 @@ module AsposeSlidesCloud
|
|
146
124
|
def build_from_hash(attributes)
|
147
125
|
return nil unless attributes.is_a?(Hash)
|
148
126
|
self.class.swagger_types.each_pair do |key, type|
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
if
|
153
|
-
|
127
|
+
mapKey = self.class.attribute_map[key]
|
128
|
+
if !mapKey.nil?
|
129
|
+
val = attributes[mapKey]
|
130
|
+
if val.nil?
|
131
|
+
mapKeyString = mapKey.to_s
|
132
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
133
|
+
mapKey = mapKeyString.to_sym
|
134
|
+
val = attributes[mapKey]
|
154
135
|
end
|
155
|
-
|
156
|
-
|
157
|
-
|
136
|
+
if !val.nil?
|
137
|
+
if type =~ /\AArray<(.*)>/i
|
138
|
+
# check to ensure the input is an array given that the the attribute
|
139
|
+
# is documented as an array but the input is not
|
140
|
+
if val.is_a?(Array)
|
141
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
142
|
+
end
|
143
|
+
else
|
144
|
+
self.send("#{key}=", _deserialize(type, val))
|
145
|
+
end
|
146
|
+
end
|
147
|
+
end
|
158
148
|
end
|
159
149
|
|
160
150
|
self
|
@@ -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
|
-
|
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 =
|
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
|
@@ -197,15 +186,27 @@ module AsposeSlidesCloud
|
|
197
186
|
def build_from_hash(attributes)
|
198
187
|
return nil unless attributes.is_a?(Hash)
|
199
188
|
self.class.swagger_types.each_pair do |key, type|
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
if
|
204
|
-
|
189
|
+
mapKey = self.class.attribute_map[key]
|
190
|
+
if !mapKey.nil?
|
191
|
+
val = attributes[mapKey]
|
192
|
+
if val.nil?
|
193
|
+
mapKeyString = mapKey.to_s
|
194
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
195
|
+
mapKey = mapKeyString.to_sym
|
196
|
+
val = attributes[mapKey]
|
197
|
+
end
|
198
|
+
if !val.nil?
|
199
|
+
if type =~ /\AArray<(.*)>/i
|
200
|
+
# check to ensure the input is an array given that the the attribute
|
201
|
+
# is documented as an array but the input is not
|
202
|
+
if val.is_a?(Array)
|
203
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
204
|
+
end
|
205
|
+
else
|
206
|
+
self.send("#{key}=", _deserialize(type, val))
|
207
|
+
end
|
205
208
|
end
|
206
|
-
|
207
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
208
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
209
|
+
end
|
209
210
|
end
|
210
211
|
|
211
212
|
self
|
@@ -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
|
-
:'
|
41
|
-
|
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
|
-
:'
|
50
|
-
|
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
|
-
|
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 =
|
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
|
|
@@ -118,15 +96,27 @@ module AsposeSlidesCloud
|
|
118
96
|
def build_from_hash(attributes)
|
119
97
|
return nil unless attributes.is_a?(Hash)
|
120
98
|
self.class.swagger_types.each_pair do |key, type|
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
if
|
125
|
-
|
99
|
+
mapKey = self.class.attribute_map[key]
|
100
|
+
if !mapKey.nil?
|
101
|
+
val = attributes[mapKey]
|
102
|
+
if val.nil?
|
103
|
+
mapKeyString = mapKey.to_s
|
104
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
105
|
+
mapKey = mapKeyString.to_sym
|
106
|
+
val = attributes[mapKey]
|
126
107
|
end
|
127
|
-
|
128
|
-
|
129
|
-
|
108
|
+
if !val.nil?
|
109
|
+
if type =~ /\AArray<(.*)>/i
|
110
|
+
# check to ensure the input is an array given that the the attribute
|
111
|
+
# is documented as an array but the input is not
|
112
|
+
if val.is_a?(Array)
|
113
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
114
|
+
end
|
115
|
+
else
|
116
|
+
self.send("#{key}=", _deserialize(type, val))
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
130
120
|
end
|
131
121
|
|
132
122
|
self
|
@@ -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
|
|
@@ -139,15 +139,27 @@ module AsposeSlidesCloud
|
|
139
139
|
def build_from_hash(attributes)
|
140
140
|
return nil unless attributes.is_a?(Hash)
|
141
141
|
self.class.swagger_types.each_pair do |key, type|
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
if
|
146
|
-
|
142
|
+
mapKey = self.class.attribute_map[key]
|
143
|
+
if !mapKey.nil?
|
144
|
+
val = attributes[mapKey]
|
145
|
+
if val.nil?
|
146
|
+
mapKeyString = mapKey.to_s
|
147
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
148
|
+
mapKey = mapKeyString.to_sym
|
149
|
+
val = attributes[mapKey]
|
147
150
|
end
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
+
if !val.nil?
|
152
|
+
if type =~ /\AArray<(.*)>/i
|
153
|
+
# check to ensure the input is an array given that the the attribute
|
154
|
+
# is documented as an array but the input is not
|
155
|
+
if val.is_a?(Array)
|
156
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
157
|
+
end
|
158
|
+
else
|
159
|
+
self.send("#{key}=", _deserialize(type, val))
|
160
|
+
end
|
161
|
+
end
|
162
|
+
end
|
151
163
|
end
|
152
164
|
|
153
165
|
self
|
@@ -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
|
|
@@ -114,15 +114,27 @@ module AsposeSlidesCloud
|
|
114
114
|
def build_from_hash(attributes)
|
115
115
|
return nil unless attributes.is_a?(Hash)
|
116
116
|
self.class.swagger_types.each_pair do |key, type|
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
if
|
121
|
-
|
117
|
+
mapKey = self.class.attribute_map[key]
|
118
|
+
if !mapKey.nil?
|
119
|
+
val = attributes[mapKey]
|
120
|
+
if val.nil?
|
121
|
+
mapKeyString = mapKey.to_s
|
122
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
123
|
+
mapKey = mapKeyString.to_sym
|
124
|
+
val = attributes[mapKey]
|
122
125
|
end
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
+
if !val.nil?
|
127
|
+
if type =~ /\AArray<(.*)>/i
|
128
|
+
# check to ensure the input is an array given that the the attribute
|
129
|
+
# is documented as an array but the input is not
|
130
|
+
if val.is_a?(Array)
|
131
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
132
|
+
end
|
133
|
+
else
|
134
|
+
self.send("#{key}=", _deserialize(type, val))
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
126
138
|
end
|
127
139
|
|
128
140
|
self
|