aspose_pdf_cloud 1.0.2 → 18.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +42 -0
  3. data/.swagger-codegen-ignore +58 -0
  4. data/.swagger-codegen/VERSION +1 -0
  5. data/LICENSE +21 -22
  6. data/README.md +51 -43
  7. data/aspose_pdf_cloud.gemspec +32 -8
  8. data/lib/aspose_pdf_cloud.rb +93 -58
  9. data/lib/aspose_pdf_cloud/api/pdf_api.rb +2624 -1916
  10. data/lib/aspose_pdf_cloud/api_client.rb +280 -92
  11. data/lib/aspose_pdf_cloud/api_error.rb +29 -6
  12. data/lib/aspose_pdf_cloud/configuration.rb +86 -63
  13. data/lib/aspose_pdf_cloud/models/annotation.rb +218 -45
  14. data/lib/aspose_pdf_cloud/models/annotation_response.rb +195 -34
  15. data/lib/aspose_pdf_cloud/models/annotations.rb +187 -25
  16. data/lib/aspose_pdf_cloud/models/annotations_response.rb +195 -34
  17. data/lib/aspose_pdf_cloud/models/append_document.rb +198 -23
  18. data/lib/aspose_pdf_cloud/models/attachment.rb +224 -49
  19. data/lib/aspose_pdf_cloud/models/attachment_response.rb +195 -34
  20. data/lib/aspose_pdf_cloud/models/attachments.rb +187 -25
  21. data/lib/aspose_pdf_cloud/models/attachments_response.rb +195 -34
  22. data/lib/aspose_pdf_cloud/models/bookmarks.rb +187 -25
  23. data/lib/aspose_pdf_cloud/models/bookmarks_response.rb +195 -34
  24. data/lib/aspose_pdf_cloud/models/color.rb +214 -31
  25. data/lib/aspose_pdf_cloud/models/document.rb +194 -29
  26. data/lib/aspose_pdf_cloud/models/document_pages_response.rb +195 -34
  27. data/lib/aspose_pdf_cloud/models/document_properties.rb +187 -25
  28. data/lib/aspose_pdf_cloud/models/document_properties_response.rb +195 -34
  29. data/lib/aspose_pdf_cloud/models/document_property.rb +197 -33
  30. data/lib/aspose_pdf_cloud/models/document_property_response.rb +195 -34
  31. data/lib/aspose_pdf_cloud/models/document_response.rb +206 -34
  32. data/lib/aspose_pdf_cloud/models/document_text_replace_response.rb +203 -41
  33. data/lib/aspose_pdf_cloud/models/field.rb +213 -42
  34. data/lib/aspose_pdf_cloud/models/field_response.rb +195 -34
  35. data/lib/aspose_pdf_cloud/models/field_type.rb +44 -0
  36. data/lib/aspose_pdf_cloud/models/fields.rb +187 -25
  37. data/lib/aspose_pdf_cloud/models/fields_response.rb +195 -34
  38. data/lib/aspose_pdf_cloud/models/font_styles.rb +43 -0
  39. data/lib/aspose_pdf_cloud/models/horizontal_alignment.rb +44 -0
  40. data/lib/aspose_pdf_cloud/models/http_status_code.rb +87 -0
  41. data/lib/aspose_pdf_cloud/models/image.rb +194 -29
  42. data/lib/aspose_pdf_cloud/models/image_response.rb +195 -34
  43. data/lib/aspose_pdf_cloud/models/images.rb +187 -25
  44. data/lib/aspose_pdf_cloud/models/images_list_request.rb +205 -0
  45. data/lib/aspose_pdf_cloud/models/images_response.rb +195 -34
  46. data/lib/aspose_pdf_cloud/models/line_spacing.rb +43 -0
  47. data/lib/aspose_pdf_cloud/models/link.rb +194 -27
  48. data/lib/aspose_pdf_cloud/models/link_action_type.rb +46 -0
  49. data/lib/aspose_pdf_cloud/models/link_annotation.rb +204 -39
  50. data/lib/aspose_pdf_cloud/models/link_annotation_response.rb +195 -34
  51. data/lib/aspose_pdf_cloud/models/link_annotations.rb +187 -25
  52. data/lib/aspose_pdf_cloud/models/link_annotations_response.rb +195 -34
  53. data/lib/aspose_pdf_cloud/models/link_element.rb +175 -14
  54. data/lib/aspose_pdf_cloud/models/link_highlighting_mode.rb +45 -0
  55. data/lib/aspose_pdf_cloud/models/merge_documents.rb +175 -14
  56. data/lib/aspose_pdf_cloud/models/optimize_options.rb +293 -0
  57. data/lib/aspose_pdf_cloud/models/page.rb +198 -33
  58. data/lib/aspose_pdf_cloud/models/page_text_replace_response.rb +203 -41
  59. data/lib/aspose_pdf_cloud/models/page_word_count.rb +192 -19
  60. data/lib/aspose_pdf_cloud/models/pages.rb +187 -25
  61. data/lib/aspose_pdf_cloud/models/paragraph.rb +303 -0
  62. data/lib/aspose_pdf_cloud/models/rectangle.rb +210 -27
  63. data/lib/aspose_pdf_cloud/models/rotation.rb +44 -0
  64. data/lib/aspose_pdf_cloud/models/saa_spose_response.rb +213 -0
  65. data/lib/aspose_pdf_cloud/models/segment.rb +206 -0
  66. data/lib/aspose_pdf_cloud/models/signature.rb +278 -54
  67. data/lib/aspose_pdf_cloud/models/signature_type.rb +42 -0
  68. data/lib/aspose_pdf_cloud/models/split_result.rb +175 -14
  69. data/lib/aspose_pdf_cloud/models/split_result_document.rb +206 -37
  70. data/lib/aspose_pdf_cloud/models/split_result_response.rb +196 -34
  71. data/lib/aspose_pdf_cloud/models/stamp.rb +312 -104
  72. data/lib/aspose_pdf_cloud/models/stamp_type.rb +44 -0
  73. data/lib/aspose_pdf_cloud/models/text_format.rb +197 -33
  74. data/lib/aspose_pdf_cloud/models/text_format_response.rb +195 -34
  75. data/lib/aspose_pdf_cloud/models/text_horizontal_alignment.rb +47 -0
  76. data/lib/aspose_pdf_cloud/models/text_item.rb +192 -29
  77. data/lib/aspose_pdf_cloud/models/text_item_response.rb +195 -34
  78. data/lib/aspose_pdf_cloud/models/text_items.rb +187 -25
  79. data/lib/aspose_pdf_cloud/models/text_items_response.rb +195 -34
  80. data/lib/aspose_pdf_cloud/models/text_line.rb +210 -0
  81. data/lib/aspose_pdf_cloud/models/text_rect.rb +220 -0
  82. data/lib/aspose_pdf_cloud/models/text_rects.rb +199 -0
  83. data/lib/aspose_pdf_cloud/models/text_rects_response.rb +222 -0
  84. data/lib/aspose_pdf_cloud/models/text_replace.rb +225 -25
  85. data/lib/aspose_pdf_cloud/models/text_replace_list_request.rb +209 -16
  86. data/lib/aspose_pdf_cloud/models/text_replace_request.rb +262 -0
  87. data/lib/aspose_pdf_cloud/models/text_replace_response.rb +222 -0
  88. data/lib/aspose_pdf_cloud/models/text_state.rb +211 -32
  89. data/lib/aspose_pdf_cloud/models/tiff_export_options.rb +266 -75
  90. data/lib/aspose_pdf_cloud/models/vertical_alignment.rb +45 -0
  91. data/lib/aspose_pdf_cloud/models/word_count.rb +174 -14
  92. data/lib/aspose_pdf_cloud/models/word_count_response.rb +196 -34
  93. data/lib/aspose_pdf_cloud/models/wrap_mode.rb +44 -0
  94. data/lib/aspose_pdf_cloud/version.rb +23 -2
  95. data/test/pdf_tests.rb +1268 -623
  96. data/test_data/33539.jpg +0 -0
  97. data/test_data/44781.jpg +0 -0
  98. data/test_data/4pages.pdf +0 -0
  99. data/test_data/BlankWithSignature.pdf +0 -0
  100. data/test_data/Hello_world.pdf +0 -0
  101. data/test_data/HtmlExample1.html +27 -0
  102. data/test_data/Koala.jpg +0 -0
  103. data/test_data/PdfWithAcroForm.pdf +321 -0
  104. data/test_data/PdfWithAnnotations.pdf +720 -1
  105. data/test_data/PdfWithBookmarks.pdf +0 -0
  106. data/test_data/PdfWithEmbeddedFiles.pdf +0 -0
  107. data/test_data/PdfWithImages2.pdf +0 -0
  108. data/test_data/PdfWithLinks.pdf +0 -0
  109. data/test_data/Penguins.jpg +0 -0
  110. data/test_data/butterfly.jpg +0 -0
  111. data/test_data/marketing.pdf +0 -0
  112. data/test_data/rusdoc.pdf +0 -0
  113. data/test_data/test1234.pfx +0 -0
  114. metadata +54 -13
  115. data/lib/aspose_pdf_cloud/models/barcode_response_list.rb +0 -45
  116. data/lib/aspose_pdf_cloud/models/base_object.rb +0 -86
  117. data/lib/aspose_pdf_cloud/models/base_response.rb +0 -61
  118. data/lib/aspose_pdf_cloud/models/page_response.rb +0 -61
