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,55 +24,32 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents list of Links to Paragraphs resources
|
27
|
-
class Portions
|
28
|
-
# Gets or sets the link to this resource.
|
29
|
-
attr_accessor :self_uri
|
30
|
-
|
31
|
-
# List of alternate links.
|
32
|
-
attr_accessor :alternate_links
|
33
|
-
|
27
|
+
class Portions < ResourceBase
|
34
28
|
# List of portion links.
|
35
|
-
attr_accessor :
|
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
|
-
:'portion_links' => :'PortionLinks'
|
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
|
-
:'portion_links' => :'Array<ResourceUriElement>'
|
52
|
-
}
|
40
|
+
super.merge({
|
41
|
+
:'items' => :'Array<Portion>',
|
42
|
+
})
|
53
43
|
end
|
54
44
|
|
55
45
|
# Initializes the object
|
56
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
57
47
|
def initialize(attributes = {})
|
58
|
-
|
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
|
48
|
+
super
|
66
49
|
|
67
|
-
if attributes.has_key?(:'
|
68
|
-
if (value = attributes[:'
|
69
|
-
self.
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
|
-
if attributes.has_key?(:'PortionLinks')
|
74
|
-
if (value = attributes[:'PortionLinks']).is_a?(Array)
|
75
|
-
self.portion_links = value
|
50
|
+
if attributes.has_key?(:'Items')
|
51
|
+
if (value = attributes[:'Items']).is_a?(Array)
|
52
|
+
self.items = value
|
76
53
|
end
|
77
54
|
end
|
78
55
|
end
|
@@ -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
|
|
@@ -97,7 +75,7 @@ module AsposeSlidesCloud
|
|
97
75
|
self.class == o.class &&
|
98
76
|
self_uri == o.self_uri &&
|
99
77
|
alternate_links == o.alternate_links &&
|
100
|
-
|
78
|
+
items == o.items
|
101
79
|
end
|
102
80
|
|
103
81
|
# @see the `==` method
|
@@ -109,7 +87,7 @@ module AsposeSlidesCloud
|
|
109
87
|
# Calculates hash code according to all attributes.
|
110
88
|
# @return [Fixnum] Hash code
|
111
89
|
def hash
|
112
|
-
[self_uri, alternate_links,
|
90
|
+
[self_uri, alternate_links, items].hash
|
113
91
|
end
|
114
92
|
|
115
93
|
# Builds the object from hash
|
@@ -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,10 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Provides options that control how a presentation is saved in PPTX format.
|
27
|
-
class PptxExportOptions
|
28
|
-
# Export format.
|
29
|
-
attr_accessor :format
|
30
|
-
|
27
|
+
class PptxExportOptions < ExportOptions
|
31
28
|
# The conformance class to which the PresentationML document conforms. Read/write Conformance.
|
32
29
|
attr_accessor :conformance
|
33
30
|
|
@@ -55,43 +52,33 @@ module AsposeSlidesCloud
|
|
55
52
|
|
56
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
57
54
|
def self.attribute_map
|
58
|
-
{
|
59
|
-
:'
|
60
|
-
|
61
|
-
}
|
55
|
+
super.merge({
|
56
|
+
:'conformance' => :'Conformance',
|
57
|
+
})
|
62
58
|
end
|
63
59
|
|
64
60
|
# Attribute type mapping.
|
65
61
|
def self.swagger_types
|
66
|
-
{
|
67
|
-
:'
|
68
|
-
|
69
|
-
}
|
62
|
+
super.merge({
|
63
|
+
:'conformance' => :'String',
|
64
|
+
})
|
70
65
|
end
|
71
66
|
|
72
67
|
# Initializes the object
|
73
68
|
# @param [Hash] attributes Model attributes in the form of hash
|
74
69
|
def initialize(attributes = {})
|
75
|
-
|
76
|
-
|
77
|
-
# convert string to symbol for hash key
|
78
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
79
|
-
|
80
|
-
if attributes.has_key?(:'Format')
|
81
|
-
self.format = attributes[:'Format']
|
82
|
-
else
|
83
|
-
self.format = "pptx"
|
84
|
-
end
|
70
|
+
super
|
85
71
|
|
86
72
|
if attributes.has_key?(:'Conformance')
|
87
73
|
self.conformance = attributes[:'Conformance']
|
88
74
|
end
|
75
|
+
self.format = "pptx"
|
89
76
|
end
|
90
77
|
|
91
78
|
# Show invalid properties with the reasons. Usually used together with valid?
|
92
79
|
# @return Array for valid properties with the reasons
|
93
80
|
def list_invalid_properties
|
94
|
-
invalid_properties =
|
81
|
+
invalid_properties = super
|
95
82
|
if @conformance.nil?
|
96
83
|
invalid_properties.push('invalid value for "conformance", conformance cannot be nil.')
|
97
84
|
end
|
@@ -102,6 +89,7 @@ module AsposeSlidesCloud
|
|
102
89
|
# Check to see if the all the properties in the model are valid
|
103
90
|
# @return true if the model is valid
|
104
91
|
def valid?
|
92
|
+
return false if !super
|
105
93
|
return false if @conformance.nil?
|
106
94
|
conformance_validator = EnumAttributeValidator.new('String', ['Ecma376_2006', 'Iso29500_2008_Transitional', 'Iso29500_2008_Strict'])
|
107
95
|
return false unless conformance_validator.valid?(@conformance)
|
@@ -123,6 +111,7 @@ module AsposeSlidesCloud
|
|
123
111
|
def ==(o)
|
124
112
|
return true if self.equal?(o)
|
125
113
|
self.class == o.class &&
|
114
|
+
default_regular_font == o.default_regular_font &&
|
126
115
|
format == o.format &&
|
127
116
|
conformance == o.conformance
|
128
117
|
end
|
@@ -136,7 +125,7 @@ module AsposeSlidesCloud
|
|
136
125
|
# Calculates hash code according to all attributes.
|
137
126
|
# @return [Fixnum] Hash code
|
138
127
|
def hash
|
139
|
-
[format, conformance].hash
|
128
|
+
[default_regular_font, format, conformance].hash
|
140
129
|
end
|
141
130
|
|
142
131
|
# Builds the object from hash
|
@@ -145,15 +134,27 @@ module AsposeSlidesCloud
|
|
145
134
|
def build_from_hash(attributes)
|
146
135
|
return nil unless attributes.is_a?(Hash)
|
147
136
|
self.class.swagger_types.each_pair do |key, type|
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
if
|
152
|
-
|
137
|
+
mapKey = self.class.attribute_map[key]
|
138
|
+
if !mapKey.nil?
|
139
|
+
val = attributes[mapKey]
|
140
|
+
if val.nil?
|
141
|
+
mapKeyString = mapKey.to_s
|
142
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
143
|
+
mapKey = mapKeyString.to_sym
|
144
|
+
val = attributes[mapKey]
|
145
|
+
end
|
146
|
+
if !val.nil?
|
147
|
+
if type =~ /\AArray<(.*)>/i
|
148
|
+
# check to ensure the input is an array given that the the attribute
|
149
|
+
# is documented as an array but the input is not
|
150
|
+
if val.is_a?(Array)
|
151
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
152
|
+
end
|
153
|
+
else
|
154
|
+
self.send("#{key}=", _deserialize(type, val))
|
155
|
+
end
|
153
156
|
end
|
154
|
-
|
155
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
156
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
157
|
+
end
|
157
158
|
end
|
158
159
|
|
159
160
|
self
|
@@ -39,7 +39,7 @@ module AsposeSlidesCloud
|
|
39
39
|
{
|
40
40
|
:'path' => :'Path',
|
41
41
|
:'password' => :'Password',
|
42
|
-
:'slides' => :'Slides'
|
42
|
+
:'slides' => :'Slides',
|
43
43
|
}
|
44
44
|
end
|
45
45
|
|
@@ -48,7 +48,7 @@ module AsposeSlidesCloud
|
|
48
48
|
{
|
49
49
|
:'path' => :'String',
|
50
50
|
:'password' => :'String',
|
51
|
-
:'slides' => :'Array<Integer>'
|
51
|
+
:'slides' => :'Array<Integer>',
|
52
52
|
}
|
53
53
|
end
|
54
54
|
|
@@ -116,15 +116,27 @@ module AsposeSlidesCloud
|
|
116
116
|
def build_from_hash(attributes)
|
117
117
|
return nil unless attributes.is_a?(Hash)
|
118
118
|
self.class.swagger_types.each_pair do |key, type|
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
if
|
123
|
-
|
119
|
+
mapKey = self.class.attribute_map[key]
|
120
|
+
if !mapKey.nil?
|
121
|
+
val = attributes[mapKey]
|
122
|
+
if val.nil?
|
123
|
+
mapKeyString = mapKey.to_s
|
124
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
125
|
+
mapKey = mapKeyString.to_sym
|
126
|
+
val = attributes[mapKey]
|
124
127
|
end
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
+
if !val.nil?
|
129
|
+
if type =~ /\AArray<(.*)>/i
|
130
|
+
# check to ensure the input is an array given that the the attribute
|
131
|
+
# is documented as an array but the input is not
|
132
|
+
if val.is_a?(Array)
|
133
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
134
|
+
end
|
135
|
+
else
|
136
|
+
self.send("#{key}=", _deserialize(type, val))
|
137
|
+
end
|
138
|
+
end
|
139
|
+
end
|
128
140
|
end
|
129
141
|
|
130
142
|
self
|
@@ -35,7 +35,7 @@ module AsposeSlidesCloud
|
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
37
|
:'presentation_paths' => :'PresentationPaths',
|
38
|
-
:'presentation_passwords' => :'PresentationPasswords'
|
38
|
+
:'presentation_passwords' => :'PresentationPasswords',
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
|
|
43
43
|
def self.swagger_types
|
44
44
|
{
|
45
45
|
:'presentation_paths' => :'Array<String>',
|
46
|
-
:'presentation_passwords' => :'Array<String>'
|
46
|
+
:'presentation_passwords' => :'Array<String>',
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|
@@ -108,15 +108,27 @@ module AsposeSlidesCloud
|
|
108
108
|
def build_from_hash(attributes)
|
109
109
|
return nil unless attributes.is_a?(Hash)
|
110
110
|
self.class.swagger_types.each_pair do |key, type|
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
if
|
115
|
-
|
111
|
+
mapKey = self.class.attribute_map[key]
|
112
|
+
if !mapKey.nil?
|
113
|
+
val = attributes[mapKey]
|
114
|
+
if val.nil?
|
115
|
+
mapKeyString = mapKey.to_s
|
116
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
117
|
+
mapKey = mapKeyString.to_sym
|
118
|
+
val = attributes[mapKey]
|
116
119
|
end
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
+
if !val.nil?
|
121
|
+
if type =~ /\AArray<(.*)>/i
|
122
|
+
# check to ensure the input is an array given that the the attribute
|
123
|
+
# is documented as an array but the input is not
|
124
|
+
if val.is_a?(Array)
|
125
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
126
|
+
end
|
127
|
+
else
|
128
|
+
self.send("#{key}=", _deserialize(type, val))
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
120
132
|
end
|
121
133
|
|
122
134
|
self
|
@@ -65,7 +65,7 @@ module AsposeSlidesCloud
|
|
65
65
|
:'direction' => :'Direction',
|
66
66
|
:'distance' => :'Distance',
|
67
67
|
:'preset' => :'Preset',
|
68
|
-
:'shadow_color' => :'ShadowColor'
|
68
|
+
:'shadow_color' => :'ShadowColor',
|
69
69
|
}
|
70
70
|
end
|
71
71
|
|
@@ -75,7 +75,7 @@ module AsposeSlidesCloud
|
|
75
75
|
:'direction' => :'Float',
|
76
76
|
:'distance' => :'Float',
|
77
77
|
:'preset' => :'String',
|
78
|
-
:'shadow_color' => :'String'
|
78
|
+
:'shadow_color' => :'String',
|
79
79
|
}
|
80
80
|
end
|
81
81
|
|
@@ -173,15 +173,27 @@ module AsposeSlidesCloud
|
|
173
173
|
def build_from_hash(attributes)
|
174
174
|
return nil unless attributes.is_a?(Hash)
|
175
175
|
self.class.swagger_types.each_pair do |key, type|
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
if
|
180
|
-
|
176
|
+
mapKey = self.class.attribute_map[key]
|
177
|
+
if !mapKey.nil?
|
178
|
+
val = attributes[mapKey]
|
179
|
+
if val.nil?
|
180
|
+
mapKeyString = mapKey.to_s
|
181
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
182
|
+
mapKey = mapKeyString.to_sym
|
183
|
+
val = attributes[mapKey]
|
181
184
|
end
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
+
if !val.nil?
|
186
|
+
if type =~ /\AArray<(.*)>/i
|
187
|
+
# check to ensure the input is an array given that the the attribute
|
188
|
+
# is documented as an array but the input is not
|
189
|
+
if val.is_a?(Array)
|
190
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
191
|
+
end
|
192
|
+
else
|
193
|
+
self.send("#{key}=", _deserialize(type, val))
|
194
|
+
end
|
195
|
+
end
|
196
|
+
end
|
185
197
|
end
|
186
198
|
|
187
199
|
self
|
@@ -105,7 +105,7 @@ module AsposeSlidesCloud
|
|
105
105
|
:'start_reflection_opacity' => :'StartReflectionOpacity',
|
106
106
|
:'end_reflection_opacity' => :'EndReflectionOpacity',
|
107
107
|
:'rectangle_align' => :'RectangleAlign',
|
108
|
-
:'rotate_shadow_with_shape' => :'RotateShadowWithShape'
|
108
|
+
:'rotate_shadow_with_shape' => :'RotateShadowWithShape',
|
109
109
|
}
|
110
110
|
end
|
111
111
|
|
@@ -125,7 +125,7 @@ module AsposeSlidesCloud
|
|
125
125
|
:'start_reflection_opacity' => :'Float',
|
126
126
|
:'end_reflection_opacity' => :'Float',
|
127
127
|
:'rectangle_align' => :'String',
|
128
|
-
:'rotate_shadow_with_shape' => :'BOOLEAN'
|
128
|
+
:'rotate_shadow_with_shape' => :'BOOLEAN',
|
129
129
|
}
|
130
130
|
end
|
131
131
|
|
@@ -328,15 +328,27 @@ module AsposeSlidesCloud
|
|
328
328
|
def build_from_hash(attributes)
|
329
329
|
return nil unless attributes.is_a?(Hash)
|
330
330
|
self.class.swagger_types.each_pair do |key, type|
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
if
|
335
|
-
|
331
|
+
mapKey = self.class.attribute_map[key]
|
332
|
+
if !mapKey.nil?
|
333
|
+
val = attributes[mapKey]
|
334
|
+
if val.nil?
|
335
|
+
mapKeyString = mapKey.to_s
|
336
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
337
|
+
mapKey = mapKeyString.to_sym
|
338
|
+
val = attributes[mapKey]
|
336
339
|
end
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
+
if !val.nil?
|
341
|
+
if type =~ /\AArray<(.*)>/i
|
342
|
+
# check to ensure the input is an array given that the the attribute
|
343
|
+
# is documented as an array but the input is not
|
344
|
+
if val.is_a?(Array)
|
345
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
346
|
+
end
|
347
|
+
else
|
348
|
+
self.send("#{key}=", _deserialize(type, val))
|
349
|
+
end
|
350
|
+
end
|
351
|
+
end
|
340
352
|
end
|
341
353
|
|
342
354
|
self
|