aspose_pdf_cloud 18.7.0 → 18.9.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 (124) hide show
  1. checksums.yaml +4 -4
  2. data/aspose_pdf_cloud.gemspec +53 -49
  3. data/lib/aspose_pdf_cloud.rb +150 -145
  4. data/lib/aspose_pdf_cloud/api/pdf_api.rb +12907 -11705
  5. data/lib/aspose_pdf_cloud/api_client.rb +2 -2
  6. data/lib/aspose_pdf_cloud/api_error.rb +47 -47
  7. data/lib/aspose_pdf_cloud/configuration.rb +175 -185
  8. data/lib/aspose_pdf_cloud/models/annotation.rb +332 -260
  9. data/lib/aspose_pdf_cloud/models/annotation_flags.rb +52 -0
  10. data/lib/aspose_pdf_cloud/models/annotation_info.rb +342 -0
  11. data/lib/aspose_pdf_cloud/models/annotation_state.rb +49 -0
  12. data/lib/aspose_pdf_cloud/models/annotation_type.rb +69 -0
  13. data/lib/aspose_pdf_cloud/models/{annotations.rb → annotations_info.rb} +211 -211
  14. data/lib/aspose_pdf_cloud/models/{annotations_response.rb → annotations_info_response.rb} +222 -222
  15. data/lib/aspose_pdf_cloud/models/antialiasing_processing_type.rb +43 -43
  16. data/lib/aspose_pdf_cloud/models/append_document.rb +233 -228
  17. data/lib/aspose_pdf_cloud/models/{saa_spose_response.rb → aspose_response.rb} +213 -213
  18. data/lib/aspose_pdf_cloud/models/attachment.rb +270 -270
  19. data/lib/aspose_pdf_cloud/models/attachment_response.rb +222 -222
  20. data/lib/aspose_pdf_cloud/models/attachments.rb +211 -211
  21. data/lib/aspose_pdf_cloud/models/attachments_response.rb +222 -222
  22. data/lib/aspose_pdf_cloud/models/color.rb +244 -244
  23. data/lib/aspose_pdf_cloud/models/color_depth.rb +45 -45
  24. data/lib/aspose_pdf_cloud/models/compression_type.rb +46 -46
  25. data/lib/aspose_pdf_cloud/models/doc_format.rb +43 -43
  26. data/lib/aspose_pdf_cloud/models/doc_recognition_mode.rb +43 -43
  27. data/lib/aspose_pdf_cloud/models/document.rb +220 -220
  28. data/lib/aspose_pdf_cloud/models/{text_item_response.rb → document_page_response.rb} +222 -222
  29. data/lib/aspose_pdf_cloud/models/document_pages_response.rb +222 -222
  30. data/lib/aspose_pdf_cloud/models/document_privilege.rb +298 -298
  31. data/lib/aspose_pdf_cloud/models/document_properties.rb +211 -211
  32. data/lib/aspose_pdf_cloud/models/document_properties_response.rb +222 -222
  33. data/lib/aspose_pdf_cloud/models/document_property.rb +227 -227
  34. data/lib/aspose_pdf_cloud/models/document_property_response.rb +222 -222
  35. data/lib/aspose_pdf_cloud/models/document_response.rb +233 -233
  36. data/lib/aspose_pdf_cloud/models/epub_recognition_mode.rb +44 -44
  37. data/lib/aspose_pdf_cloud/models/field.rb +254 -254
  38. data/lib/aspose_pdf_cloud/models/field_response.rb +222 -222
  39. data/lib/aspose_pdf_cloud/models/field_type.rb +45 -44
  40. data/lib/aspose_pdf_cloud/models/fields.rb +211 -211
  41. data/lib/aspose_pdf_cloud/models/fields_response.rb +222 -222
  42. data/lib/aspose_pdf_cloud/models/font_encoding_rules.rb +43 -43
  43. data/lib/aspose_pdf_cloud/models/font_saving_modes.rb +45 -45
  44. data/lib/aspose_pdf_cloud/models/font_styles.rb +45 -43
  45. data/lib/aspose_pdf_cloud/models/free_text_annotation.rb +382 -0
  46. data/lib/aspose_pdf_cloud/models/{annotation_response.rb → free_text_annotation_response.rb} +222 -222
  47. data/lib/aspose_pdf_cloud/models/{text_items.rb → free_text_annotations.rb} +211 -211
  48. data/lib/aspose_pdf_cloud/models/{text_items_response.rb → free_text_annotations_response.rb} +222 -222
  49. data/lib/aspose_pdf_cloud/models/free_text_intent.rb +44 -0
  50. data/lib/aspose_pdf_cloud/models/horizontal_alignment.rb +45 -44
  51. data/lib/aspose_pdf_cloud/models/html_document_type.rb +43 -43
  52. data/lib/aspose_pdf_cloud/models/html_markup_generation_modes.rb +43 -43
  53. data/lib/aspose_pdf_cloud/models/image.rb +250 -220
  54. data/lib/aspose_pdf_cloud/models/image_response.rb +222 -222
  55. data/lib/aspose_pdf_cloud/models/image_src_type.rb +43 -43
  56. data/lib/aspose_pdf_cloud/models/image_template.rb +281 -281
  57. data/lib/aspose_pdf_cloud/models/image_templates_request.rb +230 -230
  58. data/lib/aspose_pdf_cloud/models/images.rb +211 -211
  59. data/lib/aspose_pdf_cloud/models/images_response.rb +222 -222
  60. data/lib/aspose_pdf_cloud/models/justification.rb +44 -0
  61. data/lib/aspose_pdf_cloud/models/letters_positioning_methods.rb +43 -43
  62. data/lib/aspose_pdf_cloud/models/line_spacing.rb +43 -43
  63. data/lib/aspose_pdf_cloud/models/link.rb +228 -228
  64. data/lib/aspose_pdf_cloud/models/link_action_type.rb +47 -46
  65. data/lib/aspose_pdf_cloud/models/link_annotation.rb +254 -236
  66. data/lib/aspose_pdf_cloud/models/link_annotation_response.rb +222 -222
  67. data/lib/aspose_pdf_cloud/models/link_annotations.rb +211 -211
  68. data/lib/aspose_pdf_cloud/models/link_annotations_response.rb +222 -222
  69. data/lib/aspose_pdf_cloud/models/link_element.rb +200 -200
  70. data/lib/aspose_pdf_cloud/models/link_highlighting_mode.rb +46 -45
  71. data/lib/aspose_pdf_cloud/models/margin_info.rb +244 -244
  72. data/lib/aspose_pdf_cloud/models/markup_annotation.rb +342 -0
  73. data/lib/aspose_pdf_cloud/models/merge_documents.rb +205 -200
  74. data/lib/aspose_pdf_cloud/models/optimize_options.rb +293 -293
  75. data/lib/aspose_pdf_cloud/models/page.rb +228 -228
  76. data/lib/aspose_pdf_cloud/models/page_word_count.rb +218 -218
  77. data/lib/aspose_pdf_cloud/models/pages.rb +211 -211
  78. data/lib/aspose_pdf_cloud/models/paragraph.rb +303 -303
  79. data/lib/aspose_pdf_cloud/models/parts_embedding_modes.rb +44 -44
  80. data/lib/aspose_pdf_cloud/models/pdf_a_type.rb +43 -43
  81. data/lib/aspose_pdf_cloud/models/raster_images_saving_modes.rb +44 -44
  82. data/lib/aspose_pdf_cloud/models/{document_text_replace_response.rb → rectangle_pdf.rb} +244 -231
  83. data/lib/aspose_pdf_cloud/models/rotation.rb +45 -44
  84. data/lib/aspose_pdf_cloud/models/segment.rb +211 -206
  85. data/lib/aspose_pdf_cloud/models/shape_type.rb +44 -44
  86. data/lib/aspose_pdf_cloud/models/signature.rb +338 -333
  87. data/lib/aspose_pdf_cloud/models/signature_type.rb +44 -42
  88. data/lib/aspose_pdf_cloud/models/signature_verify_response.rb +223 -223
  89. data/lib/aspose_pdf_cloud/models/split_result.rb +200 -200
  90. data/lib/aspose_pdf_cloud/models/split_result_document.rb +238 -238
  91. data/lib/aspose_pdf_cloud/models/split_result_response.rb +223 -223
  92. data/lib/aspose_pdf_cloud/models/stamp.rb +413 -413
  93. data/lib/aspose_pdf_cloud/models/stamp_type.rb +45 -44
  94. data/lib/aspose_pdf_cloud/models/{tiff_export_options.rb → text_annotation.rb} +382 -348
  95. data/lib/aspose_pdf_cloud/models/text_annotation_response.rb +222 -0
  96. data/lib/aspose_pdf_cloud/models/{text_item.rb → text_annotations.rb} +211 -218
  97. data/lib/aspose_pdf_cloud/models/text_annotations_response.rb +222 -0
  98. data/lib/aspose_pdf_cloud/models/text_horizontal_alignment.rb +47 -47
  99. data/lib/aspose_pdf_cloud/models/text_icon.rb +52 -0
  100. data/lib/aspose_pdf_cloud/models/text_line.rb +215 -210
  101. data/lib/aspose_pdf_cloud/models/text_rect.rb +220 -220
  102. data/lib/aspose_pdf_cloud/models/text_rects.rb +199 -199
  103. data/lib/aspose_pdf_cloud/models/text_rects_response.rb +222 -222
  104. data/lib/aspose_pdf_cloud/models/text_replace.rb +253 -253
  105. data/lib/aspose_pdf_cloud/models/text_replace_list_request.rb +232 -232
  106. data/lib/aspose_pdf_cloud/models/text_replace_response.rb +222 -222
  107. data/lib/aspose_pdf_cloud/models/text_state.rb +248 -248
  108. data/lib/aspose_pdf_cloud/models/{text_format.rb → text_style.rb} +233 -227
  109. data/lib/aspose_pdf_cloud/models/vertical_alignment.rb +45 -45
  110. data/lib/aspose_pdf_cloud/models/word_count.rb +199 -199
  111. data/lib/aspose_pdf_cloud/models/word_count_response.rb +223 -223
  112. data/lib/aspose_pdf_cloud/models/wrap_mode.rb +44 -44
  113. data/lib/aspose_pdf_cloud/version.rb +24 -24
  114. data/test/pdf_tests.rb +1496 -1325
  115. data/test_data/TexExample.tex +304 -304
  116. metadata +24 -21
  117. data/.gitignore +0 -46
  118. data/.swagger-codegen-ignore +0 -58
  119. data/lib/aspose_pdf_cloud/models/http_status_code.rb +0 -87
  120. data/lib/aspose_pdf_cloud/models/images_list_request.rb +0 -205
  121. data/lib/aspose_pdf_cloud/models/page_text_replace_response.rb +0 -231
  122. data/lib/aspose_pdf_cloud/models/rectangle.rb +0 -244
  123. data/lib/aspose_pdf_cloud/models/text_format_response.rb +0 -222
  124. data/lib/aspose_pdf_cloud/models/text_replace_request.rb +0 -262
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspose_pdf_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 18.7.0
4
+ version: 18.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aspose PDF Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-04 00:00:00.000000000 Z
11
+ date: 2018-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -67,8 +67,6 @@ executables: []
67
67
  extensions: []