Binary file
Binary file
Binary file
Binary file
Binary file
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: 1.0.2
4
+ version: 18.2.0
5
5
  platform: ruby
6
6
  authors:
7
- - M. Sohail Ismail
7
+ - Aspose PDF for Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-06 00:00:00.000000000 Z
11
+ date: 2018-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -72,7 +72,7 @@ dependencies:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
74
  version: '5.8'
75
- description: 'Aspose.Pdf for Cloud is a REST API for creating and editing PDF files.
75
+ description: 'Aspose.PDF for Cloud is a REST API for creating and editing PDF files.
76
76
  It can also be used to convert PDF files to different formats like DOC, HTML, XPS,
77
77
  TIFF and many more. Aspose.Pdf for Cloud gives you control: create PDFs from scratch
78
78
  or from HTML, XML, template, database, XPS or an image. Render PDFs to image formats
@@ -82,11 +82,14 @@ description: 'Aspose.Pdf for Cloud is a REST API for creating and editing PDF fi
82
82
  using features like merging, splitting, and inserting. Add images to a PDF file
83
83
  or convert PDF pages to images.'
84
84
  email:
85
- - muhammad.sohail@aspose.com
85
+ - ''
86
86
  executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
+ - ".gitignore"
91
+ - ".swagger-codegen-ignore"
92
+ - ".swagger-codegen/VERSION"
90
93
  - LICENSE
