aspose_words_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 (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,333 @@
1
+ module AsposeWordsCloud
2
+ #
3
+ class PageSetup < BaseObject
4
+ attr_accessor :bidi, :border_always_in_front, :border_applies_to, :border_distance_from, :bottom_margin, :different_first_page_header_footer, :first_page_tray, :footer_distance, :gutter, :header_distance, :left_margin, :line_number_count_by, :line_number_distance_from_text, :line_number_restart_mode, :line_starting_number, :orientation, :other_pages_tray, :page_height, :page_number_style, :page_starting_number, :page_width, :paper_size, :restart_page_numbering, :right_margin, :rtl_gutter, :section_start, :suppress_endnotes, :top_margin, :vertical_alignment, :link
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'bidi' => :'Bidi',
11
+
12
+ #
13
+ :'border_always_in_front' => :'BorderAlwaysInFront',
14
+
15
+ #
16
+ :'border_applies_to' => :'BorderAppliesTo',
17
+
18
+ #
19
+ :'border_distance_from' => :'BorderDistanceFrom',
20
+
21
+ #
22
+ :'bottom_margin' => :'BottomMargin',
23
+
24
+ #
25
+ :'different_first_page_header_footer' => :'DifferentFirstPageHeaderFooter',
26
+
27
+ #
28
+ :'first_page_tray' => :'FirstPageTray',
29
+
30
+ #
31
+ :'footer_distance' => :'FooterDistance',
32
+
33
+ #
34
+ :'gutter' => :'Gutter',
35
+
36
+ #
37
+ :'header_distance' => :'HeaderDistance',
38
+
39
+ #
40
+ :'left_margin' => :'LeftMargin',
41
+
42
+ #
43
+ :'line_number_count_by' => :'LineNumberCountBy',
44
+
45
+ #
46
+ :'line_number_distance_from_text' => :'LineNumberDistanceFromText',
47
+
48
+ #
49
+ :'line_number_restart_mode' => :'LineNumberRestartMode',
50
+
51
+ #
52
+ :'line_starting_number' => :'LineStartingNumber',
53
+
54
+ #
55
+ :'orientation' => :'Orientation',
56
+
57
+ #
58
+ :'other_pages_tray' => :'OtherPagesTray',
59
+
60
+ #
61
+ :'page_height' => :'PageHeight',
62
+
63
+ #
64
+ :'page_number_style' => :'PageNumberStyle',
65
+
66
+ #
67
+ :'page_starting_number' => :'PageStartingNumber',
68
+
69
+ #
70
+ :'page_width' => :'PageWidth',
71
+
72
+ #
73
+ :'paper_size' => :'PaperSize',
74
+
75
+ #
76
+ :'restart_page_numbering' => :'RestartPageNumbering',
77
+
78
+ #
79
+ :'right_margin' => :'RightMargin',
80
+
81
+ #
82
+ :'rtl_gutter' => :'RtlGutter',
83
+
84
+ #
85
+ :'section_start' => :'SectionStart',
86
+
87
+ #
88
+ :'suppress_endnotes' => :'SuppressEndnotes',
89
+
90
+ #
91
+ :'top_margin' => :'TopMargin',
92
+
93
+ #
94
+ :'vertical_alignment' => :'VerticalAlignment',
95
+
96
+ #
97
+ :'link' => :'link'
98
+
99
+ }
100
+ end
101
+
102
+ # attribute type
103
+ def self.swagger_types
104
+ {
105
+ :'bidi' => :'BOOLEAN',
106
+ :'border_always_in_front' => :'BOOLEAN',
107
+ :'border_applies_to' => :'String',
108
+ :'border_distance_from' => :'String',
109
+ :'bottom_margin' => :'Float',
110
+ :'different_first_page_header_footer' => :'BOOLEAN',
111
+ :'first_page_tray' => :'Integer',
112
+ :'footer_distance' => :'Float',
113
+ :'gutter' => :'Float',
114
+ :'header_distance' => :'Float',
115
+ :'left_margin' => :'Float',
116
+ :'line_number_count_by' => :'Integer',
117
+ :'line_number_distance_from_text' => :'Float',
118
+ :'line_number_restart_mode' => :'String',
119
+ :'line_starting_number' => :'Integer',
120
+ :'orientation' => :'String',
121
+ :'other_pages_tray' => :'Integer',
122
+ :'page_height' => :'Float',
123
+ :'page_number_style' => :'String',
124
+ :'page_starting_number' => :'Integer',
125
+ :'page_width' => :'Float',
126
+ :'paper_size' => :'String',
127
+ :'restart_page_numbering' => :'BOOLEAN',
128
+ :'right_margin' => :'Float',
129
+ :'rtl_gutter' => :'BOOLEAN',
130
+ :'section_start' => :'String',
131
+ :'suppress_endnotes' => :'BOOLEAN',
132
+ :'top_margin' => :'Float',
133
+ :'vertical_alignment' => :'String',
134
+ :'link' => :'Link'
135
+
136
+ }
137
+ end
138
+
139
+ def initialize(attributes = {})
140
+ return if !attributes.is_a?(Hash) || attributes.empty?
141
+
142
+ # convert string to symbol for hash key
143
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
144
+
145
+
146
+ if attributes[:'Bidi']
147
+ self.bidi = attributes[:'Bidi']
148
+ end
149
+
150
+ if attributes[:'BorderAlwaysInFront']
151
+ self.border_always_in_front = attributes[:'BorderAlwaysInFront']
152
+ end
153
+
154
+ if attributes[:'BorderAppliesTo']
155
+ self.border_applies_to = attributes[:'BorderAppliesTo']
156
+ end
157
+
158
+ if attributes[:'BorderDistanceFrom']
159
+ self.border_distance_from = attributes[:'BorderDistanceFrom']
160
+ end
161
+
162
+ if attributes[:'BottomMargin']
163
+ self.bottom_margin = attributes[:'BottomMargin']
164
+ end
165
+
166
+ if attributes[:'DifferentFirstPageHeaderFooter']
167
+ self.different_first_page_header_footer = attributes[:'DifferentFirstPageHeaderFooter']
168
+ end
169
+
170
+ if attributes[:'FirstPageTray']
171
+ self.first_page_tray = attributes[:'FirstPageTray']
172
+ end
173
+
174
+ if attributes[:'FooterDistance']
175
+ self.footer_distance = attributes[:'FooterDistance']
176
+ end
177
+
178
+ if attributes[:'Gutter']
179
+ self.gutter = attributes[:'Gutter']
180
+ end
181
+
182
+ if attributes[:'HeaderDistance']
183
+ self.header_distance = attributes[:'HeaderDistance']
184
+ end
185
+
186
+ if attributes[:'LeftMargin']
187
+ self.left_margin = attributes[:'LeftMargin']
188
+ end
189
+
190
+ if attributes[:'LineNumberCountBy']
191
+ self.line_number_count_by = attributes[:'LineNumberCountBy']
192
+ end
193
+
194
+ if attributes[:'LineNumberDistanceFromText']
195
+ self.line_number_distance_from_text = attributes[:'LineNumberDistanceFromText']
196
+ end
197
+
198
+ if attributes[:'LineNumberRestartMode']
199
+ self.line_number_restart_mode = attributes[:'LineNumberRestartMode']
200
+ end
201
+
202
+ if attributes[:'LineStartingNumber']
203
+ self.line_starting_number = attributes[:'LineStartingNumber']
204
+ end
205
+
206
+ if attributes[:'Orientation']
207
+ self.orientation = attributes[:'Orientation']
208
+ end
209
+
210
+ if attributes[:'OtherPagesTray']
211
+ self.other_pages_tray = attributes[:'OtherPagesTray']
212
+ end
213
+
214
+ if attributes[:'PageHeight']
215
+ self.page_height = attributes[:'PageHeight']
216
+ end
217
+
218
+ if attributes[:'PageNumberStyle']
219
+ self.page_number_style = attributes[:'PageNumberStyle']
220
+ end
221
+
222
+ if attributes[:'PageStartingNumber']
223
+ self.page_starting_number = attributes[:'PageStartingNumber']
224
+ end
225
+
226
+ if attributes[:'PageWidth']
227
+ self.page_width = attributes[:'PageWidth']
228
+ end
229
+
230
+ if attributes[:'PaperSize']
231
+ self.paper_size = attributes[:'PaperSize']
232
+ end
233
+
234
+ if attributes[:'RestartPageNumbering']
235
+ self.restart_page_numbering = attributes[:'RestartPageNumbering']
236
+ end
237
+
238
+ if attributes[:'RightMargin']
239
+ self.right_margin = attributes[:'RightMargin']
240
+ end
241
+
242
+ if attributes[:'RtlGutter']
243
+ self.rtl_gutter = attributes[:'RtlGutter']
244
+ end
245
+
246
+ if attributes[:'SectionStart']
247
+ self.section_start = attributes[:'SectionStart']
248
+ end
249
+
250
+ if attributes[:'SuppressEndnotes']
251
+ self.suppress_endnotes = attributes[:'SuppressEndnotes']
252
+ end
253
+
254
+ if attributes[:'TopMargin']
255
+ self.top_margin = attributes[:'TopMargin']
256
+ end
257
+
258
+ if attributes[:'VerticalAlignment']
259
+ self.vertical_alignment = attributes[:'VerticalAlignment']
260
+ end
261
+
262
+ if attributes[:'link']
263
+ self.link = attributes[:'link']
264
+ end
265
+
266
+ end
267
+
268
+ def border_applies_to=(border_applies_to)
269
+ allowed_values = ["AllPages", "FirstPage", "OtherPages"]
270
+ if border_applies_to && !allowed_values.include?(border_applies_to)
271
+ fail "invalid value for 'border_applies_to', must be one of #{allowed_values}"
272
+ end
273
+ @border_applies_to = border_applies_to
274
+ end
275
+
276
+ def border_distance_from=(border_distance_from)
277
+ allowed_values = ["Text", "PageEdge"]
278
+ if border_distance_from && !allowed_values.include?(border_distance_from)
279
+ fail "invalid value for 'border_distance_from', must be one of #{allowed_values}"
280
+ end
281
+ @border_distance_from = border_distance_from
282
+ end
283
+
284
+ def line_number_restart_mode=(line_number_restart_mode)
285
+ allowed_values = ["RestartPage", "RestartSection", "Continuous"]
286
+ if line_number_restart_mode && !allowed_values.include?(line_number_restart_mode)
287
+ fail "invalid value for 'line_number_restart_mode', must be one of #{allowed_values}"
288
+ end
289
+ @line_number_restart_mode = line_number_restart_mode
290
+ end
291
+
292
+ def orientation=(orientation)
293
+ allowed_values = ["Portrait", "Landscape"]
294
+ if orientation && !allowed_values.include?(orientation)
295
+ fail "invalid value for 'orientation', must be one of #{allowed_values}"
296
+ end
297
+ @orientation = orientation
298
+ end
299
+
300
+ def page_number_style=(page_number_style)
301
+ allowed_values = ["Arabic", "UppercaseRoman", "LowercaseRoman", "UppercaseLetter", "LowercaseLetter", "Ordinal", "Number", "OrdinalText", "Hex", "ChicagoManual", "Kanji", "KanjiDigit", "AiueoHalfWidth", "IrohaHalfWidth", "ArabicFullWidth", "ArabicHalfWidth", "KanjiTraditional", "KanjiTraditional2", "NumberInCircle", "DecimalFullWidth", "Aiueo", "Iroha", "LeadingZero", "Bullet", "Ganada", "Chosung", "GB1", "GB2", "GB3", "GB4", "Zodiac1", "Zodiac2", "Zodiac3", "TradChinNum1", "TradChinNum2", "TradChinNum3", "TradChinNum4", "SimpChinNum1", "SimpChinNum2", "SimpChinNum3", "SimpChinNum4", "HanjaRead", "HanjaReadDigit", "Hangul", "Hanja", "Hebrew1", "Arabic1", "Hebrew2", "Arabic2", "HindiLetter1", "HindiLetter2", "HindiArabic", "HindiCardinalText", "ThaiLetter", "ThaiArabic", "ThaiCardinalText", "VietCardinalText", "NumberInDash", "NumInDash", "LowercaseRussian", "UppercaseRussian", "None"]
302
+ if page_number_style && !allowed_values.include?(page_number_style)
303
+ fail "invalid value for 'page_number_style', must be one of #{allowed_values}"
304
+ end
305
+ @page_number_style = page_number_style
306
+ end
307
+
308
+ def paper_size=(paper_size)
309
+ allowed_values = ["A3", "A4", "A5", "B4", "B5", "Executive", "Folio", "Ledger", "Legal", "Letter", "EnvelopeDL", "Quarto", "Statement", "Tabloid", "Paper10x14", "Paper11x17", "Custom"]
310
+ if paper_size && !allowed_values.include?(paper_size)
311
+ fail "invalid value for 'paper_size', must be one of #{allowed_values}"
312
+ end
313
+ @paper_size = paper_size
314
+ end
315
+
316
+ def section_start=(section_start)
317
+ allowed_values = ["Continuous", "NewColumn", "NewPage", "EvenPage", "OddPage"]
318
+ if section_start && !allowed_values.include?(section_start)
319
+ fail "invalid value for 'section_start', must be one of #{allowed_values}"
320
+ end
321
+ @section_start = section_start
322
+ end
323
+
324
+ def vertical_alignment=(vertical_alignment)
325
+ allowed_values = ["Top", "Center", "Justify", "Bottom"]
326
+ if vertical_alignment && !allowed_values.include?(vertical_alignment)
327
+ fail "invalid value for 'vertical_alignment', must be one of #{allowed_values}"
328
+ end
329
+ @vertical_alignment = vertical_alignment
330
+ end
331
+
332
+ end
333
+ end
@@ -0,0 +1,53 @@
1
+ module AsposeWordsCloud
2
+ #
3
+ class PageStatData < BaseObject
4
+ attr_accessor :page_number, :word_count, :paragraph_count
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'page_number' => :'PageNumber',
11
+
12
+ #
13
+ :'word_count' => :'WordCount',
14
+
15
+ #
16
+ :'paragraph_count' => :'ParagraphCount'
17
+
18
+ }
19
+ end
20
+
21
+ # attribute type
22
+ def self.swagger_types
23
+ {
24
+ :'page_number' => :'Integer',
25
+ :'word_count' => :'Integer',
26
+ :'paragraph_count' => :'Integer'
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[:'PageNumber']
39
+ self.page_number = attributes[:'PageNumber']
40
+ end
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
+ end
51
+
52
+ end
53
+ end
@@ -0,0 +1,55 @@
1
+ module AsposeWordsCloud
2
+ #
3
+ class Paragraph < BaseObject
4
+ attr_accessor :child_nodes, :node_id, :link
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'child_nodes' => :'ChildNodes',
11
+
12
+ #
13
+ :'node_id' => :'NodeId',
14
+
15
+ #
16
+ :'link' => :'link'
17
+
18
+ }
19
+ end
20
+
21
+ # attribute type
22
+ def self.swagger_types
23
+ {
24
+ :'child_nodes' => :'Array<BaseResponse>',
25
+ :'node_id' => :'String',
26
+ :'link' => :'Link'
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[:'ChildNodes']
39
+ if (value = attributes[:'ChildNodes']).is_a?(Array)
40
+ self.child_nodes = value
41
+ end
42
+ end
43
+
44
+ if attributes[:'NodeId']
45
+ self.node_id = attributes[:'NodeId']
46
+ end
47
+
48
+ if attributes[:'link']
49
+ self.link = attributes[:'link']
50
+ end
51
+
52
+ end
53
+
54
+ end
55
+ end
@@ -0,0 +1,45 @@
1
+ module AsposeWordsCloud
2
+ #
3
+ class ParagraphLink < BaseObject
4
+ attr_accessor :text, :link
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
+ :'link' => :'link'
14
+
15
+ }
16
+ end
17
+
18
+ # attribute type
19
+ def self.swagger_types
20
+ {
21
+ :'text' => :'String',
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[:'Text']
35
+ self.text = attributes[:'Text']
36
+ end
37
+
38
+ if attributes[:'link']
39
+ self.link = attributes[:'link']
40
+ end
41
+
42
+ end
43
+
44
+ end
45
+ end
@@ -0,0 +1,47 @@
1
+ module AsposeWordsCloud
2
+ #
3
+ class ParagraphLinkCollection < BaseObject
4
+ attr_accessor :paragraph_link_list, :link
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'paragraph_link_list' => :'ParagraphLinkList',
11
+
12
+ #
13
+ :'link' => :'link'
14
+
15
+ }
16
+ end
17
+
18
+ # attribute type
19
+ def self.swagger_types
20
+ {
21
+ :'paragraph_link_list' => :'Array<ParagraphLink>',
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[:'ParagraphLinkList']
35
+ if (value = attributes[:'ParagraphLinkList']).is_a?(Array)
36
+ self.paragraph_link_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 ParagraphLinkCollectionResponse < BaseObject
4
+ attr_accessor :paragraphs, :status, :code
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'paragraphs' => :'Paragraphs',
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
+ :'paragraphs' => :'ParagraphLinkCollection',
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[:'Paragraphs']
39
+ self.paragraphs = attributes[:'Paragraphs']
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 ParagraphResponse < BaseObject
4
+ attr_accessor :paragraph, :status, :code
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'paragraph' => :'Paragraph',
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
+ :'paragraph' => :'Paragraph',
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[:'Paragraph']
39
+ self.paragraph = attributes[:'Paragraph']
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,37 @@
1
+ module AsposeWordsCloud
2
+ #
3
+ class ProtectionData < BaseObject
4
+ attr_accessor :protection_type
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ #
10
+ :'protection_type' => :'ProtectionType'
11
+
12
+ }
13
+ end
14
+
15
+ # attribute type
16
+ def self.swagger_types
17
+ {
18
+ :'protection_type' => :'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[:'ProtectionType']
31
+ self.protection_type = attributes[:'ProtectionType']
32
+ end
33
+
34
+ end
35
+
36
+ end
37
+ end