68
68
  extra_rdoc_files: []
69
69
  files:
70
- - ".gitignore"
71
- - ".swagger-codegen-ignore"
72
70
  - LICENSE
73
71
  - README.md
74
72
  - aspose_pdf_cloud.gemspec
@@ -78,11 +76,15 @@ files:
78
76
  - lib/aspose_pdf_cloud/api_error.rb
79
77
  - lib/aspose_pdf_cloud/configuration.rb
80
78
  - lib/aspose_pdf_cloud/models/annotation.rb
81
- - lib/aspose_pdf_cloud/models/annotation_response.rb
82
- - lib/aspose_pdf_cloud/models/annotations.rb
83
- - lib/aspose_pdf_cloud/models/annotations_response.rb
79
+ - lib/aspose_pdf_cloud/models/annotation_flags.rb
80
+ - lib/aspose_pdf_cloud/models/annotation_info.rb
81
+ - lib/aspose_pdf_cloud/models/annotation_state.rb
82
+ - lib/aspose_pdf_cloud/models/annotation_type.rb
83
+ - lib/aspose_pdf_cloud/models/annotations_info.rb
84
+ - lib/aspose_pdf_cloud/models/annotations_info_response.rb
84
85
  - lib/aspose_pdf_cloud/models/antialiasing_processing_type.rb