91
94
  - README.md
92
95
  - aspose_pdf_cloud.gemspec
@@ -104,9 +107,6 @@ files:
104
107
  - lib/aspose_pdf_cloud/models/attachment_response.rb
105
108
  - lib/aspose_pdf_cloud/models/attachments.rb
106
109
  - lib/aspose_pdf_cloud/models/attachments_response.rb
107
- - lib/aspose_pdf_cloud/models/barcode_response_list.rb
108
- - lib/aspose_pdf_cloud/models/base_object.rb
109
- - lib/aspose_pdf_cloud/models/base_response.rb
110
110
  - lib/aspose_pdf_cloud/models/bookmarks.rb
111
111
  - lib/aspose_pdf_cloud/models/bookmarks_response.rb
112
112
  - lib/aspose_pdf_cloud/models/color.rb
@@ -120,45 +120,86 @@ files:
120
120
  - lib/aspose_pdf_cloud/models/document_text_replace_response.rb
121
121
  - lib/aspose_pdf_cloud/models/field.rb
122
122
  - lib/aspose_pdf_cloud/models/field_response.rb
123
+ - lib/aspose_pdf_cloud/models/field_type.rb
123
124
  - lib/aspose_pdf_cloud/models/fields.rb
124
125
  - lib/aspose_pdf_cloud/models/fields_response.rb
