aspose_pdf_cloud 19.5.0 → 19.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +39 -26
- data/docs/Annotation.md +1 -1
- data/docs/AnnotationInfo.md +2 -2
- data/docs/Attachment.md +1 -1
- data/docs/Bookmark.md +25 -0
- data/docs/{FileExistResponse.md → BookmarkResponse.md} +3 -3
- data/docs/Bookmarks.md +10 -0
- data/docs/{DiscUsageResponse.md → BookmarksResponse.md} +3 -3
- data/docs/CaretAnnotation.md +1 -1
- data/docs/CellRecognized.md +1 -1
- data/docs/CircleAnnotation.md +1 -1
- data/docs/CommonFigureAnnotation.md +1 -1
- data/docs/DiscUsage.md +3 -3
- data/docs/DocumentPrivilege.md +1 -1
- data/docs/DocumentProperty.md +1 -1
- data/docs/Error.md +12 -0
- data/docs/ErrorDetails.md +10 -0
- data/docs/Field.md +1 -1
- data/docs/Fields.md +1 -1
- data/docs/FileAttachmentAnnotation.md +1 -1
- data/docs/FileVersion.md +8 -8
- data/docs/FileVersions.md +9 -0
- data/docs/FilesList.md +9 -0
- data/docs/FilesUploadResult.md +10 -0
- data/docs/FreeTextAnnotation.md +2 -2
- data/docs/GraphInfo.md +2 -2
- data/docs/HighlightAnnotation.md +1 -1
- data/docs/Image.md +3 -3
- data/docs/ImageFooter.md +1 -1
- data/docs/ImageHeader.md +1 -1
- data/docs/ImageStamp.md +1 -1
- data/docs/InkAnnotation.md +1 -1
- data/docs/LineAnnotation.md +3 -3
- data/docs/LinkAnnotation.md +4 -4
- data/docs/MarkupAnnotation.md +1 -1
- data/docs/MovieAnnotation.md +1 -1
- data/docs/ObjectExist.md +10 -0
- data/docs/Page.md +1 -1
- data/docs/PageNumberStamp.md +1 -1
- data/docs/PdfApi.md +560 -328
- data/docs/PdfPageStamp.md +1 -1
- data/docs/PolyAnnotation.md +2 -2
- data/docs/PolyLineAnnotation.md +2 -2
- data/docs/PolygonAnnotation.md +2 -2
- data/docs/PopupAnnotation.md +1 -1
- data/docs/PopupAnnotationWithParent.md +1 -1
- data/docs/RedactionAnnotation.md +1 -1
- data/docs/ScreenAnnotation.md +1 -1
- data/docs/Signature.md +1 -1
- data/docs/SignatureVerifyResponse.md +1 -1
- data/docs/SoundAnnotation.md +2 -2
- data/docs/SplitResultDocument.md +1 -1
- data/docs/SquareAnnotation.md +1 -1
- data/docs/SquigglyAnnotation.md +1 -1
- data/docs/Stamp.md +2 -2
- data/docs/StampAnnotation.md +1 -1
- data/docs/StampBase.md +1 -1
- data/docs/StampInfo.md +1 -1
- data/docs/StorageExist.md +9 -0
- data/docs/StorageFile.md +13 -0
- data/docs/StrikeOutAnnotation.md +1 -1
- data/docs/Table.md +1 -1
- data/docs/TextAnnotation.md +1 -1
- data/docs/TextFooter.md +2 -2
- data/docs/TextHeader.md +2 -2
- data/docs/TextRect.md +3 -3
- data/docs/TextReplaceListRequest.md +1 -1
- data/docs/TextReplaceResponse.md +1 -1
- data/docs/TextStamp.md +2 -2
- data/docs/UnderlineAnnotation.md +1 -1
- data/docs/WordCountResponse.md +1 -1
- data/lib/aspose_pdf_cloud.rb +12 -8
- data/lib/aspose_pdf_cloud/api/pdf_api.rb +2521 -1650
- data/lib/aspose_pdf_cloud/api_client.rb +2 -54
- data/lib/aspose_pdf_cloud/configuration.rb +2 -5
- data/lib/aspose_pdf_cloud/models/annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/annotation_info.rb +12 -4
- data/lib/aspose_pdf_cloud/models/annotations_info.rb +2 -4
- data/lib/aspose_pdf_cloud/models/annotations_info_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/aspose_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/attachment.rb +7 -4
- data/lib/aspose_pdf_cloud/models/attachment_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/attachments.rb +2 -4
- data/lib/aspose_pdf_cloud/models/attachments_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/{append_document.rb → bookmark.rb} +167 -42
- data/lib/aspose_pdf_cloud/models/{storage_exist_response.rb → bookmark_response.rb} +12 -13
- data/lib/aspose_pdf_cloud/models/{files_response.rb → bookmarks.rb} +22 -36
- data/lib/aspose_pdf_cloud/models/{disc_usage_response.rb → bookmarks_response.rb} +12 -13
- data/lib/aspose_pdf_cloud/models/border_info.rb +2 -4
- data/lib/aspose_pdf_cloud/models/caret_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/caret_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/caret_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/caret_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/cell.rb +2 -4
- data/lib/aspose_pdf_cloud/models/cell_recognized.rb +3 -5
- data/lib/aspose_pdf_cloud/models/circle_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/circle_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/circle_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/circle_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/color.rb +2 -4
- data/lib/aspose_pdf_cloud/models/common_figure_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/disc_usage.rb +5 -5
- data/lib/aspose_pdf_cloud/models/document.rb +2 -4
- data/lib/aspose_pdf_cloud/models/document_page_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/document_pages_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/document_privilege.rb +3 -5
- data/lib/aspose_pdf_cloud/models/document_properties.rb +2 -4
- data/lib/aspose_pdf_cloud/models/document_properties_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/document_property.rb +7 -4
- data/lib/aspose_pdf_cloud/models/document_property_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/document_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/{file_exist_response.rb → error.rb} +31 -27
- data/lib/aspose_pdf_cloud/models/error_details.rb +214 -0
- data/lib/aspose_pdf_cloud/models/field.rb +7 -4
- data/lib/aspose_pdf_cloud/models/field_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/fields.rb +7 -4
- data/lib/aspose_pdf_cloud/models/fields_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/file_attachment_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/file_attachment_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/file_attachment_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/file_attachment_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/file_version.rb +15 -5
- data/lib/aspose_pdf_cloud/models/file_versions.rb +201 -0
- data/lib/aspose_pdf_cloud/models/files_list.rb +201 -0
- data/lib/aspose_pdf_cloud/models/files_upload_result.rb +213 -0
- data/lib/aspose_pdf_cloud/models/free_text_annotation.rb +12 -4
- data/lib/aspose_pdf_cloud/models/free_text_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/free_text_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/free_text_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/graph_info.rb +4 -6
- data/lib/aspose_pdf_cloud/models/highlight_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/highlight_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/highlight_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/highlight_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/image.rb +17 -4
- data/lib/aspose_pdf_cloud/models/image_footer.rb +3 -5
- data/lib/aspose_pdf_cloud/models/image_header.rb +3 -5
- data/lib/aspose_pdf_cloud/models/image_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/image_stamp.rb +3 -5
- data/lib/aspose_pdf_cloud/models/image_template.rb +21 -4
- data/lib/aspose_pdf_cloud/models/image_templates_request.rb +2 -4
- data/lib/aspose_pdf_cloud/models/images.rb +2 -4
- data/lib/aspose_pdf_cloud/models/images_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/ink_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/ink_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/ink_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/ink_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/line_annotation.rb +17 -4
- data/lib/aspose_pdf_cloud/models/line_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/line_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/line_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/link.rb +2 -4
- data/lib/aspose_pdf_cloud/models/link_annotation.rb +41 -4
- data/lib/aspose_pdf_cloud/models/link_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/link_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/link_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/link_element.rb +2 -4
- data/lib/aspose_pdf_cloud/models/margin_info.rb +2 -4
- data/lib/aspose_pdf_cloud/models/markup_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/merge_documents.rb +2 -4
- data/lib/aspose_pdf_cloud/models/movie_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/movie_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/movie_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/movie_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/{file_exist.rb → object_exist.rb} +16 -16
- data/lib/aspose_pdf_cloud/models/optimize_options.rb +2 -4
- data/lib/aspose_pdf_cloud/models/page.rb +7 -4
- data/lib/aspose_pdf_cloud/models/page_number_stamp.rb +3 -5
- data/lib/aspose_pdf_cloud/models/page_word_count.rb +2 -4
- data/lib/aspose_pdf_cloud/models/pages.rb +2 -4
- data/lib/aspose_pdf_cloud/models/paragraph.rb +2 -4
- data/lib/aspose_pdf_cloud/models/pdf_page_stamp.rb +3 -5
- data/lib/aspose_pdf_cloud/models/point.rb +2 -4
- data/lib/aspose_pdf_cloud/models/poly_annotation.rb +12 -4
- data/lib/aspose_pdf_cloud/models/poly_line_annotation.rb +12 -4
- data/lib/aspose_pdf_cloud/models/poly_line_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/poly_line_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/poly_line_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/polygon_annotation.rb +12 -4
- data/lib/aspose_pdf_cloud/models/polygon_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/polygon_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/polygon_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/popup_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/popup_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/popup_annotation_with_parent.rb +7 -4
- data/lib/aspose_pdf_cloud/models/popup_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/popup_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/position.rb +2 -4
- data/lib/aspose_pdf_cloud/models/rectangle.rb +2 -4
- data/lib/aspose_pdf_cloud/models/redaction_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/redaction_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/redaction_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/redaction_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/row.rb +2 -4
- data/lib/aspose_pdf_cloud/models/row_recognized.rb +2 -4
- data/lib/aspose_pdf_cloud/models/screen_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/screen_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/screen_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/screen_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/segment.rb +21 -4
- data/lib/aspose_pdf_cloud/models/signature.rb +22 -5
- data/lib/aspose_pdf_cloud/models/signature_verify_response.rb +7 -4
- data/lib/aspose_pdf_cloud/models/sound_annotation.rb +31 -4
- data/lib/aspose_pdf_cloud/models/sound_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/sound_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/sound_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/split_result.rb +2 -4
- data/lib/aspose_pdf_cloud/models/split_result_document.rb +7 -4
- data/lib/aspose_pdf_cloud/models/split_result_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/square_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/square_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/square_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/square_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/squiggly_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/squiggly_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/squiggly_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/squiggly_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/stamp.rb +4 -6
- data/lib/aspose_pdf_cloud/models/stamp_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/stamp_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/stamp_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/stamp_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/stamp_base.rb +3 -5
- data/lib/aspose_pdf_cloud/models/stamp_info.rb +7 -4
- data/lib/aspose_pdf_cloud/models/stamps_info.rb +2 -4
- data/lib/aspose_pdf_cloud/models/stamps_info_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/storage_exist.rb +204 -0
- data/lib/aspose_pdf_cloud/models/{file.rb → storage_file.rb} +9 -6
- data/lib/aspose_pdf_cloud/models/strike_out_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/strike_out_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/strike_out_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/strike_out_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/table.rb +7 -4
- data/lib/aspose_pdf_cloud/models/table_recognized.rb +2 -4
- data/lib/aspose_pdf_cloud/models/table_recognized_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/tables_recognized.rb +2 -4
- data/lib/aspose_pdf_cloud/models/tables_recognized_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/text_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/text_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/text_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/text_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/text_footer.rb +4 -6
- data/lib/aspose_pdf_cloud/models/text_header.rb +4 -6
- data/lib/aspose_pdf_cloud/models/text_line.rb +2 -4
- data/lib/aspose_pdf_cloud/models/text_rect.rb +5 -7
- data/lib/aspose_pdf_cloud/models/text_rects.rb +2 -4
- data/lib/aspose_pdf_cloud/models/text_rects_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/text_replace.rb +40 -4
- data/lib/aspose_pdf_cloud/models/text_replace_list_request.rb +3 -4
- data/lib/aspose_pdf_cloud/models/text_replace_response.rb +7 -4
- data/lib/aspose_pdf_cloud/models/text_stamp.rb +4 -6
- data/lib/aspose_pdf_cloud/models/text_state.rb +2 -4
- data/lib/aspose_pdf_cloud/models/text_style.rb +2 -4
- data/lib/aspose_pdf_cloud/models/underline_annotation.rb +7 -4
- data/lib/aspose_pdf_cloud/models/underline_annotation_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/underline_annotations.rb +2 -4
- data/lib/aspose_pdf_cloud/models/underline_annotations_response.rb +2 -4
- data/lib/aspose_pdf_cloud/models/word_count.rb +2 -4
- data/lib/aspose_pdf_cloud/models/word_count_response.rb +3 -5
- data/lib/aspose_pdf_cloud/version.rb +1 -1
- data/test/pdf_tests.rb +175 -71
- data/test_data/sample.tex +105 -0
- metadata +27 -18
- data/docs/AppendDocument.md +0 -11
- data/docs/File.md +0 -13
- data/docs/FileExist.md +0 -10
- data/docs/FileVersionsResponse.md +0 -11
- data/docs/FilesResponse.md +0 -11
- data/docs/StorageExistResponse.md +0 -11
- data/lib/aspose_pdf_cloud/models/file_versions_response.rb +0 -227
@@ -74,6 +74,10 @@ module AsposePdfCloud
|
|
74
74
|
invalid_properties.push("invalid value for 'value', value cannot be nil.")
|
75
75
|
end
|
76
76
|
|
77
|
+
if @value.to_s.length < 1
|
78
|
+
invalid_properties.push("invalid value for 'value', the character length must be great than or equal to 1.")
|
79
|
+
end
|
80
|
+
|
77
81
|
return invalid_properties
|
78
82
|
end
|
79
83
|
|
@@ -81,9 +85,24 @@ module AsposePdfCloud
|
|
81
85
|
# @return true if the model is valid
|
82
86
|
def valid?
|
83
87
|
return false if @value.nil?
|
88
|
+
return false if @value.to_s.length < 1
|
84
89
|
return true
|
85
90
|
end
|
86
91
|
|
92
|
+
# Custom attribute writer method with validation
|
93
|
+
# @param [Object] value Value to be assigned
|
94
|
+
def value=(value)
|
95
|
+
if value.nil?
|
96
|
+
fail ArgumentError, "value cannot be nil"
|
97
|
+
end
|
98
|
+
|
99
|
+
if value.to_s.length < 1
|
100
|
+
fail ArgumentError, "invalid value for 'value', the character length must be great than or equal to 1."
|
101
|
+
end
|
102
|
+
|
103
|
+
@value = value
|
104
|
+
end
|
105
|
+
|
87
106
|
# Checks equality by comparing each attribute.
|
88
107
|
# @param [Object] Object to be compared
|
89
108
|
def ==(o)
|
@@ -132,11 +151,9 @@ module AsposePdfCloud
|
|
132
151
|
def _deserialize(type, value)
|
133
152
|
case type.to_sym
|
134
153
|
when :DateTime
|
135
|
-
|
136
|
-
Time.strptime(value, format).utc.to_datetime
|
154
|
+
DateTime.parse(value)
|
137
155
|
when :Date
|
138
|
-
|
139
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
156
|
+
Date.parse(value)
|
140
157
|
when :String
|
141
158
|
value.to_s
|
142
159
|
when :Integer
|
@@ -46,7 +46,7 @@ module AsposePdfCloud
|
|
46
46
|
# Gets or sets the location of the signature.
|
47
47
|
attr_accessor :location
|
48
48
|
|
49
|
-
# Gets or sets a value indicating whether this
|
49
|
+
# Gets or sets a value indicating whether this Signature is visible. Supports only when signing particular page.
|
50
50
|
attr_accessor :visible
|
51
51
|
|
52
52
|
# Gets or sets the visible rectangle of the signature. Supports only when signing particular page.
|
@@ -173,6 +173,10 @@ module AsposePdfCloud
|
|
173
173
|
invalid_properties.push("invalid value for 'signature_path', signature_path cannot be nil.")
|
174
174
|
end
|
175
175
|
|
176
|
+
if @signature_path.to_s.length < 1
|
177
|
+
invalid_properties.push("invalid value for 'signature_path', the character length must be great than or equal to 1.")
|
178
|
+
end
|
179
|
+
|
176
180
|
if @signature_type.nil?
|
177
181
|
invalid_properties.push("invalid value for 'signature_type', signature_type cannot be nil.")
|
178
182
|
end
|
@@ -192,12 +196,27 @@ module AsposePdfCloud
|
|
192
196
|
# @return true if the model is valid
|
193
197
|
def valid?
|
194
198
|
return false if @signature_path.nil?
|
199
|
+
return false if @signature_path.to_s.length < 1
|
195
200
|
return false if @signature_type.nil?
|
196
201
|
return false if @visible.nil?
|
197
202
|
return false if @show_properties.nil?
|
198
203
|
return true
|
199
204
|
end
|
200
205
|
|
206
|
+
# Custom attribute writer method with validation
|
207
|
+
# @param [Object] signature_path Value to be assigned
|
208
|
+
def signature_path=(signature_path)
|
209
|
+
if signature_path.nil?
|
210
|
+
fail ArgumentError, "signature_path cannot be nil"
|
211
|
+
end
|
212
|
+
|
213
|
+
if signature_path.to_s.length < 1
|
214
|
+
fail ArgumentError, "invalid value for 'signature_path', the character length must be great than or equal to 1."
|
215
|
+
end
|
216
|
+
|
217
|
+
@signature_path = signature_path
|
218
|
+
end
|
219
|
+
|
201
220
|
# Checks equality by comparing each attribute.
|
202
221
|
# @param [Object] Object to be compared
|
203
222
|
def ==(o)
|
@@ -257,11 +276,9 @@ module AsposePdfCloud
|
|
257
276
|
def _deserialize(type, value)
|
258
277
|
case type.to_sym
|
259
278
|
when :DateTime
|
260
|
-
|
261
|
-
Time.strptime(value, format).utc.to_datetime
|
279
|
+
DateTime.parse(value)
|
262
280
|
when :Date
|
263
|
-
|
264
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
281
|
+
Date.parse(value)
|
265
282
|
when :String
|
266
283
|
value.to_s
|
267
284
|
when :Integer
|
@@ -83,6 +83,10 @@ module AsposePdfCloud
|
|
83
83
|
invalid_properties.push("invalid value for 'code', code cannot be nil.")
|
84
84
|
end
|
85
85
|
|
86
|
+
if @valid.nil?
|
87
|
+
invalid_properties.push("invalid value for 'valid', valid cannot be nil.")
|
88
|
+
end
|
89
|
+
|
86
90
|
return invalid_properties
|
87
91
|
end
|
88
92
|
|
@@ -90,6 +94,7 @@ module AsposePdfCloud
|
|
90
94
|
# @return true if the model is valid
|
91
95
|
def valid?
|
92
96
|
return false if @code.nil?
|
97
|
+
return false if @valid.nil?
|
93
98
|
return true
|
94
99
|
end
|
95
100
|
|
@@ -142,11 +147,9 @@ module AsposePdfCloud
|
|
142
147
|
def _deserialize(type, value)
|
143
148
|
case type.to_sym
|
144
149
|
when :DateTime
|
145
|
-
|
146
|
-
Time.strptime(value, format).utc.to_datetime
|
150
|
+
DateTime.parse(value)
|
147
151
|
when :Date
|
148
|
-
|
149
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
152
|
+
Date.parse(value)
|
150
153
|
when :String
|
151
154
|
value.to_s
|
152
155
|
when :Integer
|
@@ -254,15 +254,44 @@ module AsposePdfCloud
|
|
254
254
|
# @return Array for valid properies with the reasons
|
255
255
|
def list_invalid_properties
|
256
256
|
invalid_properties = Array.new
|
257
|
+
if @rect.nil?
|
258
|
+
invalid_properties.push("invalid value for 'rect', rect cannot be nil.")
|
259
|
+
end
|
260
|
+
|
261
|
+
if @file_path.nil?
|
262
|
+
invalid_properties.push("invalid value for 'file_path', file_path cannot be nil.")
|
263
|
+
end
|
264
|
+
|
265
|
+
if @file_path.to_s.length < 1
|
266
|
+
invalid_properties.push("invalid value for 'file_path', the character length must be great than or equal to 1.")
|
267
|
+
end
|
268
|
+
|
257
269
|
return invalid_properties
|
258
270
|
end
|
259
271
|
|
260
272
|
# Check to see if the all the properties in the model are valid
|
261
273
|
# @return true if the model is valid
|
262
274
|
def valid?
|
275
|
+
return false if @rect.nil?
|
276
|
+
return false if @file_path.nil?
|
277
|
+
return false if @file_path.to_s.length < 1
|
263
278
|
return true
|
264
279
|
end
|
265
280
|
|
281
|
+
# Custom attribute writer method with validation
|
282
|
+
# @param [Object] file_path Value to be assigned
|
283
|
+
def file_path=(file_path)
|
284
|
+
if file_path.nil?
|
285
|
+
fail ArgumentError, "file_path cannot be nil"
|
286
|
+
end
|
287
|
+
|
288
|
+
if file_path.to_s.length < 1
|
289
|
+
fail ArgumentError, "invalid value for 'file_path', the character length must be great than or equal to 1."
|
290
|
+
end
|
291
|
+
|
292
|
+
@file_path = file_path
|
293
|
+
end
|
294
|
+
|
266
295
|
# Checks equality by comparing each attribute.
|
267
296
|
# @param [Object] Object to be compared
|
268
297
|
def ==(o)
|
@@ -331,11 +360,9 @@ module AsposePdfCloud
|
|
331
360
|
def _deserialize(type, value)
|
332
361
|
case type.to_sym
|
333
362
|
when :DateTime
|
334
|
-
|
335
|
-
Time.strptime(value, format).utc.to_datetime
|
363
|
+
DateTime.parse(value)
|
336
364
|
when :Date
|
337
|
-
|
338
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
365
|
+
Date.parse(value)
|
339
366
|
when :String
|
340
367
|
value.to_s
|
341
368
|
when :Integer
|
@@ -142,11 +142,9 @@ module AsposePdfCloud
|
|
142
142
|
def _deserialize(type, value)
|
143
143
|
case type.to_sym
|
144
144
|
when :DateTime
|
145
|
-
|
146
|
-
Time.strptime(value, format).utc.to_datetime
|
145
|
+
DateTime.parse(value)
|
147
146
|
when :Date
|
148
|
-
|
149
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
147
|
+
Date.parse(value)
|
150
148
|
when :String
|
151
149
|
value.to_s
|
152
150
|
when :Integer
|
@@ -131,11 +131,9 @@ module AsposePdfCloud
|
|
131
131
|
def _deserialize(type, value)
|
132
132
|
case type.to_sym
|
133
133
|
when :DateTime
|
134
|
-
|
135
|
-
Time.strptime(value, format).utc.to_datetime
|
134
|
+
DateTime.parse(value)
|
136
135
|
when :Date
|
137
|
-
|
138
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
136
|
+
Date.parse(value)
|
139
137
|
when :String
|
140
138
|
value.to_s
|
141
139
|
when :Integer
|
@@ -142,11 +142,9 @@ module AsposePdfCloud
|
|
142
142
|
def _deserialize(type, value)
|
143
143
|
case type.to_sym
|
144
144
|
when :DateTime
|
145
|
-
|
146
|
-
Time.strptime(value, format).utc.to_datetime
|
145
|
+
DateTime.parse(value)
|
147
146
|
when :Date
|
148
|
-
|
149
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
147
|
+
Date.parse(value)
|
150
148
|
when :String
|
151
149
|
value.to_s
|
152
150
|
when :Integer
|
@@ -119,11 +119,9 @@ module AsposePdfCloud
|
|
119
119
|
def _deserialize(type, value)
|
120
120
|
case type.to_sym
|
121
121
|
when :DateTime
|
122
|
-
|
123
|
-
Time.strptime(value, format).utc.to_datetime
|
122
|
+
DateTime.parse(value)
|
124
123
|
when :Date
|
125
|
-
|
126
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
124
|
+
Date.parse(value)
|
127
125
|
when :String
|
128
126
|
value.to_s
|
129
127
|
when :Integer
|
@@ -97,12 +97,17 @@ module AsposePdfCloud
|
|
97
97
|
# @return Array for valid properies with the reasons
|
98
98
|
def list_invalid_properties
|
99
99
|
invalid_properties = Array.new
|
100
|
+
if @id.nil?
|
101
|
+
invalid_properties.push("invalid value for 'id', id cannot be nil.")
|
102
|
+
end
|
103
|
+
|
100
104
|
return invalid_properties
|
101
105
|
end
|
102
106
|
|
103
107
|
# Check to see if the all the properties in the model are valid
|
104
108
|
# @return true if the model is valid
|
105
109
|
def valid?
|
110
|
+
return false if @id.nil?
|
106
111
|
return true
|
107
112
|
end
|
108
113
|
|
@@ -157,11 +162,9 @@ module AsposePdfCloud
|
|
157
162
|
def _deserialize(type, value)
|
158
163
|
case type.to_sym
|
159
164
|
when :DateTime
|
160
|
-
|
161
|
-
Time.strptime(value, format).utc.to_datetime
|
165
|
+
DateTime.parse(value)
|
162
166
|
when :Date
|
163
|
-
|
164
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
167
|
+
Date.parse(value)
|
165
168
|
when :String
|
166
169
|
value.to_s
|
167
170
|
when :Integer
|
@@ -142,11 +142,9 @@ module AsposePdfCloud
|
|
142
142
|
def _deserialize(type, value)
|
143
143
|
case type.to_sym
|
144
144
|
when :DateTime
|
145
|
-
|
146
|
-
Time.strptime(value, format).utc.to_datetime
|
145
|
+
DateTime.parse(value)
|
147
146
|
when :Date
|
148
|
-
|
149
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
147
|
+
Date.parse(value)
|
150
148
|
when :String
|
151
149
|
value.to_s
|
152
150
|
when :Integer
|
@@ -218,12 +218,17 @@ module AsposePdfCloud
|
|
218
218
|
# @return Array for valid properies with the reasons
|
219
219
|
def list_invalid_properties
|
220
220
|
invalid_properties = Array.new
|
221
|
+
if @rect.nil?
|
222
|
+
invalid_properties.push("invalid value for 'rect', rect cannot be nil.")
|
223
|
+
end
|
224
|
+
|
221
225
|
return invalid_properties
|
222
226
|
end
|
223
227
|
|
224
228
|
# Check to see if the all the properties in the model are valid
|
225
229
|
# @return true if the model is valid
|
226
230
|
def valid?
|
231
|
+
return false if @rect.nil?
|
227
232
|
return true
|
228
233
|
end
|
229
234
|
|
@@ -291,11 +296,9 @@ module AsposePdfCloud
|
|
291
296
|
def _deserialize(type, value)
|
292
297
|
case type.to_sym
|
293
298
|
when :DateTime
|
294
|
-
|
295
|
-
Time.strptime(value, format).utc.to_datetime
|
299
|
+
DateTime.parse(value)
|
296
300
|
when :Date
|
297
|
-
|
298
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
301
|
+
Date.parse(value)
|
299
302
|
when :String
|
300
303
|
value.to_s
|
301
304
|
when :Integer
|
@@ -142,11 +142,9 @@ module AsposePdfCloud
|
|
142
142
|
def _deserialize(type, value)
|
143
143
|
case type.to_sym
|
144
144
|
when :DateTime
|
145
|
-
|
146
|
-
Time.strptime(value, format).utc.to_datetime
|
145
|
+
DateTime.parse(value)
|
147
146
|
when :Date
|
148
|
-
|
149
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
147
|
+
Date.parse(value)
|
150
148
|
when :String
|
151
149
|
value.to_s
|
152
150
|
when :Integer
|
@@ -131,11 +131,9 @@ module AsposePdfCloud
|
|
131
131
|
def _deserialize(type, value)
|
132
132
|
case type.to_sym
|
133
133
|
when :DateTime
|
134
|
-
|
135
|
-
Time.strptime(value, format).utc.to_datetime
|
134
|
+
DateTime.parse(value)
|
136
135
|
when :Date
|
137
|
-
|
138
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
136
|
+
Date.parse(value)
|
139
137
|
when :String
|
140
138
|
value.to_s
|
141
139
|
when :Integer
|
@@ -142,11 +142,9 @@ module AsposePdfCloud
|
|
142
142
|
def _deserialize(type, value)
|
143
143
|
case type.to_sym
|
144
144
|
when :DateTime
|
145
|
-
|
146
|
-
Time.strptime(value, format).utc.to_datetime
|
145
|
+
DateTime.parse(value)
|
147
146
|
when :Date
|
148
|
-
|
149
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
147
|
+
Date.parse(value)
|
150
148
|
when :String
|
151
149
|
value.to_s
|
152
150
|
when :Integer
|
@@ -211,12 +211,17 @@ module AsposePdfCloud
|
|
211
211
|
# @return Array for valid properies with the reasons
|
212
212
|
def list_invalid_properties
|
213
213
|
invalid_properties = Array.new
|
214
|
+
if @rect.nil?
|
215
|
+
invalid_properties.push("invalid value for 'rect', rect cannot be nil.")
|
216
|
+
end
|
217
|
+
|
214
218
|
return invalid_properties
|
215
219
|
end
|
216
220
|
|
217
221
|
# Check to see if the all the properties in the model are valid
|
218
222
|
# @return true if the model is valid
|
219
223
|
def valid?
|
224
|
+
return false if @rect.nil?
|
220
225
|
return true
|
221
226
|
end
|
222
227
|
|
@@ -283,11 +288,9 @@ module AsposePdfCloud
|
|
283
288
|
def _deserialize(type, value)
|
284
289
|
case type.to_sym
|
285
290
|
when :DateTime
|
286
|
-
|
287
|
-
Time.strptime(value, format).utc.to_datetime
|
291
|
+
DateTime.parse(value)
|
288
292
|
when :Date
|
289
|
-
|
290
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
293
|
+
Date.parse(value)
|
291
294
|
when :String
|
292
295
|
value.to_s
|
293
296
|
when :Integer
|
@@ -142,11 +142,9 @@ module AsposePdfCloud
|
|
142
142
|
def _deserialize(type, value)
|
143
143
|
case type.to_sym
|
144
144
|
when :DateTime
|
145
|
-
|
146
|
-
Time.strptime(value, format).utc.to_datetime
|
145
|
+
DateTime.parse(value)
|
147
146
|
when :Date
|
148
|
-
|
149
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
147
|
+
Date.parse(value)
|
150
148
|
when :String
|
151
149
|
value.to_s
|
152
150
|
when :Integer
|
@@ -131,11 +131,9 @@ module AsposePdfCloud
|
|
131
131
|
def _deserialize(type, value)
|
132
132
|
case type.to_sym
|
133
133
|
when :DateTime
|
134
|
-
|
135
|
-
Time.strptime(value, format).utc.to_datetime
|
134
|
+
DateTime.parse(value)
|
136
135
|
when :Date
|
137
|
-
|
138
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
136
|
+
Date.parse(value)
|
139
137
|
when :String
|
140
138
|
value.to_s
|
141
139
|
when :Integer
|
@@ -142,11 +142,9 @@ module AsposePdfCloud
|
|
142
142
|
def _deserialize(type, value)
|
143
143
|
case type.to_sym
|
144
144
|
when :DateTime
|
145
|
-
|
146
|
-
Time.strptime(value, format).utc.to_datetime
|
145
|
+
DateTime.parse(value)
|
147
146
|
when :Date
|
148
|
-
|
149
|
-
Time.strptime(value, format).utc.to_datetime.to_date
|
147
|
+
Date.parse(value)
|
150
148
|
when :String
|
151
149
|
value.to_s
|
152
150
|
when :Integer
|