85
86
  - lib/aspose_pdf_cloud/models/append_document.rb
87
+ - lib/aspose_pdf_cloud/models/aspose_response.rb
86
88
  - lib/aspose_pdf_cloud/models/attachment.rb
87
89
  - lib/aspose_pdf_cloud/models/attachment_response.rb
88
90
  - lib/aspose_pdf_cloud/models/attachments.rb
@@ -93,6 +95,7 @@ files:
93
95
  - lib/aspose_pdf_cloud/models/doc_format.rb
94
96
  - lib/aspose_pdf_cloud/models/doc_recognition_mode.rb
95
97
  - lib/aspose_pdf_cloud/models/document.rb
98
+ - lib/aspose_pdf_cloud/models/document_page_response.rb
96
99
  - lib/aspose_pdf_cloud/models/document_pages_response.rb
97
100
  - lib/aspose_pdf_cloud/models/document_privilege.rb
98
101
  - lib/aspose_pdf_cloud/models/document_properties.rb
@@ -100,7 +103,6 @@ files:
100
103
  - lib/aspose_pdf_cloud/models/document_property.rb
101
104
  - lib/aspose_pdf_cloud/models/document_property_response.rb
102
105
  - lib/aspose_pdf_cloud/models/document_response.rb
103
- - lib/aspose_pdf_cloud/models/document_text_replace_response.rb
104
106
  - lib/aspose_pdf_cloud/models/epub_recognition_mode.rb