126
+ - lib/aspose_pdf_cloud/models/font_styles.rb
127
+ - lib/aspose_pdf_cloud/models/horizontal_alignment.rb
128
+ - lib/aspose_pdf_cloud/models/http_status_code.rb
125
129
  - lib/aspose_pdf_cloud/models/image.rb
126
130
  - lib/aspose_pdf_cloud/models/image_response.rb
127
131
  - lib/aspose_pdf_cloud/models/images.rb
132
+ - lib/aspose_pdf_cloud/models/images_list_request.rb
128
133
  - lib/aspose_pdf_cloud/models/images_response.rb
134
+ - lib/aspose_pdf_cloud/models/line_spacing.rb
129
135
  - lib/aspose_pdf_cloud/models/link.rb
136
+ - lib/aspose_pdf_cloud/models/link_action_type.rb
130
137
  - lib/aspose_pdf_cloud/models/link_annotation.rb
131
138
  - lib/aspose_pdf_cloud/models/link_annotation_response.rb
132
139
  - lib/aspose_pdf_cloud/models/link_annotations.rb
133
140
  - lib/aspose_pdf_cloud/models/link_annotations_response.rb
134
141
  - lib/aspose_pdf_cloud/models/link_element.rb
142
+ - lib/aspose_pdf_cloud/models/link_highlighting_mode.rb
135
143
  - lib/aspose_pdf_cloud/models/merge_documents.rb
144
+ - lib/aspose_pdf_cloud/models/optimize_options.rb
136
145
  - lib/aspose_pdf_cloud/models/page.rb
137
- - lib/aspose_pdf_cloud/models/page_response.rb
138
146
  - lib/aspose_pdf_cloud/models/page_text_replace_response.rb
139
147
  - lib/aspose_pdf_cloud/models/page_word_count.rb
140
148
  - lib/aspose_pdf_cloud/models/pages.rb
149
+ - lib/aspose_pdf_cloud/models/paragraph.rb
141
150
  - lib/aspose_pdf_cloud/models/rectangle.rb
151
+ - lib/aspose_pdf_cloud/models/rotation.rb
152
+ - lib/aspose_pdf_cloud/models/saa_spose_response.rb
153
+ - lib/aspose_pdf_cloud/models/segment.rb
142
154
  - lib/aspose_pdf_cloud/models/signature.rb
155
+ - lib/aspose_pdf_cloud/models/signature_type.rb
143
156
  - lib/aspose_pdf_cloud/models/split_result.rb
144
157
  - lib/aspose_pdf_cloud/models/split_result_document.rb
145
158
  - lib/aspose_pdf_cloud/models/split_result_response.rb
146
159
  - lib/aspose_pdf_cloud/models/stamp.rb
160
+ - lib/aspose_pdf_cloud/models/stamp_type.rb
147
161
  - lib/aspose_pdf_cloud/models/text_format.rb
148
162
  - lib/aspose_pdf_cloud/models/text_format_response.rb
163
+ - lib/aspose_pdf_cloud/models/text_horizontal_alignment.rb
149
164
  - lib/aspose_pdf_cloud/models/text_item.rb
150
165
  - lib/aspose_pdf_cloud/models/text_item_response.rb
