aspose_slides_cloud 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +22 -0
  3. data/README.md +42 -0
  4. data/aspose_slides_cloud.gemspec +26 -0
  5. data/lib/aspose_slides_cloud.rb +94 -0
  6. data/lib/aspose_slides_cloud/api/slides_api.rb +3420 -0
  7. data/lib/aspose_slides_cloud/api_client.rb +335 -0
  8. data/lib/aspose_slides_cloud/api_error.rb +24 -0
  9. data/lib/aspose_slides_cloud/configuration.rb +166 -0
  10. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +53 -0
  11. data/lib/aspose_slides_cloud/models/base_object.rb +86 -0
  12. data/lib/aspose_slides_cloud/models/base_response.rb +53 -0
  13. data/lib/aspose_slides_cloud/models/color.rb +29 -0
  14. data/lib/aspose_slides_cloud/models/color_scheme.rb +153 -0
  15. data/lib/aspose_slides_cloud/models/color_scheme_response.rb +61 -0
  16. data/lib/aspose_slides_cloud/models/common_response.rb +53 -0
  17. data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +39 -0
  18. data/lib/aspose_slides_cloud/models/document.rb +81 -0
  19. data/lib/aspose_slides_cloud/models/document_properties.rb +67 -0
  20. data/lib/aspose_slides_cloud/models/document_properties_response.rb +61 -0
  21. data/lib/aspose_slides_cloud/models/document_property.rb +81 -0
  22. data/lib/aspose_slides_cloud/models/document_property_response.rb +61 -0
  23. data/lib/aspose_slides_cloud/models/document_response.rb +61 -0
  24. data/lib/aspose_slides_cloud/models/fill_format.rb +37 -0
  25. data/lib/aspose_slides_cloud/models/font_scheme.rb +81 -0
  26. data/lib/aspose_slides_cloud/models/font_scheme_response.rb +61 -0
  27. data/lib/aspose_slides_cloud/models/font_set.rb +53 -0
  28. data/lib/aspose_slides_cloud/models/format_scheme.rb +97 -0
  29. data/lib/aspose_slides_cloud/models/format_scheme_response.rb +61 -0
  30. data/lib/aspose_slides_cloud/models/html_export_options.rb +53 -0
  31. data/lib/aspose_slides_cloud/models/image.rb +73 -0
  32. data/lib/aspose_slides_cloud/models/images.rb +67 -0
  33. data/lib/aspose_slides_cloud/models/images_response.rb +61 -0
  34. data/lib/aspose_slides_cloud/models/line_format.rb +117 -0
  35. data/lib/aspose_slides_cloud/models/new_shape_response.rb +61 -0
  36. data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +39 -0
  37. data/lib/aspose_slides_cloud/models/paragraph.rb +67 -0
  38. data/lib/aspose_slides_cloud/models/paragraph_portion_response.rb +61 -0
  39. data/lib/aspose_slides_cloud/models/paragraphs.rb +67 -0
  40. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +101 -0
  41. data/lib/aspose_slides_cloud/models/placeholder.rb +97 -0
  42. data/lib/aspose_slides_cloud/models/placeholder_response.rb +61 -0
  43. data/lib/aspose_slides_cloud/models/placeholders.rb +67 -0
  44. data/lib/aspose_slides_cloud/models/placeholders_response.rb +61 -0
  45. data/lib/aspose_slides_cloud/models/portion.rb +81 -0
  46. data/lib/aspose_slides_cloud/models/presentation_string_replace_response.rb +69 -0
  47. data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +47 -0
  48. data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +39 -0
  49. data/lib/aspose_slides_cloud/models/resource_uri.rb +61 -0
  50. data/lib/aspose_slides_cloud/models/resource_uri_element.rb +37 -0
  51. data/lib/aspose_slides_cloud/models/shape.rb +169 -0
  52. data/lib/aspose_slides_cloud/models/shape_list.rb +67 -0
  53. data/lib/aspose_slides_cloud/models/shape_paragraph_response.rb +61 -0
  54. data/lib/aspose_slides_cloud/models/shape_paragraphs_response.rb +61 -0
  55. data/lib/aspose_slides_cloud/models/shape_response.rb +61 -0
  56. data/lib/aspose_slides_cloud/models/slide.rb +121 -0
  57. data/lib/aspose_slides_cloud/models/slide_background.rb +73 -0
  58. data/lib/aspose_slides_cloud/models/slide_background_response.rb +61 -0
  59. data/lib/aspose_slides_cloud/models/slide_comment.rb +53 -0
  60. data/lib/aspose_slides_cloud/models/slide_comments.rb +67 -0
  61. data/lib/aspose_slides_cloud/models/slide_comments_response.rb +61 -0
  62. data/lib/aspose_slides_cloud/models/slide_list_response.rb +61 -0
  63. data/lib/aspose_slides_cloud/models/slide_response.rb +61 -0
  64. data/lib/aspose_slides_cloud/models/slide_string_replace_response.rb +69 -0
  65. data/lib/aspose_slides_cloud/models/slides.rb +67 -0
  66. data/lib/aspose_slides_cloud/models/split_document_response.rb +61 -0
  67. data/lib/aspose_slides_cloud/models/split_document_result.rb +67 -0
  68. data/lib/aspose_slides_cloud/models/text_item.rb +45 -0
  69. data/lib/aspose_slides_cloud/models/text_items.rb +67 -0
  70. data/lib/aspose_slides_cloud/models/text_items_response.rb +61 -0
  71. data/lib/aspose_slides_cloud/models/theme.rb +89 -0
  72. data/lib/aspose_slides_cloud/models/theme_response.rb +61 -0
  73. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +77 -0
  74. data/lib/aspose_slides_cloud/version.rb +3 -0
  75. data/test/data/ReadMe.html +48 -0
  76. data/test/data/Test.html +6 -0
  77. data/test/data/demo.pptx +0 -0
  78. data/test/data/sample-input.pptx +0 -0
  79. data/test/data/sample.pptx +0 -0
  80. data/test/data/welcome.pptx +0 -0
  81. data/test/slides_tests.rb +570 -0
  82. metadata +200 -0
