aspose_words_cloud 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +22 -0
  3. data/README.md +48 -0
  4. data/aspose_words_cloud.gemspec +26 -0
  5. data/lib/aspose_words_cloud/api/words_api.rb +4414 -0
  6. data/lib/aspose_words_cloud/api_client.rb +335 -0
  7. data/lib/aspose_words_cloud/api_error.rb +24 -0
  8. data/lib/aspose_words_cloud/configuration.rb +166 -0
  9. data/lib/aspose_words_cloud/models/base_object.rb +86 -0
  10. data/lib/aspose_words_cloud/models/base_response.rb +53 -0
  11. data/lib/aspose_words_cloud/models/bookmark.rb +53 -0
  12. data/lib/aspose_words_cloud/models/bookmark_data.rb +45 -0
  13. data/lib/aspose_words_cloud/models/bookmark_response.rb +61 -0
  14. data/lib/aspose_words_cloud/models/bookmarks.rb +47 -0
  15. data/lib/aspose_words_cloud/models/bookmarks_response.rb +61 -0
  16. data/lib/aspose_words_cloud/models/border.rb +77 -0
  17. data/lib/aspose_words_cloud/models/color.rb +61 -0
  18. data/lib/aspose_words_cloud/models/comment.rb +93 -0
  19. data/lib/aspose_words_cloud/models/comment_response.rb +61 -0
  20. data/lib/aspose_words_cloud/models/comments_collection.rb +47 -0
  21. data/lib/aspose_words_cloud/models/comments_response.rb +61 -0
  22. data/lib/aspose_words_cloud/models/document.rb +87 -0
  23. data/lib/aspose_words_cloud/models/document_entry.rb +45 -0
  24. data/lib/aspose_words_cloud/models/document_entry_list.rb +39 -0
  25. data/lib/aspose_words_cloud/models/document_position.rb +45 -0
  26. data/lib/aspose_words_cloud/models/document_properties.rb +47 -0
  27. data/lib/aspose_words_cloud/models/document_properties_response.rb +61 -0
  28. data/lib/aspose_words_cloud/models/document_property.rb +61 -0
  29. data/lib/aspose_words_cloud/models/document_property_response.rb +61 -0
  30. data/lib/aspose_words_cloud/models/document_response.rb +61 -0
  31. data/lib/aspose_words_cloud/models/document_stat_data.rb +63 -0
  32. data/lib/aspose_words_cloud/models/drawing_object.rb +79 -0
  33. data/lib/aspose_words_cloud/models/drawing_object_response.rb +61 -0
  34. data/lib/aspose_words_cloud/models/drawing_objects.rb +47 -0
  35. data/lib/aspose_words_cloud/models/drawing_objects_response.rb +61 -0
  36. data/lib/aspose_words_cloud/models/field.rb +61 -0
  37. data/lib/aspose_words_cloud/models/field_names.rb +47 -0
  38. data/lib/aspose_words_cloud/models/field_names_response.rb +61 -0
  39. data/lib/aspose_words_cloud/models/field_response.rb +61 -0
  40. data/lib/aspose_words_cloud/models/font.rb +381 -0
  41. data/lib/aspose_words_cloud/models/font_response.rb +61 -0
  42. data/lib/aspose_words_cloud/models/form_field.rb +117 -0
  43. data/lib/aspose_words_cloud/models/form_field_response.rb +61 -0
  44. data/lib/aspose_words_cloud/models/hyperlink.rb +53 -0
  45. data/lib/aspose_words_cloud/models/hyperlink_response.rb +61 -0
  46. data/lib/aspose_words_cloud/models/hyperlinks.rb +47 -0
  47. data/lib/aspose_words_cloud/models/hyperlinks_response.rb +61 -0
  48. data/lib/aspose_words_cloud/models/link.rb +61 -0
  49. data/lib/aspose_words_cloud/models/link_element.rb +37 -0
  50. data/lib/aspose_words_cloud/models/load_web_document_data.rb +45 -0
  51. data/lib/aspose_words_cloud/models/metafile_rendering_options_data.rb +53 -0
  52. data/lib/aspose_words_cloud/models/modification_operation_result.rb +45 -0
  53. data/lib/aspose_words_cloud/models/node_link.rb +45 -0
  54. data/lib/aspose_words_cloud/models/page_number.rb +61 -0
  55. data/lib/aspose_words_cloud/models/page_setup.rb +333 -0
  56. data/lib/aspose_words_cloud/models/page_stat_data.rb +53 -0
  57. data/lib/aspose_words_cloud/models/paragraph.rb +55 -0
  58. data/lib/aspose_words_cloud/models/paragraph_link.rb +45 -0
  59. data/lib/aspose_words_cloud/models/paragraph_link_collection.rb +47 -0
  60. data/lib/aspose_words_cloud/models/paragraph_link_collection_response.rb +61 -0
  61. data/lib/aspose_words_cloud/models/paragraph_response.rb +61 -0
  62. data/lib/aspose_words_cloud/models/protection_data.rb +37 -0
  63. data/lib/aspose_words_cloud/models/protection_data_response.rb +69 -0
  64. data/lib/aspose_words_cloud/models/protection_request.rb +53 -0
  65. data/lib/aspose_words_cloud/models/rectangle.rb +61 -0
  66. data/lib/aspose_words_cloud/models/replace_text_request.rb +61 -0
  67. data/lib/aspose_words_cloud/models/replace_text_response.rb +69 -0
  68. data/lib/aspose_words_cloud/models/response_message.rb +45 -0
  69. data/lib/aspose_words_cloud/models/revisions_modification_response.rb +61 -0
  70. data/lib/aspose_words_cloud/models/run.rb +53 -0
  71. data/lib/aspose_words_cloud/models/run_response.rb +61 -0
  72. data/lib/aspose_words_cloud/models/save_options_data.rb +69 -0
  73. data/lib/aspose_words_cloud/models/save_response.rb +61 -0
  74. data/lib/aspose_words_cloud/models/save_result.rb +55 -0
  75. data/lib/aspose_words_cloud/models/search_response.rb +69 -0
  76. data/lib/aspose_words_cloud/models/search_result.rb +45 -0
  77. data/lib/aspose_words_cloud/models/search_results_collection.rb +47 -0
  78. data/lib/aspose_words_cloud/models/section.rb +53 -0
  79. data/lib/aspose_words_cloud/models/section_link.rb +37 -0
  80. data/lib/aspose_words_cloud/models/section_link_collection.rb +47 -0
  81. data/lib/aspose_words_cloud/models/section_link_collection_response.rb +61 -0
  82. data/lib/aspose_words_cloud/models/section_page_setup_response.rb +61 -0
  83. data/lib/aspose_words_cloud/models/section_response.rb +61 -0
  84. data/lib/aspose_words_cloud/models/split_document_response.rb +61 -0
  85. data/lib/aspose_words_cloud/models/split_document_result.rb +55 -0
  86. data/lib/aspose_words_cloud/models/stat_data_response.rb +69 -0
  87. data/lib/aspose_words_cloud/models/story_child_nodes.rb +39 -0
  88. data/lib/aspose_words_cloud/models/text_item.rb +45 -0
  89. data/lib/aspose_words_cloud/models/text_items.rb +47 -0
  90. data/lib/aspose_words_cloud/models/text_items_response.rb +61 -0
  91. data/lib/aspose_words_cloud/models/tiff_save_options_data.rb +189 -0
  92. data/lib/aspose_words_cloud/models/watermark_text.rb +45 -0
  93. data/lib/aspose_words_cloud/version.rb +3 -0
  94. data/lib/aspose_words_cloud.rb +114 -0
  95. data/test/data/AppendWordDocumentsExample-TestFile-Destination.doc +0 -0
  96. data/test/data/AppendWordDocumentsExample-TestFile-Source.doc +0 -0
  97. data/test/data/Customers.txt +6 -0
  98. data/test/data/FormFilled.docx +0 -0
  99. data/test/data/SampleAppendDoc.docx +0 -0
  100. data/test/data/SampleAppendDoc2.docx +0 -0
  101. data/test/data/SampleBlankWatermarkDocument.docx +0 -0
  102. data/test/data/SampleBlankWordDocument.docx +0 -0
  103. data/test/data/SampleExecuteTemplate.doc +0 -0
  104. data/test/data/SampleExecuteTemplate.docx +0 -0
  105. data/test/data/SampleExecuteTemplateData.txt +49 -0
  106. data/test/data/SampleHeaderFooterWordDocument.docx +0 -0
  107. data/test/data/SampleInvoiceTemplate.doc +0 -0
  108. data/test/data/SampleInvoiceTemplateData.txt +24 -0
  109. data/test/data/SampleMailMergeTemplate.docx +0 -0
  110. data/test/data/SampleMailMergeTemplateData.txt +7 -0
  111. data/test/data/SampleMailMergeTemplateImage.doc +0 -0
  112. data/test/data/SampleMailMergeTemplateImageData.txt +12 -0
  113. data/test/data/SampleOlePdfData.docx +0 -0
  114. data/test/data/SampleProtectedBlankWordDocument.docx +0 -0
  115. data/test/data/SampleWordDocument.docx +0 -0
  116. data/test/data/Sample_EmbeddedOLE.docx +0 -0
  117. data/test/data/WordFormatConverterExampleTest.doc +0 -0
  118. data/test/data/aspose-cloud.png +0 -0
  119. data/test/data/header-logo.png +0 -0
  120. data/test/words_tests.rb +773 -0
  121. metadata +256 -0
