aspose_slides_cloud 20.7.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/TestData/ChartTest.pptx +0 -0
- data/lib/aspose_slides_cloud.rb +5 -3
- data/lib/aspose_slides_cloud/api/slides_api.rb +407 -0
- data/lib/aspose_slides_cloud/api/slides_api_requests.rb +165 -0
- data/lib/aspose_slides_cloud/api_client.rb +1 -2
- data/lib/aspose_slides_cloud/models/add_layout_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/add_master_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/add_shape.rb +11 -40
- data/lib/aspose_slides_cloud/models/add_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/api_info.rb +2 -2
- data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +2 -2
- data/lib/aspose_slides_cloud/models/audio_frame.rb +12 -236
- data/lib/aspose_slides_cloud/models/axes.rb +2 -2
- data/lib/aspose_slides_cloud/models/axis.rb +2 -2
- data/lib/aspose_slides_cloud/models/base64_input_file.rb +11 -49
- data/lib/aspose_slides_cloud/models/blur_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +11 -216
- data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +10 -40
- data/lib/aspose_slides_cloud/models/bubble_series.rb +11 -205
- data/lib/aspose_slides_cloud/models/chart.rb +12 -210
- data/lib/aspose_slides_cloud/models/chart_category.rb +16 -4
- data/lib/aspose_slides_cloud/models/chart_title.rb +2 -2
- data/lib/aspose_slides_cloud/models/chart_wall.rb +2 -2
- data/lib/aspose_slides_cloud/models/color_scheme.rb +10 -32
- data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +2 -2
- data/lib/aspose_slides_cloud/models/connector.rb +11 -234
- data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +2 -2
- data/lib/aspose_slides_cloud/models/disc_usage.rb +2 -2
- data/lib/aspose_slides_cloud/models/document.rb +10 -32
- data/lib/aspose_slides_cloud/models/document_properties.rb +10 -32
- data/lib/aspose_slides_cloud/models/document_property.rb +10 -32
- data/lib/aspose_slides_cloud/models/document_replace_result.rb +10 -86
- data/lib/aspose_slides_cloud/models/effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/effect_format.rb +2 -2
- data/lib/aspose_slides_cloud/models/entity_exists.rb +2 -2
- data/lib/aspose_slides_cloud/models/error.rb +2 -2
- data/lib/aspose_slides_cloud/models/error_details.rb +2 -2
- data/lib/aspose_slides_cloud/models/export_options.rb +13 -3
- data/lib/aspose_slides_cloud/models/file_version.rb +10 -67
- data/lib/aspose_slides_cloud/models/file_versions.rb +2 -2
- data/lib/aspose_slides_cloud/models/files_list.rb +2 -2
- data/lib/aspose_slides_cloud/models/files_upload_result.rb +2 -2
- data/lib/aspose_slides_cloud/models/fill_format.rb +2 -2
- data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/font_scheme.rb +10 -32
- data/lib/aspose_slides_cloud/models/font_set.rb +2 -2
- data/lib/aspose_slides_cloud/models/format_scheme.rb +10 -32
- data/lib/aspose_slides_cloud/models/geometry_shape.rb +10 -200
- data/lib/aspose_slides_cloud/models/glow_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/gradient_fill.rb +11 -40
- data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +2 -2
- data/lib/aspose_slides_cloud/models/graphical_object.rb +11 -209
- data/lib/aspose_slides_cloud/models/group_shape.rb +11 -209
- data/lib/aspose_slides_cloud/models/html_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +2 -2
- data/lib/aspose_slides_cloud/models/image.rb +10 -32
- data/lib/aspose_slides_cloud/models/image_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/images.rb +10 -32
- data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/input.rb +2 -2
- data/lib/aspose_slides_cloud/models/input_file.rb +2 -2
- data/lib/aspose_slides_cloud/models/interactive_sequence.rb +2 -2
- data/lib/aspose_slides_cloud/models/layout_slide.rb +10 -32
- data/lib/aspose_slides_cloud/models/layout_slides.rb +10 -32
- data/lib/aspose_slides_cloud/models/legend.rb +2 -2
- data/lib/aspose_slides_cloud/models/line_format.rb +2 -2
- data/lib/aspose_slides_cloud/models/master_slide.rb +10 -32
- data/lib/aspose_slides_cloud/models/master_slides.rb +10 -32
- data/lib/aspose_slides_cloud/models/merge.rb +11 -40
- data/lib/aspose_slides_cloud/models/merging_source.rb +2 -2
- data/lib/aspose_slides_cloud/models/no_fill.rb +9 -38
- data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +2 -2
- data/lib/aspose_slides_cloud/models/notes_slide.rb +10 -32
- data/lib/aspose_slides_cloud/models/object_exist.rb +2 -2
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +12 -210
- data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +10 -12
- data/lib/aspose_slides_cloud/models/one_value_series.rb +11 -205
- data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +2 -2
- data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/output_file.rb +2 -2
- data/lib/aspose_slides_cloud/models/paragraph.rb +10 -32
- data/lib/aspose_slides_cloud/models/paragraphs.rb +10 -32
- data/lib/aspose_slides_cloud/models/path_input_file.rb +11 -49
- data/lib/aspose_slides_cloud/models/path_output_file.rb +11 -40
- data/lib/aspose_slides_cloud/models/pattern_fill.rb +11 -40
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/picture_fill.rb +11 -40
- data/lib/aspose_slides_cloud/models/picture_frame.rb +12 -236
- data/lib/aspose_slides_cloud/models/pipeline.rb +2 -2
- data/lib/aspose_slides_cloud/models/placeholder.rb +10 -32
- data/lib/aspose_slides_cloud/models/placeholders.rb +10 -32
- data/lib/aspose_slides_cloud/models/plot_area.rb +2 -2
- data/lib/aspose_slides_cloud/models/portion.rb +10 -32
- data/lib/aspose_slides_cloud/models/portions.rb +10 -32
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +2 -2
- data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +2 -2
- data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/reflection_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/remove_shape.rb +11 -40
- data/lib/aspose_slides_cloud/models/remove_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/reorder_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/replace_text.rb +11 -40
- data/lib/aspose_slides_cloud/models/request_input_file.rb +11 -49
- data/lib/aspose_slides_cloud/models/reset_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/resource_base.rb +2 -2
- data/lib/aspose_slides_cloud/models/resource_uri.rb +2 -2
- data/lib/aspose_slides_cloud/models/resource_uri_element.rb +2 -2
- data/lib/aspose_slides_cloud/models/response_output_file.rb +9 -38
- data/lib/aspose_slides_cloud/models/save.rb +11 -40
- data/lib/aspose_slides_cloud/models/save_shape.rb +11 -40
- data/lib/aspose_slides_cloud/models/save_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +10 -12
- data/lib/aspose_slides_cloud/models/scatter_series.rb +11 -205
- data/lib/aspose_slides_cloud/models/series.rb +2 -2
- data/lib/aspose_slides_cloud/models/series_marker.rb +2 -2
- data/lib/aspose_slides_cloud/models/shape.rb +11 -234
- data/lib/aspose_slides_cloud/models/shape_base.rb +10 -32
- data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +2 -2
- data/lib/aspose_slides_cloud/models/shapes.rb +10 -32
- data/lib/aspose_slides_cloud/models/slide.rb +10 -32
- data/lib/aspose_slides_cloud/models/slide_animation.rb +10 -32
- data/lib/aspose_slides_cloud/models/slide_background.rb +10 -32
- data/lib/aspose_slides_cloud/models/slide_comment.rb +2 -2
- data/lib/aspose_slides_cloud/models/slide_comments.rb +10 -32
- data/lib/aspose_slides_cloud/models/slide_replace_result.rb +10 -146
- data/lib/aspose_slides_cloud/models/slides.rb +10 -32
- data/lib/aspose_slides_cloud/models/smart_art.rb +12 -210
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +2 -2
- data/lib/aspose_slides_cloud/models/smart_art_shape.rb +11 -209
- data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/solid_fill.rb +11 -40
- data/lib/aspose_slides_cloud/models/split_document_result.rb +10 -32
- data/lib/aspose_slides_cloud/models/storage_exist.rb +2 -2
- data/lib/aspose_slides_cloud/models/storage_file.rb +2 -2
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/table.rb +12 -210
- data/lib/aspose_slides_cloud/models/table_cell.rb +2 -2
- data/lib/aspose_slides_cloud/models/table_column.rb +2 -2
- data/lib/aspose_slides_cloud/models/table_row.rb +2 -2
- data/lib/aspose_slides_cloud/models/task.rb +2 -2
- data/lib/aspose_slides_cloud/models/text_item.rb +2 -2
- data/lib/aspose_slides_cloud/models/text_items.rb +10 -32
- data/lib/aspose_slides_cloud/models/theme.rb +10 -32
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/update_background.rb +11 -40
- data/lib/aspose_slides_cloud/models/update_shape.rb +11 -40
- data/lib/aspose_slides_cloud/models/video_frame.rb +12 -236
- data/lib/aspose_slides_cloud/models/view_properties.rb +10 -32
- data/lib/aspose_slides_cloud/models/waterfall_series.rb +11 -216
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +13 -24
- 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 +1417 -63
- data/spec/extra/extra_spec.rb +66 -33
- data/testRules.json +31 -0
- metadata +4 -2
@@ -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<ResourceUriElement>',
|
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
|
|
@@ -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)
|
@@ -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)
|
@@ -24,10 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents Pattern Fill
|
27
|
-
class PatternFill
|
28
|
-
# Type of fill.
|
29
|
-
attr_accessor :type
|
30
|
-
|
27
|
+
class PatternFill < FillFormat
|
31
28
|
# Gets or sets the back color of the pattern fill.
|
32
29
|
attr_accessor :back_color
|
33
30
|
|
@@ -61,37 +58,26 @@ module AsposeSlidesCloud
|
|
61
58
|
|
62
59
|
# Attribute mapping from ruby-style variable name to JSON key.
|
63
60
|
def self.attribute_map
|
64
|
-
{
|
65
|
-
:'type' => :'Type',
|
61
|
+
super.merge({
|
66
62
|
:'back_color' => :'BackColor',
|
67
63
|
:'fore_color' => :'ForeColor',
|
68
|
-
:'style' => :'Style'
|
69
|
-
}
|
64
|
+
:'style' => :'Style',
|
65
|
+
})
|
70
66
|
end
|
71
67
|
|
72
68
|
# Attribute type mapping.
|
73
69
|
def self.swagger_types
|
74
|
-
{
|
75
|
-
:'type' => :'String',
|
70
|
+
super.merge({
|
76
71
|
:'back_color' => :'String',
|
77
72
|
:'fore_color' => :'String',
|
78
|
-
:'style' => :'String'
|
79
|
-
}
|
73
|
+
:'style' => :'String',
|
74
|
+
})
|
80
75
|
end
|
81
76
|
|
82
77
|
# Initializes the object
|
83
78
|
# @param [Hash] attributes Model attributes in the form of hash
|
84
79
|
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?(:'Type')
|
91
|
-
self.type = attributes[:'Type']
|
92
|
-
else
|
93
|
-
self.type = "Pattern"
|
94
|
-
end
|
80
|
+
super
|
95
81
|
|
96
82
|
if attributes.has_key?(:'BackColor')
|
97
83
|
self.back_color = attributes[:'BackColor']
|
@@ -104,16 +90,13 @@ module AsposeSlidesCloud
|
|
104
90
|
if attributes.has_key?(:'Style')
|
105
91
|
self.style = attributes[:'Style']
|
106
92
|
end
|
93
|
+
self.type = "Pattern"
|
107
94
|
end
|
108
95
|
|
109
96
|
# Show invalid properties with the reasons. Usually used together with valid?
|
110
97
|
# @return Array for valid properties with the reasons
|
111
98
|
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
|
-
|
99
|
+
invalid_properties = super
|
117
100
|
if @style.nil?
|
118
101
|
invalid_properties.push('invalid value for "style", style cannot be nil.')
|
119
102
|
end
|
@@ -124,25 +107,13 @@ module AsposeSlidesCloud
|
|
124
107
|
# Check to see if the all the properties in the model are valid
|
125
108
|
# @return true if the model is valid
|
126
109
|
def valid?
|
127
|
-
return false if
|
128
|
-
type_validator = EnumAttributeValidator.new('String', ['NoFill', 'Solid', 'Gradient', 'Pattern', 'Picture', 'NotDefined'])
|
129
|
-
return false unless type_validator.valid?(@type)
|
110
|
+
return false if !super
|
130
111
|
return false if @style.nil?
|
131
112
|
style_validator = EnumAttributeValidator.new('String', ['Unknown', 'Percent05', 'Percent10', 'Percent20', 'Percent25', 'Percent30', 'Percent40', 'Percent50', 'Percent60', 'Percent70', 'Percent75', 'Percent80', 'Percent90', 'DarkHorizontal', 'DarkVertical', 'DarkDownwardDiagonal', 'DarkUpwardDiagonal', 'SmallCheckerBoard', 'Trellis', 'LightHorizontal', 'LightVertical', 'LightDownwardDiagonal', 'LightUpwardDiagonal', 'SmallGrid', 'DottedDiamond', 'WideDownwardDiagonal', 'WideUpwardDiagonal', 'DashedUpwardDiagonal', 'DashedDownwardDiagonal', 'NarrowVertical', 'NarrowHorizontal', 'DashedVertical', 'DashedHorizontal', 'LargeConfetti', 'LargeGrid', 'HorizontalBrick', 'LargeCheckerBoard', 'SmallConfetti', 'Zigzag', 'SolidDiamond', 'DiagonalBrick', 'OutlinedDiamond', 'Plaid', 'Sphere', 'Weave', 'DottedGrid', 'Divot', 'Shingle', 'Wave', 'Horizontal', 'Vertical', 'Cross', 'DownwardDiagonal', 'UpwardDiagonal', 'DiagonalCross', 'NotDefined'])
|
132
113
|
return false unless style_validator.valid?(@style)
|
133
114
|
true
|
134
115
|
end
|
135
116
|
|
136
|
-
# Custom attribute writer method checking allowed values (enum).
|
137
|
-
# @param [Object] type Object to be assigned
|
138
|
-
def type=(type)
|
139
|
-
validator = EnumAttributeValidator.new('String', ['NoFill', 'Solid', 'Gradient', 'Pattern', 'Picture', 'NotDefined'])
|
140
|
-
unless validator.valid?(type)
|
141
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
142
|
-
end
|
143
|
-
@type = type
|
144
|
-
end
|
145
|
-
|
146
117
|
# Custom attribute writer method checking allowed values (enum).
|
147
118
|
# @param [Object] style Object to be assigned
|
148
119
|
def style=(style)
|
@@ -24,10 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Provides options that control how a presentation is saved in Pdf format.
|
27
|
-
class PdfExportOptions
|
28
|
-
# Export format.
|
29
|
-
attr_accessor :format
|
30
|
-
|
27
|
+
class PdfExportOptions < ExportOptions
|
31
28
|
# Specifies compression type to be used for all textual content in the document.
|
32
29
|
attr_accessor :text_compression
|
33
30
|
|
@@ -109,8 +106,7 @@ module AsposeSlidesCloud
|
|
109
106
|
|
110
107
|
# Attribute mapping from ruby-style variable name to JSON key.
|
111
108
|
def self.attribute_map
|
112
|
-
{
|
113
|
-
:'format' => :'Format',
|
109
|
+
super.merge({
|
114
110
|
:'text_compression' => :'TextCompression',
|
115
111
|
:'embed_full_fonts' => :'EmbedFullFonts',
|
116
112
|
:'compliance' => :'Compliance',
|
@@ -129,14 +125,13 @@ module AsposeSlidesCloud
|
|
129
125
|
:'show_comments_by_no_author' => :'ShowCommentsByNoAuthor',
|
130
126
|
:'image_transparent_color' => :'ImageTransparentColor',
|
131
127
|
:'apply_image_transparent' => :'ApplyImageTransparent',
|
132
|
-
:'access_permissions' => :'AccessPermissions'
|
133
|
-
}
|
128
|
+
:'access_permissions' => :'AccessPermissions',
|
129
|
+
})
|
134
130
|
end
|
135
131
|
|
136
132
|
# Attribute type mapping.
|
137
133
|
def self.swagger_types
|
138
|
-
{
|
139
|
-
:'format' => :'String',
|
134
|
+
super.merge({
|
140
135
|
:'text_compression' => :'String',
|
141
136
|
:'embed_full_fonts' => :'BOOLEAN',
|
142
137
|
:'compliance' => :'String',
|
@@ -155,23 +150,14 @@ module AsposeSlidesCloud
|
|
155
150
|
:'show_comments_by_no_author' => :'BOOLEAN',
|
156
151
|
:'image_transparent_color' => :'String',
|
157
152
|
:'apply_image_transparent' => :'BOOLEAN',
|
158
|
-
:'access_permissions' => :'String'
|
159
|
-
}
|
153
|
+
:'access_permissions' => :'String',
|
154
|
+
})
|
160
155
|
end
|
161
156
|
|
162
157
|
# Initializes the object
|
163
158
|
# @param [Hash] attributes Model attributes in the form of hash
|
164
159
|
def initialize(attributes = {})
|
165
|
-
|
166
|
-
|
167
|
-
# convert string to symbol for hash key
|
168
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
169
|
-
|
170
|
-
if attributes.has_key?(:'Format')
|
171
|
-
self.format = attributes[:'Format']
|
172
|
-
else
|
173
|
-
self.format = "pdf"
|
174
|
-
end
|
160
|
+
super
|
175
161
|
|
176
162
|
if attributes.has_key?(:'TextCompression')
|
177
163
|
self.text_compression = attributes[:'TextCompression']
|
@@ -250,12 +236,13 @@ module AsposeSlidesCloud
|
|
250
236
|
if attributes.has_key?(:'AccessPermissions')
|
251
237
|
self.access_permissions = attributes[:'AccessPermissions']
|
252
238
|
end
|
239
|
+
self.format = "pdf"
|
253
240
|
end
|
254
241
|
|
255
242
|
# Show invalid properties with the reasons. Usually used together with valid?
|
256
243
|
# @return Array for valid properties with the reasons
|
257
244
|
def list_invalid_properties
|
258
|
-
invalid_properties =
|
245
|
+
invalid_properties = super
|
259
246
|
if @text_compression.nil?
|
260
247
|
invalid_properties.push('invalid value for "text_compression", text_compression cannot be nil.')
|
261
248
|
end
|
@@ -322,6 +309,7 @@ module AsposeSlidesCloud
|
|
322
309
|
# Check to see if the all the properties in the model are valid
|
323
310
|
# @return true if the model is valid
|
324
311
|
def valid?
|
312
|
+
return false if !super
|
325
313
|
return false if @text_compression.nil?
|
326
314
|
text_compression_validator = EnumAttributeValidator.new('String', ['None', 'Flate'])
|
327
315
|
return false unless text_compression_validator.valid?(@text_compression)
|
@@ -405,6 +393,7 @@ module AsposeSlidesCloud
|
|
405
393
|
def ==(o)
|
406
394
|
return true if self.equal?(o)
|
407
395
|
self.class == o.class &&
|
396
|
+
default_regular_font == o.default_regular_font &&
|
408
397
|
format == o.format &&
|
409
398
|
text_compression == o.text_compression &&
|
410
399
|
embed_full_fonts == o.embed_full_fonts &&
|
@@ -436,7 +425,7 @@ module AsposeSlidesCloud
|
|
436
425
|
# Calculates hash code according to all attributes.
|
437
426
|
# @return [Fixnum] Hash code
|
438
427
|
def hash
|
439
|
-
[format, text_compression, embed_full_fonts, compliance, sufficient_resolution, jpeg_quality, draw_slides_frame, show_hidden_slides, save_metafiles_as_png, password, embed_true_type_fonts_for_ascii, additional_common_font_families, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author, image_transparent_color, apply_image_transparent, access_permissions].hash
|
428
|
+
[default_regular_font, format, text_compression, embed_full_fonts, compliance, sufficient_resolution, jpeg_quality, draw_slides_frame, show_hidden_slides, save_metafiles_as_png, password, embed_true_type_fonts_for_ascii, additional_common_font_families, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author, image_transparent_color, apply_image_transparent, access_permissions].hash
|
440
429
|
end
|
441
430
|
|
442
431
|
# Builds the object from hash
|