aspose_slides_cloud 20.2.0 → 20.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/TestData/ChartTest.pptx +0 -0
- data/lib/aspose_slides_cloud.rb +13 -3
- data/lib/aspose_slides_cloud/api/slides_api.rb +3254 -1024
- data/lib/aspose_slides_cloud/api/slides_api_requests.rb +970 -137
- data/lib/aspose_slides_cloud/api_client.rb +8 -5
- 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 -244
- 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 +299 -0
- 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 +35 -221
- data/lib/aspose_slides_cloud/models/chart_category.rb +261 -0
- 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 +217 -0
- data/lib/aspose_slides_cloud/models/connector.rb +31 -242
- data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +22 -10
- data/lib/aspose_slides_cloud/models/disc_usage.rb +22 -10
- data/lib/aspose_slides_cloud/models/document.rb +41 -41
- 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 +32 -86
- 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 +30 -208
- 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 -217
- data/lib/aspose_slides_cloud/models/group_shape.rb +31 -217
- data/lib/aspose_slides_cloud/models/html_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +22 -10
- 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 +30 -40
- 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 +30 -40
- 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 +217 -0
- data/lib/aspose_slides_cloud/models/notes_slide.rb +30 -40
- data/lib/aspose_slides_cloud/models/object_exist.rb +22 -10
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +32 -218
- 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 +31 -48
- data/lib/aspose_slides_cloud/models/picture_frame.rb +32 -244
- 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/resource_uri_element.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/series.rb +47 -14
- data/lib/aspose_slides_cloud/models/series_marker.rb +22 -10
- data/lib/aspose_slides_cloud/models/shape.rb +31 -242
- data/lib/aspose_slides_cloud/models/shape_base.rb +30 -40
- 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 +30 -40
- 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 -218
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +22 -10
- data/lib/aspose_slides_cloud/models/smart_art_shape.rb +31 -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 -218
- 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 +30 -40
- 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 -244
- data/lib/aspose_slides_cloud/models/view_properties.rb +357 -0
- data/lib/aspose_slides_cloud/models/waterfall_series.rb +247 -0
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/type_registry.rb +313 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +20595 -14073
- data/spec/extra/extra_spec.rb +155 -20
- data/spec/spec_utils.rb +8 -1
- data/testRules.json +111 -8
- metadata +11 -2
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
|
|
43
43
|
:'code' => :'Code',
|
44
44
|
:'message' => :'Message',
|
45
45
|
:'description' => :'Description',
|
46
|
-
:'inner_error' => :'InnerError'
|
46
|
+
:'inner_error' => :'InnerError',
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|
@@ -53,7 +53,7 @@ module AsposeSlidesCloud
|
|
53
53
|
:'code' => :'String',
|
54
54
|
:'message' => :'String',
|
55
55
|
:'description' => :'String',
|
56
|
-
:'inner_error' => :'ErrorDetails'
|
56
|
+
:'inner_error' => :'ErrorDetails',
|
57
57
|
}
|
58
58
|
end
|
59
59
|
|
@@ -124,15 +124,27 @@ module AsposeSlidesCloud
|
|
124
124
|
def build_from_hash(attributes)
|
125
125
|
return nil unless attributes.is_a?(Hash)
|
126
126
|
self.class.swagger_types.each_pair do |key, type|
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
if
|
131
|
-
|
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]
|
132
135
|
end
|
133
|
-
|
134
|
-
|
135
|
-
|
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
|
136
148
|
end
|
137
149
|
|
138
150
|
self
|
@@ -35,7 +35,7 @@ module AsposeSlidesCloud
|
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
37
|
:'request_id' => :'RequestId',
|
38
|
-
:'date' => :'Date'
|
38
|
+
:'date' => :'Date',
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
|
|
43
43
|
def self.swagger_types
|
44
44
|
{
|
45
45
|
:'request_id' => :'String',
|
46
|
-
:'date' => :'DateTime'
|
46
|
+
:'date' => :'DateTime',
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|
@@ -109,15 +109,27 @@ module AsposeSlidesCloud
|
|
109
109
|
def build_from_hash(attributes)
|
110
110
|
return nil unless attributes.is_a?(Hash)
|
111
111
|
self.class.swagger_types.each_pair do |key, type|
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
if
|
116
|
-
|
112
|
+
mapKey = self.class.attribute_map[key]
|
113
|
+
if !mapKey.nil?
|
114
|
+
val = attributes[mapKey]
|
115
|
+
if val.nil?
|
116
|
+
mapKeyString = mapKey.to_s
|
117
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
118
|
+
mapKey = mapKeyString.to_sym
|
119
|
+
val = attributes[mapKey]
|
117
120
|
end
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
+
if !val.nil?
|
122
|
+
if type =~ /\AArray<(.*)>/i
|
123
|
+
# check to ensure the input is an array given that the the attribute
|
124
|
+
# is documented as an array but the input is not
|
125
|
+
if val.is_a?(Array)
|
126
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
127
|
+
end
|
128
|
+
else
|
129
|
+
self.send("#{key}=", _deserialize(type, val))
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
121
133
|
end
|
122
134
|
|
123
135
|
self
|
@@ -25,19 +25,24 @@ require 'date'
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents export options for whole presentation.
|
27
27
|
class ExportOptions
|
28
|
+
# Setting user password to protect the PDF document.
|
29
|
+
attr_accessor :default_regular_font
|
30
|
+
|
28
31
|
attr_accessor :format
|
29
32
|
|
30
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
34
|
def self.attribute_map
|
32
35
|
{
|
33
|
-
:'
|
36
|
+
:'default_regular_font' => :'DefaultRegularFont',
|
37
|
+
:'format' => :'Format',
|
34
38
|
}
|
35
39
|
end
|
36
40
|
|
37
41
|
# Attribute type mapping.
|
38
42
|
def self.swagger_types
|
39
43
|
{
|
40
|
-
:'
|
44
|
+
:'default_regular_font' => :'String',
|
45
|
+
:'format' => :'String',
|
41
46
|
}
|
42
47
|
end
|
43
48
|
|
@@ -49,6 +54,10 @@ module AsposeSlidesCloud
|
|
49
54
|
# convert string to symbol for hash key
|
50
55
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
51
56
|
|
57
|
+
if attributes.has_key?(:'DefaultRegularFont')
|
58
|
+
self.default_regular_font = attributes[:'DefaultRegularFont']
|
59
|
+
end
|
60
|
+
|
52
61
|
if attributes.has_key?(:'Format')
|
53
62
|
self.format = attributes[:'Format']
|
54
63
|
end
|
@@ -72,6 +81,7 @@ module AsposeSlidesCloud
|
|
72
81
|
def ==(o)
|
73
82
|
return true if self.equal?(o)
|
74
83
|
self.class == o.class &&
|
84
|
+
default_regular_font == o.default_regular_font &&
|
75
85
|
format == o.format
|
76
86
|
end
|
77
87
|
|
@@ -84,7 +94,7 @@ module AsposeSlidesCloud
|
|
84
94
|
# Calculates hash code according to all attributes.
|
85
95
|
# @return [Fixnum] Hash code
|
86
96
|
def hash
|
87
|
-
[format].hash
|
97
|
+
[default_regular_font, format].hash
|
88
98
|
end
|
89
99
|
|
90
100
|
# Builds the object from hash
|
@@ -93,15 +103,27 @@ module AsposeSlidesCloud
|
|
93
103
|
def build_from_hash(attributes)
|
94
104
|
return nil unless attributes.is_a?(Hash)
|
95
105
|
self.class.swagger_types.each_pair do |key, type|
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
if
|
100
|
-
|
106
|
+
mapKey = self.class.attribute_map[key]
|
107
|
+
if !mapKey.nil?
|
108
|
+
val = attributes[mapKey]
|
109
|
+
if val.nil?
|
110
|
+
mapKeyString = mapKey.to_s
|
111
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
112
|
+
mapKey = mapKeyString.to_sym
|
113
|
+
val = attributes[mapKey]
|
101
114
|
end
|
102
|
-
|
103
|
-
|
104
|
-
|
115
|
+
if !val.nil?
|
116
|
+
if type =~ /\AArray<(.*)>/i
|
117
|
+
# check to ensure the input is an array given that the the attribute
|
118
|
+
# is documented as an array but the input is not
|
119
|
+
if val.is_a?(Array)
|
120
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
121
|
+
end
|
122
|
+
else
|
123
|
+
self.send("#{key}=", _deserialize(type, val))
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
105
127
|
end
|
106
128
|
|
107
129
|
self
|
@@ -24,22 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# File Version
|
27
|
-
class FileVersion
|
28
|
-
# File or folder name.
|
29
|
-
attr_accessor :name
|
30
|
-
|
31
|
-
# True if it is a folder.
|
32
|
-
attr_accessor :is_folder
|
33
|
-
|
34
|
-
# File or folder last modified DateTime.
|
35
|
-
attr_accessor :modified_date
|
36
|
-
|
37
|
-
# File or folder size.
|
38
|
-
attr_accessor :size
|
39
|
-
|
40
|
-
# File or folder path.
|
41
|
-
attr_accessor :path
|
42
|
-
|
27
|
+
class FileVersion < StorageFile
|
43
28
|
# File Version ID.
|
44
29
|
attr_accessor :version_id
|
45
30
|
|
@@ -48,57 +33,24 @@ module AsposeSlidesCloud
|
|
48
33
|
|
49
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
50
35
|
def self.attribute_map
|
51
|
-
{
|
52
|
-
:'name' => :'Name',
|
53
|
-
:'is_folder' => :'IsFolder',
|
54
|
-
:'modified_date' => :'ModifiedDate',
|
55
|
-
:'size' => :'Size',
|
56
|
-
:'path' => :'Path',
|
36
|
+
super.merge({
|
57
37
|
:'version_id' => :'VersionId',
|
58
|
-
:'is_latest' => :'IsLatest'
|
59
|
-
}
|
38
|
+
:'is_latest' => :'IsLatest',
|
39
|
+
})
|
60
40
|
end
|
61
41
|
|
62
42
|
# Attribute type mapping.
|
63
43
|
def self.swagger_types
|
64
|
-
{
|
65
|
-
:'name' => :'String',
|
66
|
-
:'is_folder' => :'BOOLEAN',
|
67
|
-
:'modified_date' => :'DateTime',
|
68
|
-
:'size' => :'Integer',
|
69
|
-
:'path' => :'String',
|
44
|
+
super.merge({
|
70
45
|
:'version_id' => :'String',
|
71
|
-
:'is_latest' => :'BOOLEAN'
|
72
|
-
}
|
46
|
+
:'is_latest' => :'BOOLEAN',
|
47
|
+
})
|
73
48
|
end
|
74
49
|
|
75
50
|
# Initializes the object
|
76
51
|
# @param [Hash] attributes Model attributes in the form of hash
|
77
52
|
def initialize(attributes = {})
|
78
|
-
|
79
|
-
|
80
|
-
# convert string to symbol for hash key
|
81
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
82
|
-
|
83
|
-
if attributes.has_key?(:'Name')
|
84
|
-
self.name = attributes[:'Name']
|
85
|
-
end
|
86
|
-
|
87
|
-
if attributes.has_key?(:'IsFolder')
|
88
|
-
self.is_folder = attributes[:'IsFolder']
|
89
|
-
end
|
90
|
-
|
91
|
-
if attributes.has_key?(:'ModifiedDate')
|
92
|
-
self.modified_date = attributes[:'ModifiedDate']
|
93
|
-
end
|
94
|
-
|
95
|
-
if attributes.has_key?(:'Size')
|
96
|
-
self.size = attributes[:'Size']
|
97
|
-
end
|
98
|
-
|
99
|
-
if attributes.has_key?(:'Path')
|
100
|
-
self.path = attributes[:'Path']
|
101
|
-
end
|
53
|
+
super
|
102
54
|
|
103
55
|
if attributes.has_key?(:'VersionId')
|
104
56
|
self.version_id = attributes[:'VersionId']
|
@@ -112,15 +64,7 @@ module AsposeSlidesCloud
|
|
112
64
|
# Show invalid properties with the reasons. Usually used together with valid?
|
113
65
|
# @return Array for valid properties with the reasons
|
114
66
|
def list_invalid_properties
|
115
|
-
invalid_properties =
|
116
|
-
if @is_folder.nil?
|
117
|
-
invalid_properties.push('invalid value for "is_folder", is_folder cannot be nil.')
|
118
|
-
end
|
119
|
-
|
120
|
-
if @size.nil?
|
121
|
-
invalid_properties.push('invalid value for "size", size cannot be nil.')
|
122
|
-
end
|
123
|
-
|
67
|
+
invalid_properties = super
|
124
68
|
if @is_latest.nil?
|
125
69
|
invalid_properties.push('invalid value for "is_latest", is_latest cannot be nil.')
|
126
70
|
end
|
@@ -131,8 +75,7 @@ module AsposeSlidesCloud
|
|
131
75
|
# Check to see if the all the properties in the model are valid
|
132
76
|
# @return true if the model is valid
|
133
77
|
def valid?
|
134
|
-
return false if
|
135
|
-
return false if @size.nil?
|
78
|
+
return false if !super
|
136
79
|
return false if @is_latest.nil?
|
137
80
|
true
|
138
81
|
end
|
@@ -169,15 +112,27 @@ module AsposeSlidesCloud
|
|
169
112
|
def build_from_hash(attributes)
|
170
113
|
return nil unless attributes.is_a?(Hash)
|
171
114
|
self.class.swagger_types.each_pair do |key, type|
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
if
|
176
|
-
|
115
|
+
mapKey = self.class.attribute_map[key]
|
116
|
+
if !mapKey.nil?
|
117
|
+
val = attributes[mapKey]
|
118
|
+
if val.nil?
|
119
|
+
mapKeyString = mapKey.to_s
|
120
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
121
|
+
mapKey = mapKeyString.to_sym
|
122
|
+
val = attributes[mapKey]
|
177
123
|
end
|
178
|
-
|
179
|
-
|
180
|
-
|
124
|
+
if !val.nil?
|
125
|
+
if type =~ /\AArray<(.*)>/i
|
126
|
+
# check to ensure the input is an array given that the the attribute
|
127
|
+
# is documented as an array but the input is not
|
128
|
+
if val.is_a?(Array)
|
129
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
130
|
+
end
|
131
|
+
else
|
132
|
+
self.send("#{key}=", _deserialize(type, val))
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|
181
136
|
end
|
182
137
|
|
183
138
|
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
|
-
:'value' => :'Value'
|
34
|
+
:'value' => :'Value',
|
35
35
|
}
|
36
36
|
end
|
37
37
|
|
38
38
|
# Attribute type mapping.
|
39
39
|
def self.swagger_types
|
40
40
|
{
|
41
|
-
:'value' => :'Array<FileVersion>'
|
41
|
+
:'value' => :'Array<FileVersion>',
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
@@ -96,15 +96,27 @@ module AsposeSlidesCloud
|
|
96
96
|
def build_from_hash(attributes)
|
97
97
|
return nil unless attributes.is_a?(Hash)
|
98
98
|
self.class.swagger_types.each_pair do |key, type|
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
if
|
103
|
-
|
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]
|
104
107
|
end
|
105
|
-
|
106
|
-
|
107
|
-
|
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
|
108
120
|
end
|
109
121
|
|
110
122
|
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
|
-
:'value' => :'Value'
|
34
|
+
:'value' => :'Value',
|
35
35
|
}
|
36
36
|
end
|
37
37
|
|
38
38
|
# Attribute type mapping.
|
39
39
|
def self.swagger_types
|
40
40
|
{
|
41
|
-
:'value' => :'Array<StorageFile>'
|
41
|
+
:'value' => :'Array<StorageFile>',
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
@@ -96,15 +96,27 @@ module AsposeSlidesCloud
|
|
96
96
|
def build_from_hash(attributes)
|
97
97
|
return nil unless attributes.is_a?(Hash)
|
98
98
|
self.class.swagger_types.each_pair do |key, type|
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
if
|
103
|
-
|
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]
|
104
107
|
end
|
105
|
-
|
106
|
-
|
107
|
-
|
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
|
108
120
|
end
|
109
121
|
|
110
122
|
self
|