@@ -0,0 +1,87 @@
1
+ module AsposeWordsCloud
2
+ #
3
+ class Document < BaseObject
4
+ attr_accessor :links, :file_name, :source_format, :is_encrypted, :is_signed, :document_properties
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'links' => :'Links',
11
+
12
+ #
13
+ :'file_name' => :'FileName',
14
+
15
+ #
16
+ :'source_format' => :'SourceFormat',
17
+
18
+ #
19
+ :'is_encrypted' => :'IsEncrypted',
20
+
21
+ #
22
+ :'is_signed' => :'IsSigned',
23
+
24
+ #
25
+ :'document_properties' => :'DocumentProperties'
26
+
27
+ }
28
+ end
29
+
30
+ # attribute type
31
+ def self.swagger_types
32
+ {
33
+ :'links' => :'Array<Link>',
34
+ :'file_name' => :'String',
35
+ :'source_format' => :'String',
36
+ :'is_encrypted' => :'BOOLEAN',
37
+ :'is_signed' => :'BOOLEAN',
38
+ :'document_properties' => :'DocumentProperties'
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[:'Links']
51
+ if (value = attributes[:'Links']).is_a?(Array)
52
+ self.links = value
53
+ end
54
+ end
55
+
56
+ if attributes[:'FileName']
57
+ self.file_name = attributes[:'FileName']
58
+ end
59
+
60
+ if attributes[:'SourceFormat']
61
+ self.source_format = attributes[:'SourceFormat']
62
+ end
63
+
64
+ if attributes[:'IsEncrypted']
65
+ self.is_encrypted = attributes[:'IsEncrypted']
66
+ end
67
+
68
+ if attributes[:'IsSigned']
69
+ self.is_signed = attributes[:'IsSigned']
70
+ end
71
+
72
+ if attributes[:'DocumentProperties']
73
+ self.document_properties = attributes[:'DocumentProperties']
74
+ end
75
+
76
+ end
77
+
78
+ def source_format=(source_format)
79
+ allowed_values = ["Unknown", "Doc", "Dot", "DocPreWord97", "Docx", "Docm", "Dotx", "Dotm", "FlatOpc", "Rtf", "WordML", "Html", "Mhtml", "Epub", "Text", "Odt", "Ott", "Pdf", "Xps", "Swf", "Tiff", "Svg"]
80
+ if source_format && source_format.to_i >= allowed_values.size
81
+ fail "invalid value for 'source_format', must be one of #{allowed_values}"
82
+ end
83
+ @source_format = allowed_values[source_format.to_i]
84
+ end
85
+
86
+ end
87
+ end
@@ -0,0 +1,45 @@
1
+ module AsposeWordsCloud
2
+ #
3
+ class DocumentEntry < BaseObject
4
+ attr_accessor :href, :import_format_mode
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
+ :'import_format_mode' => :'ImportFormatMode'
14
+
15
+ }
16
+ end
17
+
18
+ # attribute type
19
+ def self.swagger_types
20
+ {
21
+ :'href' => :'String',
22
+ :'import_format_mode' => :'String'
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[:'Href']
35
+ self.href = attributes[:'Href']
36
+ end
37
+
38
+ if attributes[:'ImportFormatMode']
39
+ self.import_format_mode = attributes[:'ImportFormatMode']
40
+ end
41
+
42
+ end
43
+
44
+ end
45
+ end
@@ -0,0 +1,39 @@
1
+ module AsposeWordsCloud
2
+ #
3
+ class DocumentEntryList < BaseObject
4
+ attr_accessor :document_entries
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'document_entries' => :'DocumentEntries'
11
+
12
+ }
13
+ end
14
+
15
+ # attribute type
16
+ def self.swagger_types
17
+ {
18
+ :'document_entries' => :'Array<DocumentEntry>'
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[:'DocumentEntries']
31
+ if (value = attributes[:'DocumentEntries']).is_a?(Array)
32
+ self.document_entries = value
33
+ end
34
+ end
35
+
36
+ end
37
+
38
+ end
39
+ end
@@ -0,0 +1,45 @@
1
+ module AsposeWordsCloud
2
+ #
3
+ class DocumentPosition < BaseObject
4
+ attr_accessor :node, :offset
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'node' => :'Node',
11
+
12
+ #
13
+ :'offset' => :'Offset'
14
+
15
+ }
16
+ end
17
+
18
+ # attribute type
19
+ def self.swagger_types
20
+ {
21
+ :'node' => :'NodeLink',
22
+ :'offset' => :'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[:'Node']
35
+ self.node = attributes[:'Node']
36
+ end
37
+
38
+ if attributes[:'Offset']
39
+ self.offset = attributes[:'Offset']
40
+ end
41
+
42
+ end
43
+
44
+ end
45
+ end
@@ -0,0 +1,47 @@
1
+ module AsposeWordsCloud
2
+ #
3
+ class DocumentProperties < BaseObject
4
+ attr_accessor :list, :link
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
+ :'link' => :'link'
14
+
15
+ }
16
+ end
17
+
18
+ # attribute type
19
+ def self.swagger_types
20
+ {
21
+ :'list' => :'Array<DocumentProperty>',
22
+ :'link' => :'Link'
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[:'List']
35
+ if (value = attributes[:'List']).is_a?(Array)
36
+ self.list = value
37
+ end
38
+ end
39
+
40
+ if attributes[:'link']
41
+ self.link = attributes[:'link']
42
+ end
43
+
44
+ end
45
+
46
+ end
47
+ end
@@ -0,0 +1,61 @@
1
+ module AsposeWordsCloud
2
+ #
3
+ class DocumentPropertiesResponse < BaseObject
4
+ attr_accessor :document_properties, :status, :code
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'document_properties' => :'DocumentProperties',
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
+ :'document_properties' => :'DocumentProperties',
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[:'DocumentProperties']
39
+ self.document_properties = attributes[:'DocumentProperties']
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,61 @@
1
+ module AsposeWordsCloud
2
+ #
3
+ class DocumentProperty < BaseObject
4
+ attr_accessor :name, :value, :built_in, :link
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'name' => :'Name',
11
+
12
+ #
13
+ :'value' => :'Value',
14
+
15
+ #
16
+ :'built_in' => :'BuiltIn',
17
+
18
+ #
19
+ :'link' => :'link'
20
+
21
+ }
22
+ end
23
+
24
+ # attribute type
25
+ def self.swagger_types
26
+ {
27
+ :'name' => :'String',
28
+ :'value' => :'String',
29
+ :'built_in' => :'BOOLEAN',
30
+ :'link' => :'Link'
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[:'Name']
43
+ self.name = attributes[:'Name']
44
+ end
45
+
46
+ if attributes[:'Value']
47
+ self.value = attributes[:'Value']
48
+ end
49
+
50
+ if attributes[:'BuiltIn']
51
+ self.built_in = attributes[:'BuiltIn']
52
+ end
53
+
54
+ if attributes[:'link']
55
+ self.link = attributes[:'link']
56
+ end
57
+
58
+ end
59
+
60
+ end
61
+ end
@@ -0,0 +1,61 @@
1
+ module AsposeWordsCloud
2
+ #
3
+ class DocumentPropertyResponse < BaseObject
4
+ attr_accessor :document_property, :status, :code
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'document_property' => :'DocumentProperty',
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
+ :'document_property' => :'DocumentProperty',
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[:'DocumentProperty']
39
+ self.document_property = attributes[:'DocumentProperty']
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,61 @@
1
+ module AsposeWordsCloud
2
+ #
3
+ class DocumentResponse < BaseObject
4
+ attr_accessor :document, :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
+ :'status' => :'Status',
14
+
15
+ #
16
+ :'code' => :'Code'
17
+
18
+ }
19
+ end
20
+
21
+ # attribute type
22
+ def self.swagger_types
23
+ {
24
+ :'document' => :'Document',
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[:'Document']
39
+ self.document = attributes[:'Document']
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,63 @@
1
+ module AsposeWordsCloud
2
+ #
3
+ class DocumentStatData < BaseObject
4
+ attr_accessor :word_count, :paragraph_count, :page_count, :page_stat_data
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'word_count' => :'WordCount',
11
+
12
+ #
13
+ :'paragraph_count' => :'ParagraphCount',
14
+
15
+ #
16
+ :'page_count' => :'PageCount',
17
+
18
+ #
19
+ :'page_stat_data' => :'PageStatData'
20
+
21
+ }
22
+ end
23
+
24
+ # attribute type
25
+ def self.swagger_types
26
+ {
27
+ :'word_count' => :'Integer',
28
+ :'paragraph_count' => :'Integer',
29
+ :'page_count' => :'Integer',
30
+ :'page_stat_data' => :'Array<PageStatData>'
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[:'WordCount']
43
+ self.word_count = attributes[:'WordCount']
44
+ end
45
+
46
+ if attributes[:'ParagraphCount']
47
+ self.paragraph_count = attributes[:'ParagraphCount']
48
+ end
49
+
50
+ if attributes[:'PageCount']
51
+ self.page_count = attributes[:'PageCount']
52
+ end
53
+
54
+ if attributes[:'PageStatData']
55
+ if (value = attributes[:'PageStatData']).is_a?(Array)
56
+ self.page_stat_data = value
57
+ end
58
+ end
59
+
60
+ end
61
+
62
+ end
63
+ end
@@ -0,0 +1,79 @@
1
+ module AsposeWordsCloud
2
+ #
3
+ class DrawingObject < BaseObject
4
+ attr_accessor :render_links, :width, :height, :ole_data_link, :image_data_link, :link
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'render_links' => :'RenderLinks',
11
+
12
+ #
13
+ :'width' => :'Width',
14
+
15
+ #
16
+ :'height' => :'Height',
17
+
18
+ #
19
+ :'ole_data_link' => :'OleDataLink',
20
+
21
+ #
22
+ :'image_data_link' => :'ImageDataLink',
23
+
24
+ #
25
+ :'link' => :'link'
26
+
27
+ }
28
+ end
29
+
30
+ # attribute type
31
+ def self.swagger_types
32
+ {
33
+ :'render_links' => :'Array<Link>',
34
+ :'width' => :'Integer',
35
+ :'height' => :'Integer',
36
+ :'ole_data_link' => :'Link',
37
+ :'image_data_link' => :'Link',
38
+ :'link' => :'Link'
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[:'RenderLinks']
51
+ if (value = attributes[:'RenderLinks']).is_a?(Array)
52
+ self.render_links = value
53
+ end
54
+ end
55
+
56
+ if attributes[:'Width']
57
+ self.width = attributes[:'Width']
58
+ end
59
+
60
+ if attributes[:'Height']
61
+ self.height = attributes[:'Height']
62
+ end
63
+
64
+ if attributes[:'OleDataLink']
65
+ self.ole_data_link = attributes[:'OleDataLink']
66
+ end
67
+
68
+ if attributes[:'ImageDataLink']
69
+ self.image_data_link = attributes[:'ImageDataLink']
70
+ end
71
+
72
+ if attributes[:'link']
73
+ self.link = attributes[:'link']
74
+ end
75
+
76
+ end
77
+
78
+ end
79
+ end