@@ -0,0 +1,61 @@
1
+ module AsposeSlidesCloud
2
+ #
3
+ class PlaceholdersResponse < BaseObject
4
+ attr_accessor :placeholders, :status, :code
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'placeholders' => :'Placeholders',
11
+
12
+ #
13
+ :'status' => :'Status',
14
+
15
+ #
16
+ :'code' => :'Code'
17
+
18
+ }
19
+ end
20
+
21
+ # attribute type
22
+ def self.swagger_types
23
+ {
24
+ :'placeholders' => :'Placeholders',
25
+ :'status' => :'String',
26
+ :'code' => :'String'
27
+
28
+ }
29
+ end
30
+
31
+ def initialize(attributes = {})
32
+ return if !attributes.is_a?(Hash) || attributes.empty?
33
+
34
+ # convert string to symbol for hash key
35
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
36
+
37
+
38
+ if attributes[:'Placeholders']
39
+ self.placeholders = attributes[:'Placeholders']
40
+ end
41
+
42
+ if attributes[:'Status']
43
+ self.status = attributes[:'Status']
44
+ end
45
+
46
+ if attributes[:'Code']
47
+ self.code = attributes[:'Code']
48
+ end
49
+
50
+ end
51
+
52
+ def status=(status)
53
+ allowed_values = ["Continue", "SwitchingProtocols", "OK", "Created", "Accepted", "NonAuthoritativeInformation", "NoContent", "ResetContent", "PartialContent", "MultipleChoices", "Ambiguous", "MovedPermanently", "Moved", "Found", "Redirect", "SeeOther", "RedirectMethod", "NotModified", "UseProxy", "Unused", "TemporaryRedirect", "RedirectKeepVerb", "BadRequest", "Unauthorized", "PaymentRequired", "Forbidden", "NotFound", "MethodNotAllowed", "NotAcceptable", "ProxyAuthenticationRequired", "RequestTimeout", "Conflict", "Gone", "LengthRequired", "PreconditionFailed", "RequestEntityTooLarge", "RequestUriTooLong", "UnsupportedMediaType", "RequestedRangeNotSatisfiable", "ExpectationFailed", "UpgradeRequired", "InternalServerError", "NotImplemented", "BadGateway", "ServiceUnavailable", "GatewayTimeout", "HttpVersionNotSupported"]
54
+ if status && !allowed_values.include?(status)
55
+ fail "invalid value for 'status', must be one of #{allowed_values}"
56
+ end
57
+ @status = status
58
+ end
59
+
60
+ end
61
+ end
@@ -0,0 +1,81 @@
1
+ module AsposeSlidesCloud
2
+ #
3
+ class Portion < BaseObject
4
+ attr_accessor :text, :font_color, :font_height, :self_uri, :alternate_links, :links
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'text' => :'Text',
11
+
12
+ #
13
+ :'font_color' => :'FontColor',
14
+
15
+ #
16
+ :'font_height' => :'FontHeight',
17
+
18
+ #
19
+ :'self_uri' => :'SelfUri',
20
+
21
+ #
22
+ :'alternate_links' => :'AlternateLinks',
23
+
24
+ #
25
+ :'links' => :'Links'
26
+
27
+ }
28
+ end
29
+
30
+ # attribute type
31
+ def self.swagger_types
32
+ {
33
+ :'text' => :'String',
34
+ :'font_color' => :'String',
35
+ :'font_height' => :'Float',
36
+ :'self_uri' => :'ResourceUri',
37
+ :'alternate_links' => :'Array<ResourceUri>',
38
+ :'links' => :'Array<ResourceUri>'
39
+
40
+ }
41
+ end
42
+
43
+ def initialize(attributes = {})
44
+ return if !attributes.is_a?(Hash) || attributes.empty?
45
+
46
+ # convert string to symbol for hash key
47
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
48
+
49
+
50
+ if attributes[:'Text']
51
+ self.text = attributes[:'Text']
52
+ end
53
+
54
+ if attributes[:'FontColor']
55
+ self.font_color = attributes[:'FontColor']
56
+ end
57
+
58
+ if attributes[:'FontHeight']
59
+ self.font_height = attributes[:'FontHeight']
60
+ end
61
+
62
+ if attributes[:'SelfUri']
63
+ self.self_uri = attributes[:'SelfUri']
64
+ end
65
+
66
+ if attributes[:'AlternateLinks']
67
+ if (value = attributes[:'AlternateLinks']).is_a?(Array)
68
+ self.alternate_links = value
69
+ end
70
+ end
71
+
72
+ if attributes[:'Links']
73
+ if (value = attributes[:'Links']).is_a?(Array)
74
+ self.links = value
75
+ end
76
+ end
77
+
78
+ end
79
+
80
+ end
81
+ end
@@ -0,0 +1,69 @@
1
+ module AsposeSlidesCloud
2
+ #
3
+ class PresentationStringReplaceResponse < BaseObject
4
+ attr_accessor :document, :matches, :status, :code
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'document' => :'Document',
11
+
12
+ #
13
+ :'matches' => :'Matches',
14
+
15
+ #
16
+ :'status' => :'Status',
17
+
18
+ #
19
+ :'code' => :'Code'
20
+
21
+ }
22
+ end
23
+
24
+ # attribute type
25
+ def self.swagger_types
26
+ {
27
+ :'document' => :'Document',
28
+ :'matches' => :'Integer',
29
+ :'status' => :'String',
30
+ :'code' => :'String'
31
+
32
+ }
33
+ end
34
+
35
+ def initialize(attributes = {})
36
+ return if !attributes.is_a?(Hash) || attributes.empty?
37
+
38
+ # convert string to symbol for hash key
39
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
40
+
41
+
42
+ if attributes[:'Document']
43
+ self.document = attributes[:'Document']
44
+ end
45
+
46
+ if attributes[:'Matches']
47
+ self.matches = attributes[:'Matches']
48
+ end
49
+
50
+ if attributes[:'Status']
51
+ self.status = attributes[:'Status']
52
+ end
53
+
54
+ if attributes[:'Code']
55
+ self.code = attributes[:'Code']
56
+ end
57
+
58
+ end
59
+
60
+ def status=(status)
61
+ allowed_values = ["Continue", "SwitchingProtocols", "OK", "Created", "Accepted", "NonAuthoritativeInformation", "NoContent", "ResetContent", "PartialContent", "MultipleChoices", "Ambiguous", "MovedPermanently", "Moved", "Found", "Redirect", "SeeOther", "RedirectMethod", "NotModified", "UseProxy", "Unused", "TemporaryRedirect", "RedirectKeepVerb", "BadRequest", "Unauthorized", "PaymentRequired", "Forbidden", "NotFound", "MethodNotAllowed", "NotAcceptable", "ProxyAuthenticationRequired", "RequestTimeout", "Conflict", "Gone", "LengthRequired", "PreconditionFailed", "RequestEntityTooLarge", "RequestUriTooLong", "UnsupportedMediaType", "RequestedRangeNotSatisfiable", "ExpectationFailed", "UpgradeRequired", "InternalServerError", "NotImplemented", "BadGateway", "ServiceUnavailable", "GatewayTimeout", "HttpVersionNotSupported"]
62
+ if status && !allowed_values.include?(status)
63
+ fail "invalid value for 'status', must be one of #{allowed_values}"
64
+ end
65
+ @status = status
66
+ end
67
+
68
+ end
69
+ end
@@ -0,0 +1,47 @@
1
+ module AsposeSlidesCloud
2
+ #
3
+ class PresentationToMerge < BaseObject
4
+ attr_accessor :path, :slides
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'path' => :'Path',
11
+
12
+ #
13
+ :'slides' => :'Slides'
14
+
15
+ }
16
+ end
17
+
18
+ # attribute type
19
+ def self.swagger_types
20
+ {
21
+ :'path' => :'String',
22
+ :'slides' => :'Array<Integer>'
23
+
24
+ }
25
+ end
26
+
27
+ def initialize(attributes = {})
28
+ return if !attributes.is_a?(Hash) || attributes.empty?
29
+
30
+ # convert string to symbol for hash key
31
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
32
+
33
+
34
+ if attributes[:'Path']
35
+ self.path = attributes[:'Path']
36
+ end
37
+
38
+ if attributes[:'Slides']
39
+ if (value = attributes[:'Slides']).is_a?(Array)
40
+ self.slides = value
41
+ end
42
+ end
43
+
44
+ end
45
+
46
+ end
47
+ end
@@ -0,0 +1,39 @@
1
+ module AsposeSlidesCloud
2
+ #
3
+ class PresentationsMergeRequest < BaseObject
4
+ attr_accessor :presentation_paths
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'presentation_paths' => :'PresentationPaths'
11
+
12
+ }
13
+ end
14
+
15
+ # attribute type
16
+ def self.swagger_types
17
+ {
18
+ :'presentation_paths' => :'Array<String>'
19
+
20
+ }
21
+ end
22
+
23
+ def initialize(attributes = {})
24
+ return if !attributes.is_a?(Hash) || attributes.empty?
25
+
26
+ # convert string to symbol for hash key
27
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
28
+
29
+
30
+ if attributes[:'PresentationPaths']
31
+ if (value = attributes[:'PresentationPaths']).is_a?(Array)
32
+ self.presentation_paths = value
33
+ end
34
+ end
35
+
36
+ end
37
+
38
+ end
39
+ end
@@ -0,0 +1,61 @@
1
+ module AsposeSlidesCloud
2
+ #
3
+ class ResourceUri < BaseObject
4
+ attr_accessor :href, :relation, :link_type, :title
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'href' => :'Href',
11
+
12
+ #
13
+ :'relation' => :'Relation',
14
+
15
+ #
16
+ :'link_type' => :'LinkType',
17
+
18
+ #
19
+ :'title' => :'Title'
20
+
21
+ }
22
+ end
23
+
24
+ # attribute type
25
+ def self.swagger_types
26
+ {
27
+ :'href' => :'String',
28
+ :'relation' => :'String',
29
+ :'link_type' => :'String',
30
+ :'title' => :'String'
31
+
32
+ }
33
+ end
34
+
35
+ def initialize(attributes = {})
36
+ return if !attributes.is_a?(Hash) || attributes.empty?
37
+
38
+ # convert string to symbol for hash key
39
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
40
+
41
+
42
+ if attributes[:'Href']
43
+ self.href = attributes[:'Href']
44
+ end
45
+
46
+ if attributes[:'Relation']
47
+ self.relation = attributes[:'Relation']
48
+ end
49
+
50
+ if attributes[:'LinkType']
51
+ self.link_type = attributes[:'LinkType']
52
+ end
53
+
54
+ if attributes[:'Title']
55
+ self.title = attributes[:'Title']
56
+ end
57
+
58
+ end
59
+
60
+ end
61
+ end
@@ -0,0 +1,37 @@
1
+ module AsposeSlidesCloud
2
+ #
3
+ class ResourceUriElement < BaseObject
4
+ attr_accessor :uri
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'uri' => :'Uri'
11
+
12
+ }
13
+ end
14
+
15
+ # attribute type
16
+ def self.swagger_types
17
+ {
18
+ :'uri' => :'ResourceUri'
19
+
20
+ }
21
+ end
22
+
23
+ def initialize(attributes = {})
24
+ return if !attributes.is_a?(Hash) || attributes.empty?
25
+
26
+ # convert string to symbol for hash key
27
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
28
+
29
+
30
+ if attributes[:'Uri']
31
+ self.uri = attributes[:'Uri']
32
+ end
33
+
34
+ end
35
+
36
+ end
37
+ end
@@ -0,0 +1,169 @@
1
+ module AsposeSlidesCloud
2
+ #
3
+ class Shape < BaseObject
4
+ attr_accessor :text, :paragraphs, :shape_type, :name, :width, :height, :alternative_text, :hidden, :x, :y, :z_order_position, :shapes, :fill_format, :line_format, :self_uri, :alternate_links, :links
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'text' => :'Text',
11
+
12
+ #
13
+ :'paragraphs' => :'Paragraphs',
14
+
15
+ #
16
+ :'shape_type' => :'ShapeType',
17
+
18
+ #
19
+ :'name' => :'Name',
20
+
21
+ #
22
+ :'width' => :'Width',
23
+
24
+ #
25
+ :'height' => :'Height',
26
+
27
+ #
28
+ :'alternative_text' => :'AlternativeText',
29
+
30
+ #
31
+ :'hidden' => :'Hidden',
32
+
33
+ #
34
+ :'x' => :'X',
35
+
36
+ #
37
+ :'y' => :'Y',
38
+
39
+ #
40
+ :'z_order_position' => :'ZOrderPosition',
41
+
42
+ #
43
+ :'shapes' => :'Shapes',
44
+
45
+ #
46
+ :'fill_format' => :'FillFormat',
47
+
48
+ #
49
+ :'line_format' => :'LineFormat',
50
+
51
+ #
52
+ :'self_uri' => :'SelfUri',
53
+
54
+ #
55
+ :'alternate_links' => :'AlternateLinks',
56
+
57
+ #
58
+ :'links' => :'Links'
59
+
60
+ }
61
+ end
62
+
63
+ # attribute type
64
+ def self.swagger_types
65
+ {
66
+ :'text' => :'String',
67
+ :'paragraphs' => :'ResourceUriElement',
68
+ :'shape_type' => :'String',
69
+ :'name' => :'String',
70
+ :'width' => :'Float',
71
+ :'height' => :'Float',
72
+ :'alternative_text' => :'String',
73
+ :'hidden' => :'BOOLEAN',
74
+ :'x' => :'Float',
75
+ :'y' => :'Float',
76
+ :'z_order_position' => :'Integer',
77
+ :'shapes' => :'ResourceUriElement',
78
+ :'fill_format' => :'FillFormat',
79
+ :'line_format' => :'LineFormat',
80
+ :'self_uri' => :'ResourceUri',
81
+ :'alternate_links' => :'Array<ResourceUri>',
82
+ :'links' => :'Array<ResourceUri>'
83
+
84
+ }
85
+ end
86
+
87
+ def initialize(attributes = {})
88
+ return if !attributes.is_a?(Hash) || attributes.empty?
89
+
90
+ # convert string to symbol for hash key
91
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
92
+
93
+
94
+ if attributes[:'Text']
95
+ self.text = attributes[:'Text']
96
+ end
97
+
98
+ if attributes[:'Paragraphs']
99
+ self.paragraphs = attributes[:'Paragraphs']
100
+ end
101
+
102
+ if attributes[:'ShapeType']
103
+ self.shape_type = attributes[:'ShapeType']
104
+ end
105
+
106
+ if attributes[:'Name']
107
+ self.name = attributes[:'Name']
108
+ end
109
+
110
+ if attributes[:'Width']
111
+ self.width = attributes[:'Width']
112
+ end
113
+
114
+ if attributes[:'Height']
115
+ self.height = attributes[:'Height']
116
+ end
117
+
118
+ if attributes[:'AlternativeText']
119
+ self.alternative_text = attributes[:'AlternativeText']
120
+ end
121
+
122
+ if attributes[:'Hidden']
123
+ self.hidden = attributes[:'Hidden']
124
+ end
125
+
126
+ if attributes[:'X']
127
+ self.x = attributes[:'X']
128
+ end
129
+
130
+ if attributes[:'Y']
131
+ self.y = attributes[:'Y']
132
+ end
133
+
134
+ if attributes[:'ZOrderPosition']
135
+ self.z_order_position = attributes[:'ZOrderPosition']
136
+ end
137
+
138
+ if attributes[:'Shapes']
139
+ self.shapes = attributes[:'Shapes']
140
+ end
141
+
142
+ if attributes[:'FillFormat']
143
+ self.fill_format = attributes[:'FillFormat']
144
+ end
145
+
146
+ if attributes[:'LineFormat']
147
+ self.line_format = attributes[:'LineFormat']
148
+ end
149
+
150
+ if attributes[:'SelfUri']
151
+ self.self_uri = attributes[:'SelfUri']
152
+ end
153
+
154
+ if attributes[:'AlternateLinks']
155
+ if (value = attributes[:'AlternateLinks']).is_a?(Array)
156
+ self.alternate_links = value
157
+ end
158
+ end
159
+
160
+ if attributes[:'Links']
161
+ if (value = attributes[:'Links']).is_a?(Array)
162
+ self.links = value
163
+ end
164
+ end
165
+
166
+ end
167
+
168
+ end
169
+ end