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
@@ -24,13 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents paragraph resource
|
27
|
-
class Paragraph
|
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 Paragraph < ResourceBase
|
34
28
|
# Left margin.
|
35
29
|
attr_accessor :margin_left
|
36
30
|
|
@@ -115,9 +109,7 @@ module AsposeSlidesCloud
|
|
115
109
|
|
116
110
|
# Attribute mapping from ruby-style variable name to JSON key.
|
117
111
|
def self.attribute_map
|
118
|
-
{
|
119
|
-
:'self_uri' => :'SelfUri',
|
120
|
-
:'alternate_links' => :'AlternateLinks',
|
112
|
+
super.merge({
|
121
113
|
:'margin_left' => :'MarginLeft',
|
122
114
|
:'margin_right' => :'MarginRight',
|
123
115
|
:'space_before' => :'SpaceBefore',
|
@@ -137,15 +129,13 @@ module AsposeSlidesCloud
|
|
137
129
|
:'east_asian_line_break' => :'EastAsianLineBreak',
|
138
130
|
:'latin_line_break' => :'LatinLineBreak',
|
139
131
|
:'right_to_left' => :'RightToLeft',
|
140
|
-
:'portion_list' => :'PortionList'
|
141
|
-
}
|
132
|
+
:'portion_list' => :'PortionList',
|
133
|
+
})
|
142
134
|
end
|
143
135
|
|
144
136
|
# Attribute type mapping.
|
145
137
|
def self.swagger_types
|
146
|
-
{
|
147
|
-
:'self_uri' => :'ResourceUri',
|
148
|
-
:'alternate_links' => :'Array<ResourceUri>',
|
138
|
+
super.merge({
|
149
139
|
:'margin_left' => :'Float',
|
150
140
|
:'margin_right' => :'Float',
|
151
141
|
:'space_before' => :'Float',
|
@@ -165,27 +155,14 @@ module AsposeSlidesCloud
|
|
165
155
|
:'east_asian_line_break' => :'String',
|
166
156
|
:'latin_line_break' => :'String',
|
167
157
|
:'right_to_left' => :'String',
|
168
|
-
:'portion_list' => :'Array<
|
169
|
-
}
|
158
|
+
:'portion_list' => :'Array<Portion>',
|
159
|
+
})
|
170
160
|
end
|
171
161
|
|
172
162
|
# Initializes the object
|
173
163
|
# @param [Hash] attributes Model attributes in the form of hash
|
174
164
|
def initialize(attributes = {})
|
175
|
-
|
176
|
-
|
177
|
-
# convert string to symbol for hash key
|
178
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
179
|
-
|
180
|
-
if attributes.has_key?(:'SelfUri')
|
181
|
-
self.self_uri = attributes[:'SelfUri']
|
182
|
-
end
|
183
|
-
|
184
|
-
if attributes.has_key?(:'AlternateLinks')
|
185
|
-
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
186
|
-
self.alternate_links = value
|
187
|
-
end
|
188
|
-
end
|
165
|
+
super
|
189
166
|
|
190
167
|
if attributes.has_key?(:'MarginLeft')
|
191
168
|
self.margin_left = attributes[:'MarginLeft']
|
@@ -273,13 +250,14 @@ module AsposeSlidesCloud
|
|
273
250
|
# Show invalid properties with the reasons. Usually used together with valid?
|
274
251
|
# @return Array for valid properties with the reasons
|
275
252
|
def list_invalid_properties
|
276
|
-
invalid_properties =
|
253
|
+
invalid_properties = super
|
277
254
|
invalid_properties
|
278
255
|
end
|
279
256
|
|
280
257
|
# Check to see if the all the properties in the model are valid
|
281
258
|
# @return true if the model is valid
|
282
259
|
def valid?
|
260
|
+
return false if !super
|
283
261
|
alignment_validator = EnumAttributeValidator.new('String', ['Left', 'Center', 'Right', 'Justify', 'JustifyLow', 'Distributed', 'NotDefined'])
|
284
262
|
return false unless alignment_validator.valid?(@alignment)
|
285
263
|
font_alignment_validator = EnumAttributeValidator.new('String', ['Automatic', 'Top', 'Center', 'Bottom', 'Baseline', 'Default'])
|
@@ -426,15 +404,27 @@ module AsposeSlidesCloud
|
|
426
404
|
def build_from_hash(attributes)
|
427
405
|
return nil unless attributes.is_a?(Hash)
|
428
406
|
self.class.swagger_types.each_pair do |key, type|
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
if
|
433
|
-
|
407
|
+
mapKey = self.class.attribute_map[key]
|
408
|
+
if !mapKey.nil?
|
409
|
+
val = attributes[mapKey]
|
410
|
+
if val.nil?
|
411
|
+
mapKeyString = mapKey.to_s
|
412
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
413
|
+
mapKey = mapKeyString.to_sym
|
414
|
+
val = attributes[mapKey]
|
434
415
|
end
|
435
|
-
|
436
|
-
|
437
|
-
|
416
|
+
if !val.nil?
|
417
|
+
if type =~ /\AArray<(.*)>/i
|
418
|
+
# check to ensure the input is an array given that the the attribute
|
419
|
+
# is documented as an array but the input is not
|
420
|
+
if val.is_a?(Array)
|
421
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
422
|
+
end
|
423
|
+
else
|
424
|
+
self.send("#{key}=", _deserialize(type, val))
|
425
|
+
end
|
426
|
+
end
|
427
|
+
end
|
438
428
|
end
|
439
429
|
|
440
430
|
self
|
@@ -24,51 +24,28 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents list of Links to Paragraphs resources
|
27
|
-
class Paragraphs
|
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 Paragraphs < ResourceBase
|
34
28
|
# List of paragraph links.
|
35
29
|
attr_accessor :paragraph_links
|
36
30
|
|
37
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
32
|
def self.attribute_map
|
39
|
-
{
|
40
|
-
:'
|
41
|
-
|
42
|
-
:'paragraph_links' => :'ParagraphLinks'
|
43
|
-
}
|
33
|
+
super.merge({
|
34
|
+
:'paragraph_links' => :'ParagraphLinks',
|
35
|
+
})
|
44
36
|
end
|
45
37
|
|
46
38
|
# Attribute type mapping.
|
47
39
|
def self.swagger_types
|
48
|
-
{
|
49
|
-
:'
|
50
|
-
|
51
|
-
:'paragraph_links' => :'Array<ResourceUriElement>'
|
52
|
-
}
|
40
|
+
super.merge({
|
41
|
+
:'paragraph_links' => :'Array<ResourceUri>',
|
42
|
+
})
|
53
43
|
end
|
54
44
|
|
55
45
|
# Initializes the object
|
56
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
57
47
|
def initialize(attributes = {})
|
58
|
-
|
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?(:'ParagraphLinks')
|
74
51
|
if (value = attributes[:'ParagraphLinks']).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 input file from filesystem.
|
27
|
-
class PathInputFile
|
28
|
-
# Get or sets password to open document.
|
29
|
-
attr_accessor :password
|
30
|
-
|
31
|
-
# File type.
|
32
|
-
attr_accessor :type
|
33
|
-
|
27
|
+
class PathInputFile < InputFile
|
34
28
|
# Get or sets path to file.
|
35
29
|
attr_accessor :path
|
36
30
|
|
@@ -61,41 +55,24 @@ module AsposeSlidesCloud
|
|
61
55
|
|
62
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
63
57
|
def self.attribute_map
|
64
|
-
{
|
65
|
-
:'password' => :'Password',
|
66
|
-
:'type' => :'Type',
|
58
|
+
super.merge({
|
67
59
|
:'path' => :'Path',
|
68
|
-
:'storage' => :'Storage'
|
69
|
-
}
|
60
|
+
:'storage' => :'Storage',
|
61
|
+
})
|
70
62
|
end
|
71
63
|
|
72
64
|
# Attribute type mapping.
|
73
65
|
def self.swagger_types
|
74
|
-
{
|
75
|
-
:'password' => :'String',
|
76
|
-
:'type' => :'String',
|
66
|
+
super.merge({
|
77
67
|
:'path' => :'String',
|
78
|
-
:'storage' => :'String'
|
79
|
-
}
|
68
|
+
:'storage' => :'String',
|
69
|
+
})
|
80
70
|
end
|
81
71
|
|
82
72
|
# Initializes the object
|
83
73
|
# @param [Hash] attributes Model attributes in the form of hash
|
84
74
|
def initialize(attributes = {})
|
85
|
-
|
86
|
-
|
87
|
-
# convert string to symbol for hash key
|
88
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
89
|
-
|
90
|
-
if attributes.has_key?(:'Password')
|
91
|
-
self.password = attributes[:'Password']
|
92
|
-
end
|
93
|
-
|
94
|
-
if attributes.has_key?(:'Type')
|
95
|
-
self.type = attributes[:'Type']
|
96
|
-
else
|
97
|
-
self.type = "Path"
|
98
|
-
end
|
75
|
+
super
|
99
76
|
|
100
77
|
if attributes.has_key?(:'Path')
|
101
78
|
self.path = attributes[:'Path']
|
@@ -104,38 +81,23 @@ module AsposeSlidesCloud
|
|
104
81
|
if attributes.has_key?(:'Storage')
|
105
82
|
self.storage = attributes[:'Storage']
|
106
83
|
end
|
84
|
+
self.type = "Path"
|
107
85
|
end
|
108
86
|
|
109
87
|
# Show invalid properties with the reasons. Usually used together with valid?
|
110
88
|
# @return Array for valid properties with the reasons
|
111
89
|
def list_invalid_properties
|
112
|
-
invalid_properties =
|
113
|
-
if @type.nil?
|
114
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
115
|
-
end
|
116
|
-
|
90
|
+
invalid_properties = super
|
117
91
|
invalid_properties
|
118
92
|
end
|
119
93
|
|
120
94
|
# Check to see if the all the properties in the model are valid
|
121
95
|
# @return true if the model is valid
|
122
96
|
def valid?
|
123
|
-
return false if
|
124
|
-
type_validator = EnumAttributeValidator.new('String', ['Path', 'Request', 'Base64'])
|
125
|
-
return false unless type_validator.valid?(@type)
|
97
|
+
return false if !super
|
126
98
|
true
|
127
99
|
end
|
128
100
|
|
129
|
-
# Custom attribute writer method checking allowed values (enum).
|
130
|
-
# @param [Object] type Object to be assigned
|
131
|
-
def type=(type)
|
132
|
-
validator = EnumAttributeValidator.new('String', ['Path', 'Request', 'Base64'])
|
133
|
-
unless validator.valid?(type)
|
134
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
135
|
-
end
|
136
|
-
@type = type
|
137
|
-
end
|
138
|
-
|
139
101
|
# Checks equality by comparing each attribute.
|
140
102
|
# @param [Object] Object to be compared
|
141
103
|
def ==(o)
|
@@ -165,15 +127,27 @@ module AsposeSlidesCloud
|
|
165
127
|
def build_from_hash(attributes)
|
166
128
|
return nil unless attributes.is_a?(Hash)
|
167
129
|
self.class.swagger_types.each_pair do |key, type|
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
if
|
172
|
-
|
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]
|
138
|
+
end
|
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
|
173
149
|
end
|
174
|
-
|
175
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
176
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
150
|
+
end
|
177
151
|
end
|
178
152
|
|
179
153
|
self
|
@@ -24,10 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents fileSystem file with path.
|
27
|
-
class PathOutputFile
|
28
|
-
# File type.
|
29
|
-
attr_accessor :type
|
30
|
-
|
27
|
+
class PathOutputFile < OutputFile
|
31
28
|
# Get or sets path to file.
|
32
29
|
attr_accessor :path
|
33
30
|
|
@@ -58,35 +55,24 @@ module AsposeSlidesCloud
|
|
58
55
|
|
59
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
60
57
|
def self.attribute_map
|
61
|
-
{
|
62
|
-
:'type' => :'Type',
|
58
|
+
super.merge({
|
63
59
|
:'path' => :'Path',
|
64
|
-
:'storage' => :'Storage'
|
65
|
-
}
|
60
|
+
:'storage' => :'Storage',
|
61
|
+
})
|
66
62
|
end
|
67
63
|
|
68
64
|
# Attribute type mapping.
|
69
65
|
def self.swagger_types
|
70
|
-
{
|
71
|
-
:'type' => :'String',
|
66
|
+
super.merge({
|
72
67
|
:'path' => :'String',
|
73
|
-
:'storage' => :'String'
|
74
|
-
}
|
68
|
+
:'storage' => :'String',
|
69
|
+
})
|
75
70
|
end
|
76
71
|
|
77
72
|
# Initializes the object
|
78
73
|
# @param [Hash] attributes Model attributes in the form of hash
|
79
74
|
def initialize(attributes = {})
|
80
|
-
|
81
|
-
|
82
|
-
# convert string to symbol for hash key
|
83
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
84
|
-
|
85
|
-
if attributes.has_key?(:'Type')
|
86
|
-
self.type = attributes[:'Type']
|
87
|
-
else
|
88
|
-
self.type = "Path"
|
89
|
-
end
|
75
|
+
super
|
90
76
|
|
91
77
|
if attributes.has_key?(:'Path')
|
92
78
|
self.path = attributes[:'Path']
|
@@ -95,38 +81,23 @@ module AsposeSlidesCloud
|
|
95
81
|
if attributes.has_key?(:'Storage')
|
96
82
|
self.storage = attributes[:'Storage']
|
97
83
|
end
|
84
|
+
self.type = "Path"
|
98
85
|
end
|
99
86
|
|
100
87
|
# Show invalid properties with the reasons. Usually used together with valid?
|
101
88
|
# @return Array for valid properties with the reasons
|
102
89
|
def list_invalid_properties
|
103
|
-
invalid_properties =
|
104
|
-
if @type.nil?
|
105
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
106
|
-
end
|
107
|
-
|
90
|
+
invalid_properties = super
|
108
91
|
invalid_properties
|
109
92
|
end
|
110
93
|
|
111
94
|
# Check to see if the all the properties in the model are valid
|
112
95
|
# @return true if the model is valid
|
113
96
|
def valid?
|
114
|
-
return false if
|
115
|
-
type_validator = EnumAttributeValidator.new('String', ['Path', 'Response'])
|
116
|
-
return false unless type_validator.valid?(@type)
|
97
|
+
return false if !super
|
117
98
|
true
|
118
99
|
end
|
119
100
|
|
120
|
-
# Custom attribute writer method checking allowed values (enum).
|
121
|
-
# @param [Object] type Object to be assigned
|
122
|
-
def type=(type)
|
123
|
-
validator = EnumAttributeValidator.new('String', ['Path', 'Response'])
|
124
|
-
unless validator.valid?(type)
|
125
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
126
|
-
end
|
127
|
-
@type = type
|
128
|
-
end
|
129
|
-
|
130
101
|
# Checks equality by comparing each attribute.
|
131
102
|
# @param [Object] Object to be compared
|
132
103
|
def ==(o)
|
@@ -155,15 +126,27 @@ module AsposeSlidesCloud
|
|
155
126
|
def build_from_hash(attributes)
|
156
127
|
return nil unless attributes.is_a?(Hash)
|
157
128
|
self.class.swagger_types.each_pair do |key, type|
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
if
|
162
|
-
|
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]
|
137
|
+
end
|
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
|
163
148
|
end
|
164
|
-
|
165
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
166
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
149
|
+
end
|
167
150
|
end
|
168
151
|
|
169
152
|
self
|