105
107
  - lib/aspose_pdf_cloud/models/field.rb
106
108
  - lib/aspose_pdf_cloud/models/field_response.rb
@@ -110,18 +112,22 @@ files:
110
112
  - lib/aspose_pdf_cloud/models/font_encoding_rules.rb
111
113
  - lib/aspose_pdf_cloud/models/font_saving_modes.rb
112
114
  - lib/aspose_pdf_cloud/models/font_styles.rb
115
+ - lib/aspose_pdf_cloud/models/free_text_annotation.rb
116
+ - lib/aspose_pdf_cloud/models/free_text_annotation_response.rb
117
+ - lib/aspose_pdf_cloud/models/free_text_annotations.rb
118
+ - lib/aspose_pdf_cloud/models/free_text_annotations_response.rb
119
+ - lib/aspose_pdf_cloud/models/free_text_intent.rb
113
120
  - lib/aspose_pdf_cloud/models/horizontal_alignment.rb
114
121
  - lib/aspose_pdf_cloud/models/html_document_type.rb
115
122
  - lib/aspose_pdf_cloud/models/html_markup_generation_modes.rb
116
- - lib/aspose_pdf_cloud/models/http_status_code.rb
117
123
  - lib/aspose_pdf_cloud/models/image.rb
118
124
  - lib/aspose_pdf_cloud/models/image_response.rb
119
125
  - lib/aspose_pdf_cloud/models/image_src_type.rb
120
126
  - lib/aspose_pdf_cloud/models/image_template.rb
121
127
  - lib/aspose_pdf_cloud/models/image_templates_request.rb
122
128
  - lib/aspose_pdf_cloud/models/images.rb
123
- - lib/aspose_pdf_cloud/models/images_list_request.rb
124
129
  - lib/aspose_pdf_cloud/models/images_response.rb
130
+ - lib/aspose_pdf_cloud/models/justification.rb
125
131
  - lib/aspose_pdf_cloud/models/letters_positioning_methods.rb
126
132
  - lib/aspose_pdf_cloud/models/line_spacing.rb
127
133
  - lib/aspose_pdf_cloud/models/link.rb
@@ -133,19 +139,18 @@ files:
133
139
  - lib/aspose_pdf_cloud/models/link_element.rb
134
140
  - lib/aspose_pdf_cloud/models/link_highlighting_mode.rb
135
141
  - lib/aspose_pdf_cloud/models/margin_info.rb
142
+ - lib/aspose_pdf_cloud/models/markup_annotation.rb
136
143
  - lib/aspose_pdf_cloud/models/merge_documents.rb
137
144
  - lib/aspose_pdf_cloud/models/optimize_options.rb
138
145
  - lib/aspose_pdf_cloud/models/page.rb
