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
@@ -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
|
-
:'items' => :'Items'
|
34
|
+
:'items' => :'Items',
|
35
35
|
}
|
36
36
|
end
|
37
37
|
|
38
38
|
# Attribute type mapping.
|
39
39
|
def self.swagger_types
|
40
40
|
{
|
41
|
-
:'items' => :'Array<Float>'
|
41
|
+
:'items' => :'Array<Float>',
|
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
|
@@ -23,22 +23,17 @@ SOFTWARE.
|
|
23
23
|
require 'date'
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
|
-
#
|
27
|
-
class
|
28
|
-
# Resource URI.
|
29
|
-
attr_accessor :uri
|
30
|
-
|
26
|
+
# Data point.
|
27
|
+
class DataPoint
|
31
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
32
29
|
def self.attribute_map
|
33
30
|
{
|
34
|
-
:'uri' => :'Uri'
|
35
31
|
}
|
36
32
|
end
|
37
33
|
|
38
34
|
# Attribute type mapping.
|
39
35
|
def self.swagger_types
|
40
36
|
{
|
41
|
-
:'uri' => :'ResourceUri'
|
42
37
|
}
|
43
38
|
end
|
44
39
|
|
@@ -49,10 +44,6 @@ module AsposeSlidesCloud
|
|
49
44
|
|
50
45
|
# convert string to symbol for hash key
|
51
46
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
52
|
-
|
53
|
-
if attributes.has_key?(:'Uri')
|
54
|
-
self.uri = attributes[:'Uri']
|
55
|
-
end
|
56
47
|
end
|
57
48
|
|
58
49
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -72,8 +63,7 @@ module AsposeSlidesCloud
|
|
72
63
|
# @param [Object] Object to be compared
|
73
64
|
def ==(o)
|
74
65
|
return true if self.equal?(o)
|
75
|
-
self.class == o.class
|
76
|
-
uri == o.uri
|
66
|
+
self.class == o.class
|
77
67
|
end
|
78
68
|
|
79
69
|
# @see the `==` method
|
@@ -85,7 +75,7 @@ module AsposeSlidesCloud
|
|
85
75
|
# Calculates hash code according to all attributes.
|
86
76
|
# @return [Fixnum] Hash code
|
87
77
|
def hash
|
88
|
-
[
|
78
|
+
[].hash
|
89
79
|
end
|
90
80
|
|
91
81
|
# Builds the object from hash
|
@@ -94,15 +84,27 @@ module AsposeSlidesCloud
|
|
94
84
|
def build_from_hash(attributes)
|
95
85
|
return nil unless attributes.is_a?(Hash)
|
96
86
|
self.class.swagger_types.each_pair do |key, type|
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
if
|
101
|
-
|
87
|
+
mapKey = self.class.attribute_map[key]
|
88
|
+
if !mapKey.nil?
|
89
|
+
val = attributes[mapKey]
|
90
|
+
if val.nil?
|
91
|
+
mapKeyString = mapKey.to_s
|
92
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
93
|
+
mapKey = mapKeyString.to_sym
|
94
|
+
val = attributes[mapKey]
|
102
95
|
end
|
103
|
-
|
104
|
-
|
105
|
-
|
96
|
+
if !val.nil?
|
97
|
+
if type =~ /\AArray<(.*)>/i
|
98
|
+
# check to ensure the input is an array given that the the attribute
|
99
|
+
# is documented as an array but the input is not
|
100
|
+
if val.is_a?(Array)
|
101
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
102
|
+
end
|
103
|
+
else
|
104
|
+
self.send("#{key}=", _deserialize(type, val))
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
106
108
|
end
|
107
109
|
|
108
110
|
self
|
@@ -35,7 +35,7 @@ module AsposeSlidesCloud
|
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
37
|
:'used_size' => :'UsedSize',
|
38
|
-
:'total_size' => :'TotalSize'
|
38
|
+
:'total_size' => :'TotalSize',
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
|
|
43
43
|
def self.swagger_types
|
44
44
|
{
|
45
45
|
:'used_size' => :'Integer',
|
46
|
-
:'total_size' => :'Integer'
|
46
|
+
:'total_size' => :'Integer',
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|
@@ -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 document DTO.
|
27
|
-
class Document
|
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 Document < ResourceBase
|
34
28
|
# Link to Document properties.
|
35
29
|
attr_accessor :document_properties
|
36
30
|
|
@@ -51,49 +45,32 @@ module AsposeSlidesCloud
|
|
51
45
|
|
52
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
47
|
def self.attribute_map
|
54
|
-
{
|
55
|
-
:'self_uri' => :'SelfUri',
|
56
|
-
:'alternate_links' => :'AlternateLinks',
|
48
|
+
super.merge({
|
57
49
|
:'document_properties' => :'DocumentProperties',
|
58
50
|
:'view_properties' => :'ViewProperties',
|
59
51
|
:'slides' => :'Slides',
|
60
52
|
:'images' => :'Images',
|
61
53
|
:'layout_slides' => :'LayoutSlides',
|
62
|
-
:'master_slides' => :'MasterSlides'
|
63
|
-
}
|
54
|
+
:'master_slides' => :'MasterSlides',
|
55
|
+
})
|
64
56
|
end
|
65
57
|
|
66
58
|
# Attribute type mapping.
|
67
59
|
def self.swagger_types
|
68
|
-
{
|
69
|
-
:'
|
70
|
-
:'
|
71
|
-
:'
|
72
|
-
:'
|
73
|
-
:'
|
74
|
-
:'
|
75
|
-
|
76
|
-
:'master_slides' => :'ResourceUriElement'
|
77
|
-
}
|
60
|
+
super.merge({
|
61
|
+
:'document_properties' => :'ResourceUri',
|
62
|
+
:'view_properties' => :'ResourceUri',
|
63
|
+
:'slides' => :'ResourceUri',
|
64
|
+
:'images' => :'ResourceUri',
|
65
|
+
:'layout_slides' => :'ResourceUri',
|
66
|
+
:'master_slides' => :'ResourceUri',
|
67
|
+
})
|
78
68
|
end
|
79
69
|
|
80
70
|
# Initializes the object
|
81
71
|
# @param [Hash] attributes Model attributes in the form of hash
|
82
72
|
def initialize(attributes = {})
|
83
|
-
|
84
|
-
|
85
|
-
# convert string to symbol for hash key
|
86
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
87
|
-
|
88
|
-
if attributes.has_key?(:'SelfUri')
|
89
|
-
self.self_uri = attributes[:'SelfUri']
|
90
|
-
end
|
91
|
-
|
92
|
-
if attributes.has_key?(:'AlternateLinks')
|
93
|
-
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
94
|
-
self.alternate_links = value
|
95
|
-
end
|
96
|
-
end
|
73
|
+
super
|
97
74
|
|
98
75
|
if attributes.has_key?(:'DocumentProperties')
|
99
76
|
self.document_properties = attributes[:'DocumentProperties']
|
@@ -123,13 +100,14 @@ module AsposeSlidesCloud
|
|
123
100
|
# Show invalid properties with the reasons. Usually used together with valid?
|
124
101
|
# @return Array for valid properties with the reasons
|
125
102
|
def list_invalid_properties
|
126
|
-
invalid_properties =
|
103
|
+
invalid_properties = super
|
127
104
|
invalid_properties
|
128
105
|
end
|
129
106
|
|
130
107
|
# Check to see if the all the properties in the model are valid
|
131
108
|
# @return true if the model is valid
|
132
109
|
def valid?
|
110
|
+
return false if !super
|
133
111
|
true
|
134
112
|
end
|
135
113
|
|
@@ -166,15 +144,27 @@ module AsposeSlidesCloud
|
|
166
144
|
def build_from_hash(attributes)
|
167
145
|
return nil unless attributes.is_a?(Hash)
|
168
146
|
self.class.swagger_types.each_pair do |key, type|
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
if
|
173
|
-
|
147
|
+
mapKey = self.class.attribute_map[key]
|
148
|
+
if !mapKey.nil?
|
149
|
+
val = attributes[mapKey]
|
150
|
+
if val.nil?
|
151
|
+
mapKeyString = mapKey.to_s
|
152
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
153
|
+
mapKey = mapKeyString.to_sym
|
154
|
+
val = attributes[mapKey]
|
174
155
|
end
|
175
|
-
|
176
|
-
|
177
|
-
|
156
|
+
if !val.nil?
|
157
|
+
if type =~ /\AArray<(.*)>/i
|
158
|
+
# check to ensure the input is an array given that the the attribute
|
159
|
+
# is documented as an array but the input is not
|
160
|
+
if val.is_a?(Array)
|
161
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
162
|
+
end
|
163
|
+
else
|
164
|
+
self.send("#{key}=", _deserialize(type, val))
|
165
|
+
end
|
166
|
+
end
|
167
|
+
end
|
178
168
|
end
|
179
169
|
|
180
170
|
self
|
@@ -24,51 +24,28 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Slides document properties.
|
27
|
-
class DocumentProperties
|
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 DocumentProperties < ResourceBase
|
34
28
|
# Document property 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<DocumentProperty>'
|
52
|
-
}
|
40
|
+
super.merge({
|
41
|
+
:'list' => :'Array<DocumentProperty>',
|
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,13 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Document property.
|
27
|
-
class DocumentProperty
|
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 DocumentProperty < ResourceBase
|
34
28
|
# Name.
|
35
29
|
attr_accessor :name
|
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
|
:'name' => :'Name',
|
49
41
|
:'value' => :'Value',
|
50
|
-
:'built_in' => :'BuiltIn'
|
51
|
-
}
|
42
|
+
:'built_in' => :'BuiltIn',
|
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
|
:'name' => :'String',
|
60
50
|
:'value' => :'String',
|
61
|
-
:'built_in' => :'BOOLEAN'
|
62
|
-
}
|
51
|
+
:'built_in' => :'BOOLEAN',
|
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?(:'Name')
|
84
61
|
self.name = attributes[:'Name']
|
@@ -96,7 +73,7 @@ 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
|
if @built_in.nil?
|
101
78
|
invalid_properties.push('invalid value for "built_in", built_in cannot be nil.')
|
102
79
|
end
|
@@ -107,6 +84,7 @@ module AsposeSlidesCloud
|
|
107
84
|
# Check to see if the all the properties in the model are valid
|
108
85
|
# @return true if the model is valid
|
109
86
|
def valid?
|
87
|
+
return false if !super
|
110
88
|
return false if @built_in.nil?
|
111
89
|
true
|
112
90
|
end
|
@@ -141,15 +119,27 @@ module AsposeSlidesCloud
|
|
141
119
|
def build_from_hash(attributes)
|
142
120
|
return nil unless attributes.is_a?(Hash)
|
143
121
|
self.class.swagger_types.each_pair do |key, type|
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
if
|
148
|
-
|
122
|
+
mapKey = self.class.attribute_map[key]
|
123
|
+
if !mapKey.nil?
|
124
|
+
val = attributes[mapKey]
|
125
|
+
if val.nil?
|
126
|
+
mapKeyString = mapKey.to_s
|
127
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
128
|
+
mapKey = mapKeyString.to_sym
|
129
|
+
val = attributes[mapKey]
|
149
130
|
end
|
150
|
-
|
151
|
-
|
152
|
-
|
131
|
+
if !val.nil?
|
132
|
+
if type =~ /\AArray<(.*)>/i
|
133
|
+
# check to ensure the input is an array given that the the attribute
|
134
|
+
# is documented as an array but the input is not
|
135
|
+
if val.is_a?(Array)
|
136
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
137
|
+
end
|
138
|
+
else
|
139
|
+
self.send("#{key}=", _deserialize(type, val))
|
140
|
+
end
|
141
|
+
end
|
142
|
+
end
|
153
143
|
end
|
154
144
|
|
155
145
|
self
|