151
166
  - lib/aspose_pdf_cloud/models/text_items.rb
152
167
  - lib/aspose_pdf_cloud/models/text_items_response.rb
168
+ - lib/aspose_pdf_cloud/models/text_line.rb
169
+ - lib/aspose_pdf_cloud/models/text_rect.rb
170
+ - lib/aspose_pdf_cloud/models/text_rects.rb
171
+ - lib/aspose_pdf_cloud/models/text_rects_response.rb
153
172
  - lib/aspose_pdf_cloud/models/text_replace.rb
154
173
  - lib/aspose_pdf_cloud/models/text_replace_list_request.rb
174
+ - lib/aspose_pdf_cloud/models/text_replace_request.rb
175
+ - lib/aspose_pdf_cloud/models/text_replace_response.rb
155
176
  - lib/aspose_pdf_cloud/models/text_state.rb
156
177
  - lib/aspose_pdf_cloud/models/tiff_export_options.rb
178
+ - lib/aspose_pdf_cloud/models/vertical_alignment.rb
157
179
  - lib/aspose_pdf_cloud/models/word_count.rb
158
180
  - lib/aspose_pdf_cloud/models/word_count_response.rb
181
+ - lib/aspose_pdf_cloud/models/wrap_mode.rb
159
182
  - lib/aspose_pdf_cloud/version.rb
160
183
  - test/pdf_tests.rb
161
- homepage: http://www.aspose.com/cloud/pdf-api.aspx
184
+ - test_data/33539.jpg
185
+ - test_data/44781.jpg
186
+ - test_data/4pages.pdf
187
+ - test_data/BlankWithSignature.pdf
188
+ - test_data/Hello_world.pdf
189
+ - test_data/HtmlExample1.html
190
+ - test_data/Koala.jpg
191
+ - test_data/PdfWithAcroForm.pdf
192
+ - test_data/PdfWithAnnotations.pdf
193
+ - test_data/PdfWithBookmarks.pdf
194
+ - test_data/PdfWithEmbeddedFiles.pdf
195
+ - test_data/PdfWithImages2.pdf
196
+ - test_data/PdfWithLinks.pdf
197
+ - test_data/Penguins.jpg
198
+ - test_data/butterfly.jpg
199
+ - test_data/marketing.pdf
200
+ - test_data/rusdoc.pdf
201
+ - test_data/test1234.pfx
202
+ homepage: https://products.aspose.cloud/pdf/cloud
162
203
  licenses:
163
204
  - MIT
164
205
  metadata: {}
@@ -170,7 +211,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
170
211
  requirements:
171
212
  - - ">="
172
213
  - !ruby/object:Gem::Version
173
- version: '0'
214
+ version: '1.9'
174
215
  required_rubygems_version: !ruby/object:Gem::Requirement
175
216
  requirements:
176
217
  - - ">="
@@ -178,9 +219,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
219
  version: '0'
179
220
  requirements: []
180
221
  rubyforge_project:
181
- rubygems_version: 2.6.8
222
+ rubygems_version: 2.7.3
182
223
  signing_key:
183
224
  specification_version: 4
184
- summary: Aspose.Pdf for Cloud
225
+ summary: Aspose.PDF for Cloud
185
226
  test_files:
186
227
  - test/pdf_tests.rb