139
- - lib/aspose_pdf_cloud/models/page_text_replace_response.rb
140
146
  - lib/aspose_pdf_cloud/models/page_word_count.rb
141
147
  - lib/aspose_pdf_cloud/models/pages.rb
142
148
  - lib/aspose_pdf_cloud/models/paragraph.rb
143
149
  - lib/aspose_pdf_cloud/models/parts_embedding_modes.rb
144
150
  - lib/aspose_pdf_cloud/models/pdf_a_type.rb
145
151
  - lib/aspose_pdf_cloud/models/raster_images_saving_modes.rb
146
- - lib/aspose_pdf_cloud/models/rectangle.rb
152
+ - lib/aspose_pdf_cloud/models/rectangle_pdf.rb
147
153
  - lib/aspose_pdf_cloud/models/rotation.rb
148
- - lib/aspose_pdf_cloud/models/saa_spose_response.rb
149
154
  - lib/aspose_pdf_cloud/models/segment.rb
150
155
  - lib/aspose_pdf_cloud/models/shape_type.rb
151
156
  - lib/aspose_pdf_cloud/models/signature.rb
@@ -156,23 +161,21 @@ files:
156
161
  - lib/aspose_pdf_cloud/models/split_result_response.rb
157
162
  - lib/aspose_pdf_cloud/models/stamp.rb
158
163
  - lib/aspose_pdf_cloud/models/stamp_type.rb
159
- - lib/aspose_pdf_cloud/models/text_format.rb
160
- - lib/aspose_pdf_cloud/models/text_format_response.rb
164
+ - lib/aspose_pdf_cloud/models/text_annotation.rb
165
+ - lib/aspose_pdf_cloud/models/text_annotation_response.rb
166
+ - lib/aspose_pdf_cloud/models/text_annotations.rb
167
+ - lib/aspose_pdf_cloud/models/text_annotations_response.rb
161
168
  - lib/aspose_pdf_cloud/models/text_horizontal_alignment.rb
162
- - lib/aspose_pdf_cloud/models/text_item.rb
163
- - lib/aspose_pdf_cloud/models/text_item_response.rb
164
- - lib/aspose_pdf_cloud/models/text_items.rb
165
- - lib/aspose_pdf_cloud/models/text_items_response.rb
169
+ - lib/aspose_pdf_cloud/models/text_icon.rb
166
170
  - lib/aspose_pdf_cloud/models/text_line.rb
167
171
  - lib/aspose_pdf_cloud/models/text_rect.rb
168
172
  - lib/aspose_pdf_cloud/models/text_rects.rb
169
173
  - lib/aspose_pdf_cloud/models/text_rects_response.rb
170
174
  - lib/aspose_pdf_cloud/models/text_replace.rb
171
175
  - lib/aspose_pdf_cloud/models/text_replace_list_request.rb
172
- - lib/aspose_pdf_cloud/models/text_replace_request.rb
173
176
  - lib/aspose_pdf_cloud/models/text_replace_response.rb
174
177
  - lib/aspose_pdf_cloud/models/text_state.rb
175
- - lib/aspose_pdf_cloud/models/tiff_export_options.rb
178
+ - lib/aspose_pdf_cloud/models/text_style.rb
176
179
  - lib/aspose_pdf_cloud/models/vertical_alignment.rb
177
180
  - lib/aspose_pdf_cloud/models/word_count.rb
178
181
  - lib/aspose_pdf_cloud/models/word_count_response.rb
