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 comments collection of slide
|
27
|
-
class SlideAnimation
|
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 SlideAnimation < ResourceBase
|
34
28
|
# Main sequence.
|
35
29
|
attr_accessor :main_sequence
|
36
30
|
|
@@ -39,41 +33,24 @@ module AsposeSlidesCloud
|
|
39
33
|
|
40
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
35
|
def self.attribute_map
|
42
|
-
{
|
43
|
-
:'self_uri' => :'SelfUri',
|
44
|
-
:'alternate_links' => :'AlternateLinks',
|
36
|
+
super.merge({
|
45
37
|
:'main_sequence' => :'MainSequence',
|
46
|
-
:'interactive_sequences' => :'InteractiveSequences'
|
47
|
-
}
|
38
|
+
:'interactive_sequences' => :'InteractiveSequences',
|
39
|
+
})
|
48
40
|
end
|
49
41
|
|
50
42
|
# Attribute type mapping.
|
51
43
|
def self.swagger_types
|
52
|
-
{
|
53
|
-
:'self_uri' => :'ResourceUri',
|
54
|
-
:'alternate_links' => :'Array<ResourceUri>',
|
44
|
+
super.merge({
|
55
45
|
:'main_sequence' => :'Array<Effect>',
|
56
|
-
:'interactive_sequences' => :'Array<InteractiveSequence>'
|
57
|
-
}
|
46
|
+
:'interactive_sequences' => :'Array<InteractiveSequence>',
|
47
|
+
})
|
58
48
|
end
|
59
49
|
|
60
50
|
# Initializes the object
|
61
51
|
# @param [Hash] attributes Model attributes in the form of hash
|
62
52
|
def initialize(attributes = {})
|
63
|
-
|
64
|
-
|
65
|
-
# convert string to symbol for hash key
|
66
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
67
|
-
|
68
|
-
if attributes.has_key?(:'SelfUri')
|
69
|
-
self.self_uri = attributes[:'SelfUri']
|
70
|
-
end
|
71
|
-
|
72
|
-
if attributes.has_key?(:'AlternateLinks')
|
73
|
-
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
74
|
-
self.alternate_links = value
|
75
|
-
end
|
76
|
-
end
|
53
|
+
super
|
77
54
|
|
78
55
|
if attributes.has_key?(:'MainSequence')
|
79
56
|
if (value = attributes[:'MainSequence']).is_a?(Array)
|
@@ -91,13 +68,14 @@ module AsposeSlidesCloud
|
|
91
68
|
# Show invalid properties with the reasons. Usually used together with valid?
|
92
69
|
# @return Array for valid properties with the reasons
|
93
70
|
def list_invalid_properties
|
94
|
-
invalid_properties =
|
71
|
+
invalid_properties = super
|
95
72
|
invalid_properties
|
96
73
|
end
|
97
74
|
|
98
75
|
# Check to see if the all the properties in the model are valid
|
99
76
|
# @return true if the model is valid
|
100
77
|
def valid?
|
78
|
+
return false if !super
|
101
79
|
true
|
102
80
|
end
|
103
81
|
|
@@ -130,15 +108,27 @@ module AsposeSlidesCloud
|
|
130
108
|
def build_from_hash(attributes)
|
131
109
|
return nil unless attributes.is_a?(Hash)
|
132
110
|
self.class.swagger_types.each_pair do |key, type|
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
if
|
137
|
-
|
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]
|
138
119
|
end
|
139
|
-
|
140
|
-
|
141
|
-
|
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
|
142
132
|
end
|
143
133
|
|
144
134
|
self
|
@@ -24,13 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents background of slide
|
27
|
-
class SlideBackground
|
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 SlideBackground < ResourceBase
|
34
28
|
# Fill type.
|
35
29
|
attr_accessor :type
|
36
30
|
|
@@ -64,43 +58,26 @@ module AsposeSlidesCloud
|
|
64
58
|
|
65
59
|
# Attribute mapping from ruby-style variable name to JSON key.
|
66
60
|
def self.attribute_map
|
67
|
-
{
|
68
|
-
:'self_uri' => :'SelfUri',
|
69
|
-
:'alternate_links' => :'AlternateLinks',
|
61
|
+
super.merge({
|
70
62
|
:'type' => :'Type',
|
71
63
|
:'fill_format' => :'FillFormat',
|
72
|
-
:'effect_format' => :'EffectFormat'
|
73
|
-
}
|
64
|
+
:'effect_format' => :'EffectFormat',
|
65
|
+
})
|
74
66
|
end
|
75
67
|
|
76
68
|
# Attribute type mapping.
|
77
69
|
def self.swagger_types
|
78
|
-
{
|
79
|
-
:'self_uri' => :'ResourceUri',
|
80
|
-
:'alternate_links' => :'Array<ResourceUri>',
|
70
|
+
super.merge({
|
81
71
|
:'type' => :'String',
|
82
72
|
:'fill_format' => :'FillFormat',
|
83
|
-
:'effect_format' => :'EffectFormat'
|
84
|
-
}
|
73
|
+
:'effect_format' => :'EffectFormat',
|
74
|
+
})
|
85
75
|
end
|
86
76
|
|
87
77
|
# Initializes the object
|
88
78
|
# @param [Hash] attributes Model attributes in the form of hash
|
89
79
|
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?(:'SelfUri')
|
96
|
-
self.self_uri = attributes[:'SelfUri']
|
97
|
-
end
|
98
|
-
|
99
|
-
if attributes.has_key?(:'AlternateLinks')
|
100
|
-
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
101
|
-
self.alternate_links = value
|
102
|
-
end
|
103
|
-
end
|
80
|
+
super
|
104
81
|
|
105
82
|
if attributes.has_key?(:'Type')
|
106
83
|
self.type = attributes[:'Type']
|
@@ -118,7 +95,7 @@ module AsposeSlidesCloud
|
|
118
95
|
# Show invalid properties with the reasons. Usually used together with valid?
|
119
96
|
# @return Array for valid properties with the reasons
|
120
97
|
def list_invalid_properties
|
121
|
-
invalid_properties =
|
98
|
+
invalid_properties = super
|
122
99
|
if @type.nil?
|
123
100
|
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
124
101
|
end
|
@@ -129,6 +106,7 @@ module AsposeSlidesCloud
|
|
129
106
|
# Check to see if the all the properties in the model are valid
|
130
107
|
# @return true if the model is valid
|
131
108
|
def valid?
|
109
|
+
return false if !super
|
132
110
|
return false if @type.nil?
|
133
111
|
type_validator = EnumAttributeValidator.new('String', ['NoFill', 'Solid', 'Gradient', 'Pattern', 'Picture', 'NotDefined'])
|
134
112
|
return false unless type_validator.valid?(@type)
|
@@ -175,15 +153,27 @@ module AsposeSlidesCloud
|
|
175
153
|
def build_from_hash(attributes)
|
176
154
|
return nil unless attributes.is_a?(Hash)
|
177
155
|
self.class.swagger_types.each_pair do |key, type|
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
if
|
182
|
-
|
156
|
+
mapKey = self.class.attribute_map[key]
|
157
|
+
if !mapKey.nil?
|
158
|
+
val = attributes[mapKey]
|
159
|
+
if val.nil?
|
160
|
+
mapKeyString = mapKey.to_s
|
161
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
162
|
+
mapKey = mapKeyString.to_sym
|
163
|
+
val = attributes[mapKey]
|
183
164
|
end
|
184
|
-
|
185
|
-
|
186
|
-
|
165
|
+
if !val.nil?
|
166
|
+
if type =~ /\AArray<(.*)>/i
|
167
|
+
# check to ensure the input is an array given that the the attribute
|
168
|
+
# is documented as an array but the input is not
|
169
|
+
if val.is_a?(Array)
|
170
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
171
|
+
end
|
172
|
+
else
|
173
|
+
self.send("#{key}=", _deserialize(type, val))
|
174
|
+
end
|
175
|
+
end
|
176
|
+
end
|
187
177
|
end
|
188
178
|
|
189
179
|
self
|
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
|
|
43
43
|
:'author' => :'Author',
|
44
44
|
:'text' => :'Text',
|
45
45
|
:'created_time' => :'CreatedTime',
|
46
|
-
:'child_comments' => :'ChildComments'
|
46
|
+
:'child_comments' => :'ChildComments',
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|
@@ -53,7 +53,7 @@ module AsposeSlidesCloud
|
|
53
53
|
:'author' => :'String',
|
54
54
|
:'text' => :'String',
|
55
55
|
:'created_time' => :'String',
|
56
|
-
:'child_comments' => :'Array<SlideComment>'
|
56
|
+
:'child_comments' => :'Array<SlideComment>',
|
57
57
|
}
|
58
58
|
end
|
59
59
|
|
@@ -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
|
@@ -24,51 +24,28 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents comments collection of slide
|
27
|
-
class SlideComments
|
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 SlideComments < ResourceBase
|
34
28
|
# Slide comment 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<SlideComment>'
|
52
|
-
}
|
40
|
+
super.merge({
|
41
|
+
:'list' => :'Array<SlideComment>',
|
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
|
@@ -24,150 +24,28 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents slide replace result DTO.
|
27
|
-
class SlideReplaceResult
|
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
|
-
|
34
|
-
# Gets or sets the width.
|
35
|
-
attr_accessor :width
|
36
|
-
|
37
|
-
# Gets or sets the height.
|
38
|
-
attr_accessor :height
|
39
|
-
|
40
|
-
# Specifies if shapes of the master slide should be shown on the slide. True by default.
|
41
|
-
attr_accessor :show_master_shapes
|
42
|
-
|
43
|
-
# Gets or sets the link to the layout slide.
|
44
|
-
attr_accessor :layout_slide
|
45
|
-
|
46
|
-
# Gets or sets the link to list of top-level shapes.
|
47
|
-
attr_accessor :shapes
|
48
|
-
|
49
|
-
# Gets or sets the link to theme.
|
50
|
-
attr_accessor :theme
|
51
|
-
|
52
|
-
# Gets or sets the link to placeholders.
|
53
|
-
attr_accessor :placeholders
|
54
|
-
|
55
|
-
# Gets or sets the link to images.
|
56
|
-
attr_accessor :images
|
57
|
-
|
58
|
-
# Gets or sets the link to comments.
|
59
|
-
attr_accessor :comments
|
60
|
-
|
61
|
-
# Get or sets the link to slide's background
|
62
|
-
attr_accessor :background
|
63
|
-
|
64
|
-
# Get or sets the link to notes slide.
|
65
|
-
attr_accessor :notes_slide
|
66
|
-
|
27
|
+
class SlideReplaceResult < Slide
|
67
28
|
# Gets or sets the number of matches
|
68
29
|
attr_accessor :matches
|
69
30
|
|
70
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
71
32
|
def self.attribute_map
|
72
|
-
{
|
73
|
-
:'
|
74
|
-
|
75
|
-
:'width' => :'Width',
|
76
|
-
:'height' => :'Height',
|
77
|
-
:'show_master_shapes' => :'ShowMasterShapes',
|
78
|
-
:'layout_slide' => :'LayoutSlide',
|
79
|
-
:'shapes' => :'Shapes',
|
80
|
-
:'theme' => :'Theme',
|
81
|
-
:'placeholders' => :'Placeholders',
|
82
|
-
:'images' => :'Images',
|
83
|
-
:'comments' => :'Comments',
|
84
|
-
:'background' => :'Background',
|
85
|
-
:'notes_slide' => :'NotesSlide',
|
86
|
-
:'matches' => :'Matches'
|
87
|
-
}
|
33
|
+
super.merge({
|
34
|
+
:'matches' => :'Matches',
|
35
|
+
})
|
88
36
|
end
|
89
37
|
|
90
38
|
# Attribute type mapping.
|
91
39
|
def self.swagger_types
|
92
|
-
{
|
93
|
-
:'
|
94
|
-
|
95
|
-
:'width' => :'Float',
|
96
|
-
:'height' => :'Float',
|
97
|
-
:'show_master_shapes' => :'BOOLEAN',
|
98
|
-
:'layout_slide' => :'ResourceUriElement',
|
99
|
-
:'shapes' => :'ResourceUriElement',
|
100
|
-
:'theme' => :'ResourceUriElement',
|
101
|
-
:'placeholders' => :'ResourceUriElement',
|
102
|
-
:'images' => :'ResourceUriElement',
|
103
|
-
:'comments' => :'ResourceUriElement',
|
104
|
-
:'background' => :'ResourceUriElement',
|
105
|
-
:'notes_slide' => :'ResourceUriElement',
|
106
|
-
:'matches' => :'Integer'
|
107
|
-
}
|
40
|
+
super.merge({
|
41
|
+
:'matches' => :'Integer',
|
42
|
+
})
|
108
43
|
end
|
109
44
|
|
110
45
|
# Initializes the object
|
111
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
112
47
|
def initialize(attributes = {})
|
113
|
-
|
114
|
-
|
115
|
-
# convert string to symbol for hash key
|
116
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
117
|
-
|
118
|
-
if attributes.has_key?(:'SelfUri')
|
119
|
-
self.self_uri = attributes[:'SelfUri']
|
120
|
-
end
|
121
|
-
|
122
|
-
if attributes.has_key?(:'AlternateLinks')
|
123
|
-
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
124
|
-
self.alternate_links = value
|
125
|
-
end
|
126
|
-
end
|
127
|
-
|
128
|
-
if attributes.has_key?(:'Width')
|
129
|
-
self.width = attributes[:'Width']
|
130
|
-
end
|
131
|
-
|
132
|
-
if attributes.has_key?(:'Height')
|
133
|
-
self.height = attributes[:'Height']
|
134
|
-
end
|
135
|
-
|
136
|
-
if attributes.has_key?(:'ShowMasterShapes')
|
137
|
-
self.show_master_shapes = attributes[:'ShowMasterShapes']
|
138
|
-
end
|
139
|
-
|
140
|
-
if attributes.has_key?(:'LayoutSlide')
|
141
|
-
self.layout_slide = attributes[:'LayoutSlide']
|
142
|
-
end
|
143
|
-
|
144
|
-
if attributes.has_key?(:'Shapes')
|
145
|
-
self.shapes = attributes[:'Shapes']
|
146
|
-
end
|
147
|
-
|
148
|
-
if attributes.has_key?(:'Theme')
|
149
|
-
self.theme = attributes[:'Theme']
|
150
|
-
end
|
151
|
-
|
152
|
-
if attributes.has_key?(:'Placeholders')
|
153
|
-
self.placeholders = attributes[:'Placeholders']
|
154
|
-
end
|
155
|
-
|
156
|
-
if attributes.has_key?(:'Images')
|
157
|
-
self.images = attributes[:'Images']
|
158
|
-
end
|
159
|
-
|
160
|
-
if attributes.has_key?(:'Comments')
|
161
|
-
self.comments = attributes[:'Comments']
|
162
|
-
end
|
163
|
-
|
164
|
-
if attributes.has_key?(:'Background')
|
165
|
-
self.background = attributes[:'Background']
|
166
|
-
end
|
167
|
-
|
168
|
-
if attributes.has_key?(:'NotesSlide')
|
169
|
-
self.notes_slide = attributes[:'NotesSlide']
|
170
|
-
end
|
48
|
+
super
|
171
49
|
|
172
50
|
if attributes.has_key?(:'Matches')
|
173
51
|
self.matches = attributes[:'Matches']
|
@@ -177,19 +55,7 @@ module AsposeSlidesCloud
|
|
177
55
|
# Show invalid properties with the reasons. Usually used together with valid?
|
178
56
|
# @return Array for valid properties with the reasons
|
179
57
|
def list_invalid_properties
|
180
|
-
invalid_properties =
|
181
|
-
if @width.nil?
|
182
|
-
invalid_properties.push('invalid value for "width", width cannot be nil.')
|
183
|
-
end
|
184
|
-
|
185
|
-
if @height.nil?
|
186
|
-
invalid_properties.push('invalid value for "height", height cannot be nil.')
|
187
|
-
end
|
188
|
-
|
189
|
-
if @show_master_shapes.nil?
|
190
|
-
invalid_properties.push('invalid value for "show_master_shapes", show_master_shapes cannot be nil.')
|
191
|
-
end
|
192
|
-
|
58
|
+
invalid_properties = super
|
193
59
|
if @matches.nil?
|
194
60
|
invalid_properties.push('invalid value for "matches", matches cannot be nil.')
|
195
61
|
end
|
@@ -200,9 +66,7 @@ module AsposeSlidesCloud
|
|
200
66
|
# Check to see if the all the properties in the model are valid
|
201
67
|
# @return true if the model is valid
|
202
68
|
def valid?
|
203
|
-
return false if
|
204
|
-
return false if @height.nil?
|
205
|
-
return false if @show_master_shapes.nil?
|
69
|
+
return false if !super
|
206
70
|
return false if @matches.nil?
|
207
71
|
true
|
208
72
|
end
|
@@ -246,15 +110,27 @@ module AsposeSlidesCloud
|
|
246
110
|
def build_from_hash(attributes)
|
247
111
|
return nil unless attributes.is_a?(Hash)
|
248
112
|
self.class.swagger_types.each_pair do |key, type|
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
if
|
253
|
-
|
113
|
+
mapKey = self.class.attribute_map[key]
|
114
|
+
if !mapKey.nil?
|
115
|
+
val = attributes[mapKey]
|
116
|
+
if val.nil?
|
117
|
+
mapKeyString = mapKey.to_s
|
118
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
119
|
+
mapKey = mapKeyString.to_sym
|
120
|
+
val = attributes[mapKey]
|
121
|
+
end
|
122
|
+
if !val.nil?
|
123
|
+
if type =~ /\AArray<(.*)>/i
|
124
|
+
# check to ensure the input is an array given that the the attribute
|
125
|
+
# is documented as an array but the input is not
|
126
|
+
if val.is_a?(Array)
|
127
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
128
|
+
end
|
129
|
+
else
|
130
|
+
self.send("#{key}=", _deserialize(type, val))
|
131
|
+
end
|
254
132
|
end
|
255
|
-
|
256
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
257
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
133
|
+
end
|
258
134
|
end
|
259
135
|
|
260
136
|
self
|