@@ -1,45 +0,0 @@
1
- module AsposePDFCloud
2
- #
3
- class BarcodeResponseList < BaseObject
4
- attr_accessor :code, :status
5
- # attribute mapping from ruby-style variable name to JSON key
6
- def self.attribute_map
7
- {
8
-
9
- #
10
- :'code' => :'Code',
11
-
12
- #
13
- :'status' => :'Status'
14
-
15
- }
16
- end
17
-
18
- # attribute type
19
- def self.swagger_types
20
- {
21
- :'code' => :'String',
22
- :'status' => :'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[:'Code']
35
- self.code = attributes[:'Code']
36
- end
37
-
38
- if attributes[:'Status']
39
- self.status = attributes[:'Status']
40
- end
41
-
42
- end
43
-
44
- end
45
- end
@@ -1,86 +0,0 @@
1
- require 'date'
2
-
3
- module AsposePDFCloud
4
- # base class containing fundamental method such as to_hash, build_from_hash and more
5
- class BaseObject
6
-
7
- # build the object from hash
8
- def build_from_hash(attributes)
9
- return nil unless attributes.is_a?(Hash)
10
- self.class.swagger_types.each_pair do |key, type|
11
- if type =~ /^Array<(.*)>/i
12
- if attributes[self.class.attribute_map[key]].is_a?(Array)
13
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
14
- else
15
- #TODO show warning in debug mode
16
- end
17
- elsif !attributes[self.class.attribute_map[key]].nil?
18
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
19
- else
20
- # data not found in attributes(hash), not an issue as the data can be optional
21
- end
22
- end
23
-
24
- self
25
- end
26
-
27
- def _deserialize(type, value)
28
- case type.to_sym
29
- when :DateTime
30
- DateTime.parse(value)
31
- when :Date
32
- Date.parse(value)
33
- when :String
34
- value.to_s
35
- when :Integer
36
- value.to_i
37
- when :Float
38
- value.to_f
39
- when :BOOLEAN
40
- if value =~ /^(true|t|yes|y|1)$/i
41
- true
42
- else
43
- false
44
- end
45
- else # model
46
- _model = AsposePDFCloud.const_get(type).new
47
- _model.build_from_hash(value)
48
- end
49
- end
50
-
51
- def to_s
52
- to_hash.to_s
53
- end
54
-
55
- # to_body is an alias to to_body (backward compatibility))
56
- def to_body
57
- to_hash
58
- end
59
-
60
- # return the object in the form of hash
61
- def to_hash
62
- hash = {}
63
- self.class.attribute_map.each_pair do |attr, param|
64
- value = self.send(attr)
65
- next if value.nil?
66
- if value.is_a?(Array)
67
- hash[param] = value.compact.map{ |v| _to_hash(v) }
68
- else
69
- hash[param] = _to_hash(value)
70
- end
71
- end
72
- hash
73
- end
74
-
75
- # Method to output non-array value in the form of hash
76
- # For object, use to_hash. Otherwise, just return the value
77
- def _to_hash(value)
78
- if value.respond_to? :to_hash
79
- value.to_hash
80
- else
81
- value
82
- end
83
- end
84
-
85
- end
86
- end
@@ -1,61 +0,0 @@
1
- module AsposePDFCloud
2
- #
3
- class BaseResponse < BaseObject
4
- attr_accessor :status, :code, :message
5
- # attribute mapping from ruby-style variable name to JSON key
6
- def self.attribute_map
7
- {
8
-
9
- #
10
- :'status' => :'Status',
11
-
12
- #
13
- :'code' => :'Code',
14
-
15
- #
16
- :'message' => :'Message'
17
-
18
- }
19
- end
20
-
21
- # attribute type
22
- def self.swagger_types
23
- {
24
- :'status' => :'String',
25
- :'code' => :'String',
26
- :'message' => :'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[:'Status']
39
- self.status = attributes[:'Status']
40
- end
41
-
42
- if attributes[:'Code']
43
- self.code = attributes[:'Code']
44
- end
45
-
46
- if attributes[:'Message']
47
- self.message = attributes[:'Message']
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
@@ -1,61 +0,0 @@
1
- module AsposePDFCloud
2
- #
3
- class PageResponse < BaseObject
4
- attr_accessor :page, :status, :code
5
- # attribute mapping from ruby-style variable name to JSON key
6
- def self.attribute_map
7
- {
8
-
9
- #
10
- :'page' => :'Page',
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
- :'page' => :'Page',
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[:'Page']
39
- self.page = attributes[:'Page']
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