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
@@ -35,7 +35,7 @@ module AsposeSlidesCloud
|
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
37
|
:'uploaded' => :'Uploaded',
|
38
|
-
:'errors' => :'Errors'
|
38
|
+
:'errors' => :'Errors',
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
|
|
43
43
|
def self.swagger_types
|
44
44
|
{
|
45
45
|
:'uploaded' => :'Array<String>',
|
46
|
-
:'errors' => :'Array<Error>'
|
46
|
+
:'errors' => :'Array<Error>',
|
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
|
@@ -52,14 +52,14 @@ module AsposeSlidesCloud
|
|
52
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
53
|
def self.attribute_map
|
54
54
|
{
|
55
|
-
:'type' => :'Type'
|
55
|
+
:'type' => :'Type',
|
56
56
|
}
|
57
57
|
end
|
58
58
|
|
59
59
|
# Attribute type mapping.
|
60
60
|
def self.swagger_types
|
61
61
|
{
|
62
|
-
:'type' => :'String'
|
62
|
+
:'type' => :'String',
|
63
63
|
}
|
64
64
|
end
|
65
65
|
|
@@ -127,15 +127,27 @@ module AsposeSlidesCloud
|
|
127
127
|
def build_from_hash(attributes)
|
128
128
|
return nil unless attributes.is_a?(Hash)
|
129
129
|
self.class.swagger_types.each_pair do |key, type|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
if
|
134
|
-
|
130
|
+
mapKey = self.class.attribute_map[key]
|
131
|
+
if !mapKey.nil?
|
132
|
+
val = attributes[mapKey]
|
133
|
+
if val.nil?
|
134
|
+
mapKeyString = mapKey.to_s
|
135
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
136
|
+
mapKey = mapKeyString.to_sym
|
137
|
+
val = attributes[mapKey]
|
135
138
|
end
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
+
if !val.nil?
|
140
|
+
if type =~ /\AArray<(.*)>/i
|
141
|
+
# check to ensure the input is an array given that the the attribute
|
142
|
+
# is documented as an array but the input is not
|
143
|
+
if val.is_a?(Array)
|
144
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
145
|
+
end
|
146
|
+
else
|
147
|
+
self.send("#{key}=", _deserialize(type, val))
|
148
|
+
end
|
149
|
+
end
|
150
|
+
end
|
139
151
|
end
|
140
152
|
|
141
153
|
self
|
@@ -53,14 +53,14 @@ module AsposeSlidesCloud
|
|
53
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
54
54
|
def self.attribute_map
|
55
55
|
{
|
56
|
-
:'blend' => :'Blend'
|
56
|
+
:'blend' => :'Blend',
|
57
57
|
}
|
58
58
|
end
|
59
59
|
|
60
60
|
# Attribute type mapping.
|
61
61
|
def self.swagger_types
|
62
62
|
{
|
63
|
-
:'blend' => :'String'
|
63
|
+
:'blend' => :'String',
|
64
64
|
}
|
65
65
|
end
|
66
66
|
|
@@ -133,15 +133,27 @@ module AsposeSlidesCloud
|
|
133
133
|
def build_from_hash(attributes)
|
134
134
|
return nil unless attributes.is_a?(Hash)
|
135
135
|
self.class.swagger_types.each_pair do |key, type|
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
if
|
140
|
-
|
136
|
+
mapKey = self.class.attribute_map[key]
|
137
|
+
if !mapKey.nil?
|
138
|
+
val = attributes[mapKey]
|
139
|
+
if val.nil?
|
140
|
+
mapKeyString = mapKey.to_s
|
141
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
142
|
+
mapKey = mapKeyString.to_sym
|
143
|
+
val = attributes[mapKey]
|
141
144
|
end
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
+
if !val.nil?
|
146
|
+
if type =~ /\AArray<(.*)>/i
|
147
|
+
# check to ensure the input is an array given that the the attribute
|
148
|
+
# is documented as an array but the input is not
|
149
|
+
if val.is_a?(Array)
|
150
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
151
|
+
end
|
152
|
+
else
|
153
|
+
self.send("#{key}=", _deserialize(type, val))
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|
145
157
|
end
|
146
158
|
|
147
159
|
self
|
@@ -24,13 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents font scheme
|
27
|
-
class FontScheme
|
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 FontScheme < ResourceBase
|
34
28
|
# Gets or sets fonts collection for a \"heading\" part of the slide.
|
35
29
|
attr_accessor :major
|
36
30
|
|
@@ -42,43 +36,26 @@ module AsposeSlidesCloud
|
|
42
36
|
|
43
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
44
38
|
def self.attribute_map
|
45
|
-
{
|
46
|
-
:'self_uri' => :'SelfUri',
|
47
|
-
:'alternate_links' => :'AlternateLinks',
|
39
|
+
super.merge({
|
48
40
|
:'major' => :'Major',
|
49
41
|
:'minor' => :'Minor',
|
50
|
-
:'name' => :'Name'
|
51
|
-
}
|
42
|
+
:'name' => :'Name',
|
43
|
+
})
|
52
44
|
end
|
53
45
|
|
54
46
|
# Attribute type mapping.
|
55
47
|
def self.swagger_types
|
56
|
-
{
|
57
|
-
:'self_uri' => :'ResourceUri',
|
58
|
-
:'alternate_links' => :'Array<ResourceUri>',
|
48
|
+
super.merge({
|
59
49
|
:'major' => :'FontSet',
|
60
50
|
:'minor' => :'FontSet',
|
61
|
-
:'name' => :'String'
|
62
|
-
}
|
51
|
+
:'name' => :'String',
|
52
|
+
})
|
63
53
|
end
|
64
54
|
|
65
55
|
# Initializes the object
|
66
56
|
# @param [Hash] attributes Model attributes in the form of hash
|
67
57
|
def initialize(attributes = {})
|
68
|
-
|
69
|
-
|
70
|
-
# convert string to symbol for hash key
|
71
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
72
|
-
|
73
|
-
if attributes.has_key?(:'SelfUri')
|
74
|
-
self.self_uri = attributes[:'SelfUri']
|
75
|
-
end
|
76
|
-
|
77
|
-
if attributes.has_key?(:'AlternateLinks')
|
78
|
-
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
79
|
-
self.alternate_links = value
|
80
|
-
end
|
81
|
-
end
|
58
|
+
super
|
82
59
|
|
83
60
|
if attributes.has_key?(:'Major')
|
84
61
|
self.major = attributes[:'Major']
|
@@ -96,13 +73,14 @@ module AsposeSlidesCloud
|
|
96
73
|
# Show invalid properties with the reasons. Usually used together with valid?
|
97
74
|
# @return Array for valid properties with the reasons
|
98
75
|
def list_invalid_properties
|
99
|
-
invalid_properties =
|
76
|
+
invalid_properties = super
|
100
77
|
invalid_properties
|
101
78
|
end
|
102
79
|
|
103
80
|
# Check to see if the all the properties in the model are valid
|
104
81
|
# @return true if the model is valid
|
105
82
|
def valid?
|
83
|
+
return false if !super
|
106
84
|
true
|
107
85
|
end
|
108
86
|
|
@@ -136,15 +114,27 @@ module AsposeSlidesCloud
|
|
136
114
|
def build_from_hash(attributes)
|
137
115
|
return nil unless attributes.is_a?(Hash)
|
138
116
|
self.class.swagger_types.each_pair do |key, type|
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
if
|
143
|
-
|
117
|
+
mapKey = self.class.attribute_map[key]
|
118
|
+
if !mapKey.nil?
|
119
|
+
val = attributes[mapKey]
|
120
|
+
if val.nil?
|
121
|
+
mapKeyString = mapKey.to_s
|
122
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
123
|
+
mapKey = mapKeyString.to_sym
|
124
|
+
val = attributes[mapKey]
|
144
125
|
end
|
145
|
-
|
146
|
-
|
147
|
-
|
126
|
+
if !val.nil?
|
127
|
+
if type =~ /\AArray<(.*)>/i
|
128
|
+
# check to ensure the input is an array given that the the attribute
|
129
|
+
# is documented as an array but the input is not
|
130
|
+
if val.is_a?(Array)
|
131
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
132
|
+
end
|
133
|
+
else
|
134
|
+
self.send("#{key}=", _deserialize(type, val))
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
148
138
|
end
|
149
139
|
|
150
140
|
self
|
@@ -39,7 +39,7 @@ module AsposeSlidesCloud
|
|
39
39
|
{
|
40
40
|
:'complex_script' => :'ComplexScript',
|
41
41
|
:'east_asian' => :'EastAsian',
|
42
|
-
:'latin' => :'Latin'
|
42
|
+
:'latin' => :'Latin',
|
43
43
|
}
|
44
44
|
end
|
45
45
|
|
@@ -48,7 +48,7 @@ module AsposeSlidesCloud
|
|
48
48
|
{
|
49
49
|
:'complex_script' => :'String',
|
50
50
|
:'east_asian' => :'String',
|
51
|
-
:'latin' => :'String'
|
51
|
+
:'latin' => :'String',
|
52
52
|
}
|
53
53
|
end
|
54
54
|
|
@@ -114,15 +114,27 @@ module AsposeSlidesCloud
|
|
114
114
|
def build_from_hash(attributes)
|
115
115
|
return nil unless attributes.is_a?(Hash)
|
116
116
|
self.class.swagger_types.each_pair do |key, type|
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
if
|
121
|
-
|
117
|
+
mapKey = self.class.attribute_map[key]
|
118
|
+
if !mapKey.nil?
|
119
|
+
val = attributes[mapKey]
|
120
|
+
if val.nil?
|
121
|
+
mapKeyString = mapKey.to_s
|
122
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
123
|
+
mapKey = mapKeyString.to_sym
|
124
|
+
val = attributes[mapKey]
|
122
125
|
end
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
+
if !val.nil?
|
127
|
+
if type =~ /\AArray<(.*)>/i
|
128
|
+
# check to ensure the input is an array given that the the attribute
|
129
|
+
# is documented as an array but the input is not
|
130
|
+
if val.is_a?(Array)
|
131
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
132
|
+
end
|
133
|
+
else
|
134
|
+
self.send("#{key}=", _deserialize(type, val))
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
126
138
|
end
|
127
139
|
|
128
140
|
self
|
@@ -24,13 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents Format Scheme for slide's theme
|
27
|
-
class FormatScheme
|
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 FormatScheme < ResourceBase
|
34
28
|
# Background style links.
|
35
29
|
attr_accessor :background_styles
|
36
30
|
|
@@ -45,45 +39,28 @@ module AsposeSlidesCloud
|
|
45
39
|
|
46
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
47
41
|
def self.attribute_map
|
48
|
-
{
|
49
|
-
:'self_uri' => :'SelfUri',
|
50
|
-
:'alternate_links' => :'AlternateLinks',
|
42
|
+
super.merge({
|
51
43
|
:'background_styles' => :'BackgroundStyles',
|
52
44
|
:'effect_styles' => :'EffectStyles',
|
53
45
|
:'fill_styles' => :'FillStyles',
|
54
|
-
:'line_styles' => :'LineStyles'
|
55
|
-
}
|
46
|
+
:'line_styles' => :'LineStyles',
|
47
|
+
})
|
56
48
|
end
|
57
49
|
|
58
50
|
# Attribute type mapping.
|
59
51
|
def self.swagger_types
|
60
|
-
{
|
61
|
-
:'self_uri' => :'ResourceUri',
|
62
|
-
:'alternate_links' => :'Array<ResourceUri>',
|
52
|
+
super.merge({
|
63
53
|
:'background_styles' => :'Array<ResourceUri>',
|
64
54
|
:'effect_styles' => :'Array<ResourceUri>',
|
65
55
|
:'fill_styles' => :'Array<ResourceUri>',
|
66
|
-
:'line_styles' => :'Array<ResourceUri>'
|
67
|
-
}
|
56
|
+
:'line_styles' => :'Array<ResourceUri>',
|
57
|
+
})
|
68
58
|
end
|
69
59
|
|
70
60
|
# Initializes the object
|
71
61
|
# @param [Hash] attributes Model attributes in the form of hash
|
72
62
|
def initialize(attributes = {})
|
73
|
-
|
74
|
-
|
75
|
-
# convert string to symbol for hash key
|
76
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
77
|
-
|
78
|
-
if attributes.has_key?(:'SelfUri')
|
79
|
-
self.self_uri = attributes[:'SelfUri']
|
80
|
-
end
|
81
|
-
|
82
|
-
if attributes.has_key?(:'AlternateLinks')
|
83
|
-
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
84
|
-
self.alternate_links = value
|
85
|
-
end
|
86
|
-
end
|
63
|
+
super
|
87
64
|
|
88
65
|
if attributes.has_key?(:'BackgroundStyles')
|
89
66
|
if (value = attributes[:'BackgroundStyles']).is_a?(Array)
|
@@ -113,13 +90,14 @@ module AsposeSlidesCloud
|
|
113
90
|
# Show invalid properties with the reasons. Usually used together with valid?
|
114
91
|
# @return Array for valid properties with the reasons
|
115
92
|
def list_invalid_properties
|
116
|
-
invalid_properties =
|
93
|
+
invalid_properties = super
|
117
94
|
invalid_properties
|
118
95
|
end
|
119
96
|
|
120
97
|
# Check to see if the all the properties in the model are valid
|
121
98
|
# @return true if the model is valid
|
122
99
|
def valid?
|
100
|
+
return false if !super
|
123
101
|
true
|
124
102
|
end
|
125
103
|
|
@@ -154,15 +132,27 @@ module AsposeSlidesCloud
|
|
154
132
|
def build_from_hash(attributes)
|
155
133
|
return nil unless attributes.is_a?(Hash)
|
156
134
|
self.class.swagger_types.each_pair do |key, type|
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
if
|
161
|
-
|
135
|
+
mapKey = self.class.attribute_map[key]
|
136
|
+
if !mapKey.nil?
|
137
|
+
val = attributes[mapKey]
|
138
|
+
if val.nil?
|
139
|
+
mapKeyString = mapKey.to_s
|
140
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
141
|
+
mapKey = mapKeyString.to_sym
|
142
|
+
val = attributes[mapKey]
|
162
143
|
end
|
163
|
-
|
164
|
-
|
165
|
-
|
144
|
+
if !val.nil?
|
145
|
+
if type =~ /\AArray<(.*)>/i
|
146
|
+
# check to ensure the input is an array given that the the attribute
|
147
|
+
# is documented as an array but the input is not
|
148
|
+
if val.is_a?(Array)
|
149
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
150
|
+
end
|
151
|
+
else
|
152
|
+
self.send("#{key}=", _deserialize(type, val))
|
153
|
+
end
|
154
|
+
end
|
155
|
+
end
|
166
156
|
end
|
167
157
|
|
168
158
|
self
|