data/.gitignore DELETED
@@ -1,46 +0,0 @@
1
- # Generated by: https://github.com/swagger-api/swagger-codegen.git
2
- #
3
-
4
- *.gem
5
- *.rbc
6
- /.config
7
- /coverage/
8
- /InstalledFiles
9
- /pkg/
10
- /spec/reports/
11
- /spec/examples.txt
12
- /test/tmp/
13
- /test/temp_tests.rb
14
- /test/version_tmp/
15
- /tmp/
16
-
17
- ## Specific to RubyMotion:
18
- .dat*
19
- .repl_history
20
- build/
21
-
22
- ## Documentation cache and generated files:
23
- /.yardoc/
24
- /_yardoc/
25
- /doc/
26
- /rdoc/
27
-
28
- ## Environment normalization:
29
- /.bundle/
30
- /vendor/bundle
31
- /lib/bundler/man/
32
- /.swagger-codegen/
33
-
34
-
35
- # for a library or gem, you might want to ignore these files since the code is
36
- # intended to run in multiple environments; otherwise, check them in:
37
- # Gemfile.lock
38
- # .ruby-version
39
- # .ruby-gemset
40
-
41
- # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
42
- .rvmrc
43
-
44
- #IDE
45
- /.idea/
46
- /.vscode/
@@ -1,58 +0,0 @@
1
- # Swagger Codegen Ignore
2
- # Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
3
-
4
- # Use this file to prevent files from being overwritten by the generator.
5
- # The patterns follow closely to .gitignore or .dockerignore.
6
-
7
- # As an example, the C# client generator defines ApiClient.cs.
8
- # You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
9
- #ApiClient.cs
10
-
11
- # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
- #foo/*/qux
13
- # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
-
15
- # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
- #foo/**/qux
17
- # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
-
19
- # You can also negate patterns with an exclamation (!).
20
- # For example, you can ignore all files in a docs folder with the file extension .md:
21
- #docs/*.md
22
- # Then explicitly reverse the ignore rule for a single file:
23
- #!docs/README.md
24
-
25
-
26
-
27
- *.sh
28
- #.travis.yml
29
- .gitignore
30
- *.md
31
- docs/*
32
- spec/**
33
- #spec/api/*
34
- #spec/models/*
35
-
36
- #**/*.nuspec
37
-
38
- #Ignore enums that are not properly generated. We have good ones in sources already.
39
-
40
- #lib/aspose_pdf_cloud/models/field_type.rb
41
- #lib/aspose_pdf_cloud/models/font_styles.rb
42
- #lib/aspose_pdf_cloud/models/horizontal_alignment.rb
43
- #lib/aspose_pdf_cloud/models/http_status_code.rb
44
- #lib/aspose_pdf_cloud/models/line_spacing.rb
45
- #lib/aspose_pdf_cloud/models/link_highlighting_mode.rb
46
- #lib/aspose_pdf_cloud/models/rotation.rb
47
- #lib/aspose_pdf_cloud/models/text_horizontal_alignment.rb
48
- #lib/aspose_pdf_cloud/models/stamp_type.rb
49
- #lib/aspose_pdf_cloud/models/vertical_alignment.rb
50
- #lib/aspose_pdf_cloud/models/wrap_mode.rb
51
- #lib/aspose_pdf_cloud/models/link_action_type.rb
52
- #lib/aspose_pdf_cloud/models/signature_type.rb
53
- # Ignore other files and folders
54
-
55
- .rspec
56
- Gemfile
57
- Rakefile
58
-
@@ -1,87 +0,0 @@
1
- =begin
2
- --------------------------------------------------------------------------------------------------------------------
3
- Copyright (c) 2018 Aspose.PDF Cloud
4
- Permission is hereby granted, free of charge, to any person obtaining a copy
5
- of this software and associated documentation files (the "Software"), to deal
6
- in the Software without restriction, including without limitation the rights
7
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- copies of the Software, and to permit persons to whom the Software is
9
- furnished to do so, subject to the following conditions:
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
- SOFTWARE.
19
- --------------------------------------------------------------------------------------------------------------------
20
- =end
21
-
22
- require 'date'
23
-
24
- module AsposePdfCloud
25
- class HttpStatusCode
26
-
27
- CONTINUE = 100.freeze
28
- SWITCHING_PROTOCOLS = 101.freeze
29
- OK = 200.freeze
30
- CREATED = 201.freeze
31
- ACCEPTED = 202.freeze
32
- NON_AUTHORITATIVE_INFORMATION = 203.freeze
33
- NO_CONTENT = 204.freeze
34
- RESET_CONTENT = 205.freeze
35
- PARTIAL_CONTENT = 206.freeze
36
- MULTIPLE_CHOICES = 300.freeze
37
- AMBIGUOUS = 300.freeze
38
- MOVED_PERMANENTLY = 301.freeze
39
- MOVED = 301.freeze
40
- FOUND = 302.freeze
41
- REDIRECT = 302.freeze
42
- SEE_OTHER = 303.freeze
43
- REDIRECT_METHOD = 303.freeze
44
- NOT_MODIFIED = 304.freeze
45
- USE_PROXY = 305.freeze
46
- UNUSED = 306.freeze
47
- TEMPORARY_REDIRECT = 307.freeze
48
- REDIRECT_KEEP_VERB = 307.freeze
49
- BAD_REQUEST = 400.freeze
50
- UNAUTHORIZED = 401.freeze
51
- PAYMENT_REQUIRED = 402.freeze
52
- FORBIDDEN = 403.freeze
53
- NOT_FOUND = 404.freeze
54
- METHOD_NOT_ALLOWED = 405.freeze
55
- NOT_ACCEPTABLE = 406.freeze
56
- PROXY_AUTHENTICATION_REQUIRED = 407.freeze
57
- REQUEST_TIMEOUT = 408.freeze
58
- CONFLICT = 409.freeze
59
- GONE = 410.freeze
60
- LENGTH_REQUIRED = 411.freeze
61
- PRECONDITION_FAILED = 412.freeze
62
- REQUEST_ENTITY_TOO_LARGE = 413.freeze
63
- REQUEST_URI_TOO_LONG = 414.freeze
64
- UNSUPPORTED_MEDIA_TYPE = 415.freeze
65
- REQUESTED_RANGE_NOT_SATISFIABLE = 416.freeze
66
- EXPECTATION_FAILED = 417.freeze
67
- UPGRADE_REQUIRED = 426.freeze
68
- INTERNAL_SERVER_ERROR = 500.freeze
69
- NOT_IMPLEMENTED = 501.freeze
70
- BAD_GATEWAY = 502.freeze
71
- SERVICE_UNAVAILABLE = 503.freeze
72
- GATEWAY_TIMEOUT = 504.freeze
73
- HTTP_VERSION_NOT_SUPPORTED = 505.freeze
74
-
75
- # Builds the enum from string
76
- # @param [Fixnum] The enum value in the form of the string
77
- # @return [Fixnum] The enum value
78
- def build_from_hash(value)
79
- constantValues = HttpStatusCode.constants.select{ |const_name| HttpStatusCode.const_get(const_name) == value}
80
- raise "Invalid ENUM value #{value} for class #HttpStatusCode" if constantValues.empty?
81
- value
82
- #constantValues[0]
83
- end
84
-
85
- end
86
-
87
- end
@@ -1,205 +0,0 @@
1
- =begin
2
- --------------------------------------------------------------------------------------------------------------------
3
- Copyright (c) 2018 Aspose.PDF Cloud
4
- Permission is hereby granted, free of charge, to any person obtaining a copy
5
- of this software and associated documentation files (the "Software"), to deal
6
- in the Software without restriction, including without limitation the rights
7
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- copies of the Software, and to permit persons to whom the Software is
9
- furnished to do so, subject to the following conditions:
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
- SOFTWARE.
19
- --------------------------------------------------------------------------------------------------------------------
20
- =end
21
-
22
- require 'date'
23
-
24
- module AsposePdfCloud
25
- # Create document from images request.
26
- class ImagesListRequest
27
- # A list of paths for images.
28
- attr_accessor :images_list
29
-
30
-
31
- # Attribute mapping from ruby-style variable name to JSON key.
32
- def self.attribute_map
33
- {
34
- :'images_list' => :'ImagesList'
35
- }
36
- end
37
-
38
- # Attribute type mapping.
39
- def self.swagger_types
40
- {
41
- :'images_list' => :'Array<String>'
42
- }
43
- end
44
-
45
- # Initializes the object
46
- # @param [Hash] attributes Model attributes in the form of hash
47
- def initialize(attributes = {})
48
- return unless attributes.is_a?(Hash)
49
-
50
- # convert string to symbol for hash key
51
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
52
-
53
- if attributes.has_key?(:'ImagesList')
54
- if (value = attributes[:'ImagesList']).is_a?(Array)
55
- self.images_list = value
56
- end
57
- end
58
-
59
- end
60
-
61
- # Show invalid properties with the reasons. Usually used together with valid?
62
- # @return Array for valid properies with the reasons
63
- def list_invalid_properties
64
- invalid_properties = Array.new
65
- if @images_list.nil?
66
- invalid_properties.push("invalid value for 'images_list', images_list cannot be nil.")
67
- end
68
-
69
- return invalid_properties
70
- end
71
-
72
- # Check to see if the all the properties in the model are valid
73
- # @return true if the model is valid
74
- def valid?
75
- return false if @images_list.nil?
76
- return true
77
- end
78
-
79
- # Checks equality by comparing each attribute.
80
- # @param [Object] Object to be compared
81
- def ==(o)
82
- return true if self.equal?(o)
83
- self.class == o.class &&
84
- images_list == o.images_list
85
- end
86
-
87
- # @see the `==` method
88
- # @param [Object] Object to be compared
89
- def eql?(o)
90
- self == o
91
- end
92
-
93
- # Calculates hash code according to all attributes.
94
- # @return [Fixnum] Hash code
95
- def hash
96
- [images_list].hash
97
- end
98
-
99
- # Builds the object from hash
100
- # @param [Hash] attributes Model attributes in the form of hash
101
- # @return [Object] Returns the model itself
102
- def build_from_hash(attributes)
103
- return nil unless attributes.is_a?(Hash)
104
- self.class.swagger_types.each_pair do |key, type|
105
- if type =~ /\AArray<(.*)>/i
106
- # check to ensure the input is an array given that the the attribute
107
- # is documented as an array but the input is not
108
- if attributes[self.class.attribute_map[key]].is_a?(Array)
109
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
110
- end
111
- elsif !attributes[self.class.attribute_map[key]].nil?
112
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
113
- end # or else data not found in attributes(hash), not an issue as the data can be optional
114
- end
115
-
116
- self
117
- end
118
-
119
- # Deserializes the data based on type
120
- # @param string type Data type
121
- # @param string value Value to be deserialized
122
- # @return [Object] Deserialized data
123
- def _deserialize(type, value)
124
- case type.to_sym
125
- when :DateTime
126
- DateTime.parse(value)
127
- when :Date
128
- Date.parse(value)
129
- when :String
130
- value.to_s
131
- when :Integer
132
- value.to_i
133
- when :Float
134
- value.to_f
135
- when :BOOLEAN
136
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
137
- true
138
- else
139
- false
140
- end
141
- when :Object
142
- # generic object (usually a Hash), return directly
143
- value
144
- when /\AArray<(?<inner_type>.+)>\z/
145
- inner_type = Regexp.last_match[:inner_type]
146
- value.map { |v| _deserialize(inner_type, v) }
147
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
148
- k_type = Regexp.last_match[:k_type]
149
- v_type = Regexp.last_match[:v_type]
150
- {}.tap do |hash|
151
- value.each do |k, v|
152
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
153
- end
154
- end
155
- else # model
156
- temp_model = AsposePdfCloud.const_get(type).new
157
- temp_model.build_from_hash(value)
158
- end
159
- end
160
-
161
- # Returns the string representation of the object
162
- # @return [String] String presentation of the object
163
- def to_s
164
- to_hash.to_s
165
- end
166
-
167
- # to_body is an alias to to_hash (backward compatibility)
168
- # @return [Hash] Returns the object in the form of hash
169
- def to_body
170
- to_hash
171
- end
172
-
173
- # Returns the object in the form of hash
174
- # @return [Hash] Returns the object in the form of hash
175
- def to_hash
176
- hash = {}
177
- self.class.attribute_map.each_pair do |attr, param|
178
- value = self.send(attr)
179
- next if value.nil?
180
- hash[param] = _to_hash(value)
181
- end
182
- hash
183
- end
184
-
185
- # Outputs non-array value in the form of hash
186
- # For object, use to_hash. Otherwise, just return the value
187
- # @param [Object] value Any valid value
188
- # @return [Hash] Returns the value in the form of hash
189
- def _to_hash(value)
190
- if value.is_a?(Array)
191
- value.compact.map{ |v| _to_hash(v) }
192
- elsif value.is_a?(Hash)
193
- {}.tap do |hash|
194
- value.each { |k, v| hash[k] = _to_hash(v) }
195
- end
196
- elsif value.respond_to? :to_hash
197
- value.to_hash
198
- else
199
- value
200
- end
201
- end
202
-
203
- end
204
-
205
- end