aspose_slides_cloud 20.5.0 → 20.12.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/lib/aspose_slides_cloud.rb +12 -5
- data/lib/aspose_slides_cloud/api/slides_api.rb +4571 -1683
- data/lib/aspose_slides_cloud/api/slides_api_requests.rb +1191 -185
- data/lib/aspose_slides_cloud/api_client.rb +30 -23
- 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_format.rb +1 -0
- 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 +63 -35
- 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 +33 -50
- data/lib/aspose_slides_cloud/models/save_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/save_slide.rb +33 -50
- 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_export_format.rb +1 -0
- 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 +320 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +25246 -14028
- data/spec/extra/extra_spec.rb +156 -22
- data/spec/spec_utils.rb +11 -4
- data/testConfig.json +2 -2
- data/testRules.json +172 -77
- metadata +12 -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
|
|
@@ -290,15 +290,27 @@ module AsposeSlidesCloud
|
|
290
290
|
def build_from_hash(attributes)
|
291
291
|
return nil unless attributes.is_a?(Hash)
|
292
292
|
self.class.swagger_types.each_pair do |key, type|
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
if
|
297
|
-
|
293
|
+
mapKey = self.class.attribute_map[key]
|
294
|
+
if !mapKey.nil?
|
295
|
+
val = attributes[mapKey]
|
296
|
+
if val.nil?
|
297
|
+
mapKeyString = mapKey.to_s
|
298
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
299
|
+
mapKey = mapKeyString.to_sym
|
300
|
+
val = attributes[mapKey]
|
298
301
|
end
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
+
if !val.nil?
|
303
|
+
if type =~ /\AArray<(.*)>/i
|
304
|
+
# check to ensure the input is an array given that the the attribute
|
305
|
+
# is documented as an array but the input is not
|
306
|
+
if val.is_a?(Array)
|
307
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
308
|
+
end
|
309
|
+
else
|
310
|
+
self.send("#{key}=", _deserialize(type, val))
|
311
|
+
end
|
312
|
+
end
|
313
|
+
end
|
302
314
|
end
|
303
315
|
|
304
316
|
self
|
@@ -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
|
|
@@ -99,15 +99,27 @@ module AsposeSlidesCloud
|
|
99
99
|
def build_from_hash(attributes)
|
100
100
|
return nil unless attributes.is_a?(Hash)
|
101
101
|
self.class.swagger_types.each_pair do |key, type|
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
if
|
106
|
-
|
102
|
+
mapKey = self.class.attribute_map[key]
|
103
|
+
if !mapKey.nil?
|
104
|
+
val = attributes[mapKey]
|
105
|
+
if val.nil?
|
106
|
+
mapKeyString = mapKey.to_s
|
107
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
108
|
+
mapKey = mapKeyString.to_sym
|
109
|
+
val = attributes[mapKey]
|
107
110
|
end
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
+
if !val.nil?
|
112
|
+
if type =~ /\AArray<(.*)>/i
|
113
|
+
# check to ensure the input is an array given that the the attribute
|
114
|
+
# is documented as an array but the input is not
|
115
|
+
if val.is_a?(Array)
|
116
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
117
|
+
end
|
118
|
+
else
|
119
|
+
self.send("#{key}=", _deserialize(type, val))
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
111
123
|
end
|
112
124
|
|
113
125
|
self
|
@@ -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
|
|
@@ -126,15 +126,27 @@ module AsposeSlidesCloud
|
|
126
126
|
def build_from_hash(attributes)
|
127
127
|
return nil unless attributes.is_a?(Hash)
|
128
128
|
self.class.swagger_types.each_pair do |key, type|
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
if
|
133
|
-
|
129
|
+
mapKey = self.class.attribute_map[key]
|
130
|
+
if !mapKey.nil?
|
131
|
+
val = attributes[mapKey]
|
132
|
+
if val.nil?
|
133
|
+
mapKeyString = mapKey.to_s
|
134
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
135
|
+
mapKey = mapKeyString.to_sym
|
136
|
+
val = attributes[mapKey]
|
134
137
|
end
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
+
if !val.nil?
|
139
|
+
if type =~ /\AArray<(.*)>/i
|
140
|
+
# check to ensure the input is an array given that the the attribute
|
141
|
+
# is documented as an array but the input is not
|
142
|
+
if val.is_a?(Array)
|
143
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
144
|
+
end
|
145
|
+
else
|
146
|
+
self.send("#{key}=", _deserialize(type, val))
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|
138
150
|
end
|
139
151
|
|
140
152
|
self
|
@@ -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
|
|
@@ -127,15 +127,27 @@ module AsposeSlidesCloud
|
|
127
127
|
def build_from_hash(attributes)
|
128
128
|
return nil unless attributes.is_a?(Hash)
|
129
129
|
self.class.swagger_types.each_pair do |key, type|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
if
|
134
|
-
|
130
|
+
mapKey = self.class.attribute_map[key]
|
131
|
+
if !mapKey.nil?
|
132
|
+
val = attributes[mapKey]
|
133
|
+
if val.nil?
|
134
|
+
mapKeyString = mapKey.to_s
|
135
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
136
|
+
mapKey = mapKeyString.to_sym
|
137
|
+
val = attributes[mapKey]
|
135
138
|
end
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
+
if !val.nil?
|
140
|
+
if type =~ /\AArray<(.*)>/i
|
141
|
+
# check to ensure the input is an array given that the the attribute
|
142
|
+
# is documented as an array but the input is not
|
143
|
+
if val.is_a?(Array)
|
144
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
145
|
+
end
|
146
|
+
else
|
147
|
+
self.send("#{key}=", _deserialize(type, val))
|
148
|
+
end
|
149
|
+
end
|
150
|
+
end
|
139
151
|
end
|
140
152
|
|
141
153
|
self
|
@@ -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
|
|
@@ -104,15 +104,27 @@ module AsposeSlidesCloud
|
|
104
104
|
def build_from_hash(attributes)
|
105
105
|
return nil unless attributes.is_a?(Hash)
|
106
106
|
self.class.swagger_types.each_pair do |key, type|
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
if
|
111
|
-
|
107
|
+
mapKey = self.class.attribute_map[key]
|
108
|
+
if !mapKey.nil?
|
109
|
+
val = attributes[mapKey]
|
110
|
+
if val.nil?
|
111
|
+
mapKeyString = mapKey.to_s
|
112
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
113
|
+
mapKey = mapKeyString.to_sym
|
114
|
+
val = attributes[mapKey]
|
112
115
|
end
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
+
if !val.nil?
|
117
|
+
if type =~ /\AArray<(.*)>/i
|
118
|
+
# check to ensure the input is an array given that the the attribute
|
119
|
+
# is documented as an array but the input is not
|
120
|
+
if val.is_a?(Array)
|
121
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
122
|
+
end
|
123
|
+
else
|
124
|
+
self.send("#{key}=", _deserialize(type, val))
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
116
128
|
end
|
117
129
|
|
118
130
|
self
|
@@ -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
|
-
:'
|
41
|
-
|
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
|
-
:'
|
50
|
-
|
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
|
-
|
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 =
|
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
|
@@ -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' => :'
|
65
|
-
:'font_scheme' => :'
|
66
|
-
:'format_scheme' => :'
|
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
|
-
|
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 =
|
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
|
|
@@ -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
|