aspose_slides_cloud 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,73 @@
1
+ module AsposeSlidesCloud
2
+ #
3
+ class Image < BaseObject
4
+ attr_accessor :width, :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
+ :'width' => :'Width',
11
+
12
+ #
13
+ :'height' => :'Height',
14
+
15
+ #
16
+ :'self_uri' => :'SelfUri',
17
+
18
+ #
19
+ :'alternate_links' => :'AlternateLinks',
20
+
21
+ #
22
+ :'links' => :'Links'
23
+
24
+ }
25
+ end
26
+
27
+ # attribute type
28
+ def self.swagger_types
29
+ {
30
+ :'width' => :'Integer',
31
+ :'height' => :'Integer',
32
+ :'self_uri' => :'ResourceUri',
33
+ :'alternate_links' => :'Array<ResourceUri>',
34
+ :'links' => :'Array<ResourceUri>'
35
+
36
+ }
37
+ end
38
+
39
+ def initialize(attributes = {})
40
+ return if !attributes.is_a?(Hash) || attributes.empty?
41
+
42
+ # convert string to symbol for hash key
43
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
44
+
45
+
46
+ if attributes[:'Width']
47
+ self.width = attributes[:'Width']
48
+ end
49
+
50
+ if attributes[:'Height']
51
+ self.height = attributes[:'Height']
52
+ end
53
+
54
+ if attributes[:'SelfUri']
55
+ self.self_uri = attributes[:'SelfUri']
56
+ end
57
+
58
+ if attributes[:'AlternateLinks']
59
+ if (value = attributes[:'AlternateLinks']).is_a?(Array)
60
+ self.alternate_links = value
61
+ end
62
+ end
63
+
64
+ if attributes[:'Links']
65
+ if (value = attributes[:'Links']).is_a?(Array)
66
+ self.links = value
67
+ end
68
+ end
69
+
70
+ end
71
+
72
+ end
73
+ end
@@ -0,0 +1,67 @@
1
+ module AsposeSlidesCloud
2
+ #
3
+ class Images < BaseObject
4
+ attr_accessor :list, :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
+ :'list' => :'List',
11
+
12
+ #
13
+ :'self_uri' => :'SelfUri',
14
+
15
+ #
16
+ :'alternate_links' => :'AlternateLinks',
17
+
18
+ #
19
+ :'links' => :'Links'
20
+
21
+ }
22
+ end
23
+
24
+ # attribute type
25
+ def self.swagger_types
26
+ {
27
+ :'list' => :'Array<Image>',
28
+ :'self_uri' => :'ResourceUri',
29
+ :'alternate_links' => :'Array<ResourceUri>',
30
+ :'links' => :'Array<ResourceUri>'
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[:'List']
43
+ if (value = attributes[:'List']).is_a?(Array)
44
+ self.list = value
45
+ end
46
+ end
47
+
48
+ if attributes[:'SelfUri']
49
+ self.self_uri = attributes[:'SelfUri']
50
+ end
51
+
52
+ if attributes[:'AlternateLinks']
53
+ if (value = attributes[:'AlternateLinks']).is_a?(Array)
54
+ self.alternate_links = value
55
+ end
56
+ end
57
+
58
+ if attributes[:'Links']
59
+ if (value = attributes[:'Links']).is_a?(Array)
60
+ self.links = value
61
+ end
62
+ end
63
+
64
+ end
65
+
66
+ end
67
+ end
@@ -0,0 +1,61 @@
1
+ module AsposeSlidesCloud
2
+ #
3
+ class ImagesResponse < BaseObject
4
+ attr_accessor :images, :status, :code
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'images' => :'Images',
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
+ :'images' => :'Images',
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[:'Images']
39
+ self.images = attributes[:'Images']
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,117 @@
1
+ module AsposeSlidesCloud
2
+ #
3
+ class LineFormat < BaseObject
4
+ attr_accessor :alignment, :cap_style, :dash_style, :join_style, :style, :begin_arrow_head, :end_arrow_head, :custom_dash_pattern, :fill_format, :miter_limit, :width
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'alignment' => :'Alignment',
11
+
12
+ #
13
+ :'cap_style' => :'CapStyle',
14
+
15
+ #
16
+ :'dash_style' => :'DashStyle',
17
+
18
+ #
19
+ :'join_style' => :'JoinStyle',
20
+
21
+ #
22
+ :'style' => :'Style',
23
+
24
+ #
25
+ :'begin_arrow_head' => :'BeginArrowHead',
26
+
27
+ #
28
+ :'end_arrow_head' => :'EndArrowHead',
29
+
30
+ #
31
+ :'custom_dash_pattern' => :'CustomDashPattern',
32
+
33
+ #
34
+ :'fill_format' => :'FillFormat',
35
+
36
+ #
37
+ :'miter_limit' => :'MiterLimit',
38
+
39
+ #
40
+ :'width' => :'Width'
41
+
42
+ }
43
+ end
44
+
45
+ # attribute type
46
+ def self.swagger_types
47
+ {
48
+ :'alignment' => :'String',
49
+ :'cap_style' => :'String',
50
+ :'dash_style' => :'String',
51
+ :'join_style' => :'String',
52
+ :'style' => :'String',
53
+ :'begin_arrow_head' => :'ArrowHeadProperties',
54
+ :'end_arrow_head' => :'ArrowHeadProperties',
55
+ :'custom_dash_pattern' => :'CustomDashPattern',
56
+ :'fill_format' => :'FillFormat',
57
+ :'miter_limit' => :'Float',
58
+ :'width' => :'Float'
59
+
60
+ }
61
+ end
62
+
63
+ def initialize(attributes = {})
64
+ return if !attributes.is_a?(Hash) || attributes.empty?
65
+
66
+ # convert string to symbol for hash key
67
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
68
+
69
+
70
+ if attributes[:'Alignment']
71
+ self.alignment = attributes[:'Alignment']
72
+ end
73
+
74
+ if attributes[:'CapStyle']
75
+ self.cap_style = attributes[:'CapStyle']
76
+ end
77
+
78
+ if attributes[:'DashStyle']
79
+ self.dash_style = attributes[:'DashStyle']
80
+ end
81
+
82
+ if attributes[:'JoinStyle']
83
+ self.join_style = attributes[:'JoinStyle']
84
+ end
85
+
86
+ if attributes[:'Style']
87
+ self.style = attributes[:'Style']
88
+ end
89
+
90
+ if attributes[:'BeginArrowHead']
91
+ self.begin_arrow_head = attributes[:'BeginArrowHead']
92
+ end
93
+
94
+ if attributes[:'EndArrowHead']
95
+ self.end_arrow_head = attributes[:'EndArrowHead']
96
+ end
97
+
98
+ if attributes[:'CustomDashPattern']
99
+ self.custom_dash_pattern = attributes[:'CustomDashPattern']
100
+ end
101
+
102
+ if attributes[:'FillFormat']
103
+ self.fill_format = attributes[:'FillFormat']
104
+ end
105
+
106
+ if attributes[:'MiterLimit']
107
+ self.miter_limit = attributes[:'MiterLimit']
108
+ end
109
+
110
+ if attributes[:'Width']
111
+ self.width = attributes[:'Width']
112
+ end
113
+
114
+ end
115
+
116
+ end
117
+ end
@@ -0,0 +1,61 @@
1
+ module AsposeSlidesCloud
2
+ #
3
+ class NewShapeResponse < BaseObject
4
+ attr_accessor :shape, :status, :code
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'shape' => :'Shape',
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
+ :'shape' => :'Shape',
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[:'Shape']
39
+ self.shape = attributes[:'Shape']
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,39 @@
1
+ module AsposeSlidesCloud
2
+ #
3
+ class OrderedMergeRequest < BaseObject
4
+ attr_accessor :presentations
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'presentations' => :'Presentations'
11
+
12
+ }
13
+ end
14
+
15
+ # attribute type
16
+ def self.swagger_types
17
+ {
18
+ :'presentations' => :'Array<PresentationToMerge>'
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[:'Presentations']
31
+ if (value = attributes[:'Presentations']).is_a?(Array)
32
+ self.presentations = value
33
+ end
34
+ end
35
+
36
+ end
37
+
38
+ end
39
+ end
@@ -0,0 +1,67 @@
1
+ module AsposeSlidesCloud
2
+ #
3
+ class Paragraph < BaseObject
4
+ attr_accessor :alternate_links, :links, :self_uri, :portion_list
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'alternate_links' => :'AlternateLinks',
11
+
12
+ #
13
+ :'links' => :'Links',
14
+
15
+ #
16
+ :'self_uri' => :'SelfUri',
17
+
18
+ #
19
+ :'portion_list' => :'PortionList'
20
+
21
+ }
22
+ end
23
+
24
+ # attribute type
25
+ def self.swagger_types
26
+ {
27
+ :'alternate_links' => :'Array<ResourceUri>',
28
+ :'links' => :'Array<ResourceUri>',
29
+ :'self_uri' => :'ResourceUri',
30
+ :'portion_list' => :'Array<ResourceUriElement>'
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[:'AlternateLinks']
43
+ if (value = attributes[:'AlternateLinks']).is_a?(Array)
44
+ self.alternate_links = value
45
+ end
46
+ end
47
+
48
+ if attributes[:'Links']
49
+ if (value = attributes[:'Links']).is_a?(Array)
50
+ self.links = value
51
+ end
52
+ end
53
+
54
+ if attributes[:'SelfUri']
55
+ self.self_uri = attributes[:'SelfUri']
56
+ end
57
+
58
+ if attributes[:'PortionList']
59
+ if (value = attributes[:'PortionList']).is_a?(Array)
60
+ self.portion_list = value
61
+ end
62
+ end
63
+
64
+ end
65
+
66
+ end
67
+ end