words_ruby_sdk 18.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/words_ruby_sdk.rb +225 -0
- data/lib/words_ruby_sdk/api/words_api.rb +10654 -0
- data/lib/words_ruby_sdk/api_client.rb +403 -0
- data/lib/words_ruby_sdk/api_error.rb +54 -0
- data/lib/words_ruby_sdk/configuration.rb +203 -0
- data/lib/words_ruby_sdk/models/aspose_response.rb +222 -0
- data/lib/words_ruby_sdk/models/bmp_save_options_data.rb +477 -0
- data/lib/words_ruby_sdk/models/bookmark.rb +227 -0
- data/lib/words_ruby_sdk/models/bookmark_data.rb +217 -0
- data/lib/words_ruby_sdk/models/bookmark_response.rb +232 -0
- data/lib/words_ruby_sdk/models/bookmarks.rb +219 -0
- data/lib/words_ruby_sdk/models/bookmarks_outline_level_data.rb +222 -0
- data/lib/words_ruby_sdk/models/bookmarks_response.rb +232 -0
- data/lib/words_ruby_sdk/models/border.rb +320 -0
- data/lib/words_ruby_sdk/models/border_response.rb +232 -0
- data/lib/words_ruby_sdk/models/borders_collection.rb +219 -0
- data/lib/words_ruby_sdk/models/borders_response.rb +232 -0
- data/lib/words_ruby_sdk/models/classification_response.rb +254 -0
- data/lib/words_ruby_sdk/models/classification_result.rb +222 -0
- data/lib/words_ruby_sdk/models/comment.rb +277 -0
- data/lib/words_ruby_sdk/models/comment_link.rb +207 -0
- data/lib/words_ruby_sdk/models/comment_response.rb +232 -0
- data/lib/words_ruby_sdk/models/comments_collection.rb +219 -0
- data/lib/words_ruby_sdk/models/comments_response.rb +232 -0
- data/lib/words_ruby_sdk/models/compare_data.rb +227 -0
- data/lib/words_ruby_sdk/models/doc_save_options_data.rb +307 -0
- data/lib/words_ruby_sdk/models/document.rb +311 -0
- data/lib/words_ruby_sdk/models/document_entry.rb +217 -0
- data/lib/words_ruby_sdk/models/document_entry_list.rb +209 -0
- data/lib/words_ruby_sdk/models/document_position.rb +217 -0
- data/lib/words_ruby_sdk/models/document_properties.rb +219 -0
- data/lib/words_ruby_sdk/models/document_properties_response.rb +232 -0
- data/lib/words_ruby_sdk/models/document_property.rb +237 -0
- data/lib/words_ruby_sdk/models/document_property_response.rb +232 -0
- data/lib/words_ruby_sdk/models/document_response.rb +232 -0
- data/lib/words_ruby_sdk/models/document_stat_data.rb +264 -0
- data/lib/words_ruby_sdk/models/downsample_options_data.rb +227 -0
- data/lib/words_ruby_sdk/models/drawing_object.rb +388 -0
- data/lib/words_ruby_sdk/models/drawing_object_collection.rb +219 -0
- data/lib/words_ruby_sdk/models/drawing_object_link.rb +217 -0
- data/lib/words_ruby_sdk/models/drawing_object_response.rb +232 -0
- data/lib/words_ruby_sdk/models/drawing_objects_response.rb +232 -0
- data/lib/words_ruby_sdk/models/emf_save_options_data.rb +477 -0
- data/lib/words_ruby_sdk/models/epub_save_options_data.rb +746 -0
- data/lib/words_ruby_sdk/models/field.rb +247 -0
- data/lib/words_ruby_sdk/models/field_collection.rb +219 -0
- data/lib/words_ruby_sdk/models/field_link.rb +227 -0
- data/lib/words_ruby_sdk/models/field_names.rb +219 -0
- data/lib/words_ruby_sdk/models/field_names_response.rb +232 -0
- data/lib/words_ruby_sdk/models/field_response.rb +232 -0
- data/lib/words_ruby_sdk/models/fields_response.rb +232 -0
- data/lib/words_ruby_sdk/models/file_link.rb +237 -0
- data/lib/words_ruby_sdk/models/fixed_page_save_options_data.rb +347 -0
- data/lib/words_ruby_sdk/models/font.rb +676 -0
- data/lib/words_ruby_sdk/models/font_response.rb +232 -0
- data/lib/words_ruby_sdk/models/footnote.rb +304 -0
- data/lib/words_ruby_sdk/models/footnote_collection.rb +219 -0
- data/lib/words_ruby_sdk/models/footnote_link.rb +217 -0
- data/lib/words_ruby_sdk/models/footnote_response.rb +232 -0
- data/lib/words_ruby_sdk/models/footnotes_response.rb +232 -0
- data/lib/words_ruby_sdk/models/footnotes_stat_data.rb +227 -0
- data/lib/words_ruby_sdk/models/form_field.rb +307 -0
- data/lib/words_ruby_sdk/models/form_field_checkbox.rb +337 -0
- data/lib/words_ruby_sdk/models/form_field_collection.rb +219 -0
- data/lib/words_ruby_sdk/models/form_field_drop_down.rb +329 -0
- data/lib/words_ruby_sdk/models/form_field_response.rb +232 -0
- data/lib/words_ruby_sdk/models/form_field_text_input.rb +384 -0
- data/lib/words_ruby_sdk/models/form_fields_response.rb +232 -0
- data/lib/words_ruby_sdk/models/gif_save_options_data.rb +477 -0
- data/lib/words_ruby_sdk/models/graphics_quality_options_data.rb +358 -0
- data/lib/words_ruby_sdk/models/header_footer.rb +274 -0
- data/lib/words_ruby_sdk/models/header_footer_link.rb +254 -0
- data/lib/words_ruby_sdk/models/header_footer_link_collection.rb +219 -0
- data/lib/words_ruby_sdk/models/header_footer_response.rb +232 -0
- data/lib/words_ruby_sdk/models/header_footers_response.rb +232 -0
- data/lib/words_ruby_sdk/models/html_fixed_save_options_data.rb +467 -0
- data/lib/words_ruby_sdk/models/html_save_options_data.rb +736 -0
- data/lib/words_ruby_sdk/models/hyperlink.rb +227 -0
- data/lib/words_ruby_sdk/models/hyperlink_response.rb +232 -0
- data/lib/words_ruby_sdk/models/hyperlinks.rb +219 -0
- data/lib/words_ruby_sdk/models/hyperlinks_response.rb +232 -0
- data/lib/words_ruby_sdk/models/image_save_options_data.rb +477 -0
- data/lib/words_ruby_sdk/models/jpeg_save_options_data.rb +477 -0
- data/lib/words_ruby_sdk/models/link.rb +237 -0
- data/lib/words_ruby_sdk/models/link_element.rb +207 -0
- data/lib/words_ruby_sdk/models/load_web_document_data.rb +217 -0
- data/lib/words_ruby_sdk/models/metafile_rendering_options_data.rb +227 -0
- data/lib/words_ruby_sdk/models/mhtml_save_options_data.rb +736 -0
- data/lib/words_ruby_sdk/models/modification_operation_result.rb +217 -0
- data/lib/words_ruby_sdk/models/node_link.rb +217 -0
- data/lib/words_ruby_sdk/models/odt_save_options_data.rb +354 -0
- data/lib/words_ruby_sdk/models/office_math_link.rb +217 -0
- data/lib/words_ruby_sdk/models/office_math_object.rb +326 -0
- data/lib/words_ruby_sdk/models/office_math_object_response.rb +232 -0
- data/lib/words_ruby_sdk/models/office_math_objects_collection.rb +219 -0
- data/lib/words_ruby_sdk/models/office_math_objects_response.rb +232 -0
- data/lib/words_ruby_sdk/models/ooxml_save_options_data.rb +317 -0
- data/lib/words_ruby_sdk/models/outline_options_data.rb +239 -0
- data/lib/words_ruby_sdk/models/page_number.rb +247 -0
- data/lib/words_ruby_sdk/models/page_setup.rb +646 -0
- data/lib/words_ruby_sdk/models/page_stat_data.rb +252 -0
- data/lib/words_ruby_sdk/models/paragraph.rb +229 -0
- data/lib/words_ruby_sdk/models/paragraph_insert.rb +207 -0
- data/lib/words_ruby_sdk/models/paragraph_link.rb +227 -0
- data/lib/words_ruby_sdk/models/paragraph_link_collection.rb +219 -0
- data/lib/words_ruby_sdk/models/paragraph_link_collection_response.rb +232 -0
- data/lib/words_ruby_sdk/models/paragraph_response.rb +232 -0
- data/lib/words_ruby_sdk/models/pcl_save_options_data.rb +367 -0
- data/lib/words_ruby_sdk/models/pdf_digital_signature_details_data.rb +247 -0
- data/lib/words_ruby_sdk/models/pdf_encryption_details_data.rb +237 -0
- data/lib/words_ruby_sdk/models/pdf_save_options_data.rb +567 -0
- data/lib/words_ruby_sdk/models/png_save_options_data.rb +477 -0
- data/lib/words_ruby_sdk/models/preferred_width.rb +259 -0
- data/lib/words_ruby_sdk/models/protection_data.rb +207 -0
- data/lib/words_ruby_sdk/models/protection_data_response.rb +242 -0
- data/lib/words_ruby_sdk/models/protection_request.rb +227 -0
- data/lib/words_ruby_sdk/models/protection_response.rb +242 -0
- data/lib/words_ruby_sdk/models/ps_save_options_data.rb +357 -0
- data/lib/words_ruby_sdk/models/replace_text_request.rb +262 -0
- data/lib/words_ruby_sdk/models/replace_text_response.rb +242 -0
- data/lib/words_ruby_sdk/models/requests/AcceptAllRevisionsRequest.rb +65 -0
- data/lib/words_ruby_sdk/models/requests/ClassifyDocumentRequest.rb +65 -0
- data/lib/words_ruby_sdk/models/requests/ClassifyRequest.rb +49 -0
- data/lib/words_ruby_sdk/models/requests/CreateOrUpdateDocumentPropertyRequest.rb +81 -0
- data/lib/words_ruby_sdk/models/requests/DeleteBorderRequest.rb +81 -0
- data/lib/words_ruby_sdk/models/requests/DeleteBordersRequest.rb +77 -0
- data/lib/words_ruby_sdk/models/requests/DeleteCommentRequest.rb +77 -0
- data/lib/words_ruby_sdk/models/requests/DeleteDocumentMacrosRequest.rb +73 -0
- data/lib/words_ruby_sdk/models/requests/DeleteDocumentPropertyRequest.rb +77 -0
- data/lib/words_ruby_sdk/models/requests/DeleteDocumentWatermarkRequest.rb +73 -0
- data/lib/words_ruby_sdk/models/requests/DeleteDrawingObjectRequest.rb +81 -0
- data/lib/words_ruby_sdk/models/requests/DeleteFieldRequest.rb +81 -0
- data/lib/words_ruby_sdk/models/requests/DeleteFieldsRequest.rb +77 -0
- data/lib/words_ruby_sdk/models/requests/DeleteFootnoteRequest.rb +81 -0
- data/lib/words_ruby_sdk/models/requests/DeleteFormFieldRequest.rb +81 -0
- data/lib/words_ruby_sdk/models/requests/DeleteHeaderFooterRequest.rb +81 -0
- data/lib/words_ruby_sdk/models/requests/DeleteHeadersFootersRequest.rb +81 -0
- data/lib/words_ruby_sdk/models/requests/DeleteOfficeMathObjectRequest.rb +81 -0
- data/lib/words_ruby_sdk/models/requests/DeleteParagraphRequest.rb +81 -0
- data/lib/words_ruby_sdk/models/requests/DeleteRunRequest.rb +81 -0
- data/lib/words_ruby_sdk/models/requests/DeleteTableCellRequest.rb +81 -0
- data/lib/words_ruby_sdk/models/requests/DeleteTableRequest.rb +81 -0
- data/lib/words_ruby_sdk/models/requests/DeleteTableRowRequest.rb +81 -0
- data/lib/words_ruby_sdk/models/requests/DeleteUnprotectDocumentRequest.rb +69 -0
- data/lib/words_ruby_sdk/models/requests/GetBorderRequest.rb +69 -0
- data/lib/words_ruby_sdk/models/requests/GetBordersRequest.rb +65 -0
- data/lib/words_ruby_sdk/models/requests/GetCommentRequest.rb +65 -0
- data/lib/words_ruby_sdk/models/requests/GetCommentsRequest.rb +61 -0
- data/lib/words_ruby_sdk/models/requests/GetDocumentBookmarkByNameRequest.rb +65 -0
- data/lib/words_ruby_sdk/models/requests/GetDocumentBookmarksRequest.rb +61 -0
- data/lib/words_ruby_sdk/models/requests/GetDocumentDrawingObjectByIndexRequest.rb +69 -0
- data/lib/words_ruby_sdk/models/requests/GetDocumentDrawingObjectImageDataRequest.rb +69 -0
- data/lib/words_ruby_sdk/models/requests/GetDocumentDrawingObjectOleDataRequest.rb +69 -0
- data/lib/words_ruby_sdk/models/requests/GetDocumentDrawingObjectsRequest.rb +65 -0
- data/lib/words_ruby_sdk/models/requests/GetDocumentFieldNamesRequest.rb +65 -0
- data/lib/words_ruby_sdk/models/requests/GetDocumentHyperlinkByIndexRequest.rb +65 -0
- data/lib/words_ruby_sdk/models/requests/GetDocumentHyperlinksRequest.rb +61 -0
- data/lib/words_ruby_sdk/models/requests/GetDocumentParagraphRequest.rb +69 -0
- data/lib/words_ruby_sdk/models/requests/GetDocumentParagraphRunFontRequest.rb +69 -0
- data/lib/words_ruby_sdk/models/requests/GetDocumentParagraphRunRequest.rb +69 -0
- data/lib/words_ruby_sdk/models/requests/GetDocumentParagraphRunsRequest.rb +65 -0
- data/lib/words_ruby_sdk/models/requests/GetDocumentParagraphsRequest.rb +65 -0
- data/lib/words_ruby_sdk/models/requests/GetDocumentPropertiesRequest.rb +61 -0
- data/lib/words_ruby_sdk/models/requests/GetDocumentPropertyRequest.rb +65 -0
- data/lib/words_ruby_sdk/models/requests/GetDocumentProtectionRequest.rb +61 -0
- data/lib/words_ruby_sdk/models/requests/GetDocumentRequest.rb +61 -0
- data/lib/words_ruby_sdk/models/requests/GetDocumentStatisticsRequest.rb +73 -0
- data/lib/words_ruby_sdk/models/requests/GetDocumentTextItemsRequest.rb +61 -0
- data/lib/words_ruby_sdk/models/requests/GetDocumentWithFormatRequest.rb +73 -0
- data/lib/words_ruby_sdk/models/requests/GetFieldRequest.rb +69 -0
- data/lib/words_ruby_sdk/models/requests/GetFieldsRequest.rb +65 -0
- data/lib/words_ruby_sdk/models/requests/GetFootnoteRequest.rb +69 -0
- data/lib/words_ruby_sdk/models/requests/GetFootnotesRequest.rb +65 -0
- data/lib/words_ruby_sdk/models/requests/GetFormFieldRequest.rb +69 -0
- data/lib/words_ruby_sdk/models/requests/GetFormFieldsRequest.rb +65 -0
- data/lib/words_ruby_sdk/models/requests/GetHeaderFooterOfSectionRequest.rb +73 -0
- data/lib/words_ruby_sdk/models/requests/GetHeaderFooterRequest.rb +69 -0
- data/lib/words_ruby_sdk/models/requests/GetHeaderFootersRequest.rb +69 -0
- data/lib/words_ruby_sdk/models/requests/GetOfficeMathObjectRequest.rb +69 -0
- data/lib/words_ruby_sdk/models/requests/GetOfficeMathObjectsRequest.rb +65 -0
- data/lib/words_ruby_sdk/models/requests/GetSectionPageSetupRequest.rb +65 -0
- data/lib/words_ruby_sdk/models/requests/GetSectionRequest.rb +65 -0
- data/lib/words_ruby_sdk/models/requests/GetSectionsRequest.rb +61 -0
- data/lib/words_ruby_sdk/models/requests/GetTableCellFormatRequest.rb +69 -0
- data/lib/words_ruby_sdk/models/requests/GetTableCellRequest.rb +69 -0
- data/lib/words_ruby_sdk/models/requests/GetTablePropertiesRequest.rb +69 -0
- data/lib/words_ruby_sdk/models/requests/GetTableRequest.rb +69 -0
- data/lib/words_ruby_sdk/models/requests/GetTableRowFormatRequest.rb +69 -0
- data/lib/words_ruby_sdk/models/requests/GetTableRowRequest.rb +69 -0
- data/lib/words_ruby_sdk/models/requests/GetTablesRequest.rb +65 -0
- data/lib/words_ruby_sdk/models/requests/InsertTableCellRequest.rb +81 -0
- data/lib/words_ruby_sdk/models/requests/InsertTableRequest.rb +81 -0
- data/lib/words_ruby_sdk/models/requests/InsertTableRowRequest.rb +81 -0
- data/lib/words_ruby_sdk/models/requests/PostAppendDocumentRequest.rb +77 -0
- data/lib/words_ruby_sdk/models/requests/PostChangeDocumentProtectionRequest.rb +69 -0
- data/lib/words_ruby_sdk/models/requests/PostCommentRequest.rb +81 -0
- data/lib/words_ruby_sdk/models/requests/PostCompareDocumentRequest.rb +69 -0
- data/lib/words_ruby_sdk/models/requests/PostDocumentExecuteMailMergeRequest.rb +85 -0
- data/lib/words_ruby_sdk/models/requests/PostDocumentParagraphRunFontRequest.rb +85 -0
- data/lib/words_ruby_sdk/models/requests/PostDocumentSaveAsRequest.rb +73 -0
- data/lib/words_ruby_sdk/models/requests/PostDrawingObjectRequest.rb +89 -0
- data/lib/words_ruby_sdk/models/requests/PostExecuteTemplateRequest.rb +81 -0
- data/lib/words_ruby_sdk/models/requests/PostFieldRequest.rb +85 -0
- data/lib/words_ruby_sdk/models/requests/PostFootnoteRequest.rb +85 -0
- data/lib/words_ruby_sdk/models/requests/PostFormFieldRequest.rb +85 -0
- data/lib/words_ruby_sdk/models/requests/PostInsertDocumentWatermarkImageRequest.rb +85 -0
- data/lib/words_ruby_sdk/models/requests/PostInsertDocumentWatermarkTextRequest.rb +77 -0
- data/lib/words_ruby_sdk/models/requests/PostInsertPageNumbersRequest.rb +77 -0
- data/lib/words_ruby_sdk/models/requests/PostLoadWebDocumentRequest.rb +49 -0
- data/lib/words_ruby_sdk/models/requests/PostReplaceTextRequest.rb +77 -0
- data/lib/words_ruby_sdk/models/requests/PostRunRequest.rb +85 -0
- data/lib/words_ruby_sdk/models/requests/PostSplitDocumentRequest.rb +85 -0
- data/lib/words_ruby_sdk/models/requests/PostUpdateDocumentBookmarkRequest.rb +81 -0
- data/lib/words_ruby_sdk/models/requests/PostUpdateDocumentFieldsRequest.rb +65 -0
- data/lib/words_ruby_sdk/models/requests/PutCommentRequest.rb +77 -0
- data/lib/words_ruby_sdk/models/requests/PutConvertDocumentRequest.rb +65 -0
- data/lib/words_ruby_sdk/models/requests/PutCreateDocumentRequest.rb +53 -0
- data/lib/words_ruby_sdk/models/requests/PutDocumentFieldNamesRequest.rb +49 -0
- data/lib/words_ruby_sdk/models/requests/PutDocumentSaveAsTiffRequest.rb +145 -0
- data/lib/words_ruby_sdk/models/requests/PutDrawingObjectRequest.rb +85 -0
- data/lib/words_ruby_sdk/models/requests/PutExecuteMailMergeOnlineRequest.rb +61 -0
- data/lib/words_ruby_sdk/models/requests/PutExecuteTemplateOnlineRequest.rb +65 -0
- data/lib/words_ruby_sdk/models/requests/PutFieldRequest.rb +85 -0
- data/lib/words_ruby_sdk/models/requests/PutFootnoteRequest.rb +81 -0
- data/lib/words_ruby_sdk/models/requests/PutFormFieldRequest.rb +85 -0
- data/lib/words_ruby_sdk/models/requests/PutHeaderFooterRequest.rb +81 -0
- data/lib/words_ruby_sdk/models/requests/PutParagraphRequest.rb +85 -0
- data/lib/words_ruby_sdk/models/requests/PutProtectDocumentRequest.rb +69 -0
- data/lib/words_ruby_sdk/models/requests/PutRunRequest.rb +85 -0
- data/lib/words_ruby_sdk/models/requests/RejectAllRevisionsRequest.rb +65 -0
- data/lib/words_ruby_sdk/models/requests/RenderDrawingObjectRequest.rb +77 -0
- data/lib/words_ruby_sdk/models/requests/RenderMathObjectRequest.rb +77 -0
- data/lib/words_ruby_sdk/models/requests/RenderPageRequest.rb +73 -0
- data/lib/words_ruby_sdk/models/requests/RenderParagraphRequest.rb +77 -0
- data/lib/words_ruby_sdk/models/requests/RenderTableRequest.rb +77 -0
- data/lib/words_ruby_sdk/models/requests/ResetCacheRequest.rb +36 -0
- data/lib/words_ruby_sdk/models/requests/SearchRequest.rb +65 -0
- data/lib/words_ruby_sdk/models/requests/UpdateBorderRequest.rb +85 -0
- data/lib/words_ruby_sdk/models/requests/UpdateSectionPageSetupRequest.rb +81 -0
- data/lib/words_ruby_sdk/models/requests/UpdateTableCellFormatRequest.rb +85 -0
- data/lib/words_ruby_sdk/models/requests/UpdateTablePropertiesRequest.rb +85 -0
- data/lib/words_ruby_sdk/models/requests/UpdateTableRowFormatRequest.rb +85 -0
- data/lib/words_ruby_sdk/models/revisions_modification_response.rb +232 -0
- data/lib/words_ruby_sdk/models/rtf_save_options_data.rb +317 -0
- data/lib/words_ruby_sdk/models/run.rb +227 -0
- data/lib/words_ruby_sdk/models/run_link.rb +227 -0
- data/lib/words_ruby_sdk/models/run_response.rb +232 -0
- data/lib/words_ruby_sdk/models/runs.rb +219 -0
- data/lib/words_ruby_sdk/models/runs_response.rb +232 -0
- data/lib/words_ruby_sdk/models/save_options_data.rb +287 -0
- data/lib/words_ruby_sdk/models/save_response.rb +232 -0
- data/lib/words_ruby_sdk/models/save_result.rb +229 -0
- data/lib/words_ruby_sdk/models/search_response.rb +242 -0
- data/lib/words_ruby_sdk/models/search_result.rb +217 -0
- data/lib/words_ruby_sdk/models/search_results_collection.rb +219 -0
- data/lib/words_ruby_sdk/models/section.rb +259 -0
- data/lib/words_ruby_sdk/models/section_link.rb +207 -0
- data/lib/words_ruby_sdk/models/section_link_collection.rb +219 -0
- data/lib/words_ruby_sdk/models/section_link_collection_response.rb +232 -0
- data/lib/words_ruby_sdk/models/section_page_setup_response.rb +232 -0
- data/lib/words_ruby_sdk/models/section_response.rb +232 -0
- data/lib/words_ruby_sdk/models/split_document_response.rb +232 -0
- data/lib/words_ruby_sdk/models/split_document_result.rb +229 -0
- data/lib/words_ruby_sdk/models/stat_data_response.rb +242 -0
- data/lib/words_ruby_sdk/models/story_child_nodes.rb +209 -0
- data/lib/words_ruby_sdk/models/string_format_data.rb +348 -0
- data/lib/words_ruby_sdk/models/svg_save_options_data.rb +407 -0
- data/lib/words_ruby_sdk/models/table.rb +239 -0
- data/lib/words_ruby_sdk/models/table_cell.rb +229 -0
- data/lib/words_ruby_sdk/models/table_cell_format.rb +412 -0
- data/lib/words_ruby_sdk/models/table_cell_format_response.rb +232 -0
- data/lib/words_ruby_sdk/models/table_cell_insert.rb +207 -0
- data/lib/words_ruby_sdk/models/table_cell_response.rb +232 -0
- data/lib/words_ruby_sdk/models/table_insert.rb +237 -0
- data/lib/words_ruby_sdk/models/table_link.rb +217 -0
- data/lib/words_ruby_sdk/models/table_link_collection.rb +219 -0
- data/lib/words_ruby_sdk/models/table_link_collection_response.rb +232 -0
- data/lib/words_ruby_sdk/models/table_properties.rb +432 -0
- data/lib/words_ruby_sdk/models/table_properties_response.rb +232 -0
- data/lib/words_ruby_sdk/models/table_response.rb +232 -0
- data/lib/words_ruby_sdk/models/table_row.rb +239 -0
- data/lib/words_ruby_sdk/models/table_row_format.rb +284 -0
- data/lib/words_ruby_sdk/models/table_row_format_response.rb +232 -0
- data/lib/words_ruby_sdk/models/table_row_insert.rb +222 -0
- data/lib/words_ruby_sdk/models/table_row_response.rb +232 -0
- data/lib/words_ruby_sdk/models/text_item.rb +217 -0
- data/lib/words_ruby_sdk/models/text_items.rb +219 -0
- data/lib/words_ruby_sdk/models/text_items_response.rb +232 -0
- data/lib/words_ruby_sdk/models/text_save_options_data.rb +347 -0
- data/lib/words_ruby_sdk/models/tiff_save_options_data.rb +497 -0
- data/lib/words_ruby_sdk/models/watermark_text.rb +222 -0
- data/lib/words_ruby_sdk/models/word_ml_save_options_data.rb +297 -0
- data/lib/words_ruby_sdk/models/words_api_error_response.rb +232 -0
- data/lib/words_ruby_sdk/models/words_api_link.rb +237 -0
- data/lib/words_ruby_sdk/models/xaml_fixed_save_options_data.rb +367 -0
- data/lib/words_ruby_sdk/models/xaml_flow_save_options_data.rb +307 -0
- data/lib/words_ruby_sdk/models/xml_color.rb +222 -0
- data/lib/words_ruby_sdk/models/xps_save_options_data.rb +387 -0
- data/lib/words_ruby_sdk/version.rb +29 -0
- metadata +412 -0
@@ -0,0 +1,254 @@
|
|
1
|
+
|
2
|
+
require 'date'
|
3
|
+
|
4
|
+
module WordsRubySdk
|
5
|
+
#
|
6
|
+
# --------------------------------------------------------------------------------------------------------------------
|
7
|
+
# <copyright company="Aspose" file="HeaderFooterLink.rb">
|
8
|
+
# Copyright (c) 2017 Aspose.Words for Cloud
|
9
|
+
# </copyright>
|
10
|
+
# <summary>
|
11
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
12
|
+
# of this software and associated documentation files (the "Software"), to deal
|
13
|
+
# in the Software without restriction, including without limitation the rights
|
14
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
15
|
+
# copies of the Software, and to permit persons to whom the Software is
|
16
|
+
# furnished to do so, subject to the following conditions:
|
17
|
+
#
|
18
|
+
# The above copyright notice and this permission notice shall be included in all
|
19
|
+
# copies or substantial portions of the Software.
|
20
|
+
#
|
21
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
22
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
23
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
24
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
25
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
26
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
27
|
+
# SOFTWARE.
|
28
|
+
# </summary>
|
29
|
+
# --------------------------------------------------------------------------------------------------------------------
|
30
|
+
#
|
31
|
+
|
32
|
+
# HeaderFooter link element
|
33
|
+
class HeaderFooterLink
|
34
|
+
# Link to the document.
|
35
|
+
attr_accessor :link
|
36
|
+
|
37
|
+
# Paragraph's text
|
38
|
+
attr_accessor :type
|
39
|
+
|
40
|
+
class EnumAttributeValidator
|
41
|
+
attr_reader :datatype
|
42
|
+
attr_reader :allowable_values
|
43
|
+
|
44
|
+
def initialize(datatype, allowable_values)
|
45
|
+
@allowable_values = allowable_values.map do |value|
|
46
|
+
case datatype.to_s
|
47
|
+
when /Integer/i
|
48
|
+
value.to_i
|
49
|
+
when /Float/i
|
50
|
+
value.to_f
|
51
|
+
else
|
52
|
+
value
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def valid?(value)
|
58
|
+
!value || allowable_values.include?(value)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
63
|
+
def self.attribute_map
|
64
|
+
{
|
65
|
+
:'link' => :'link',
|
66
|
+
:'type' => :'Type'
|
67
|
+
}
|
68
|
+
end
|
69
|
+
|
70
|
+
# Attribute type mapping.
|
71
|
+
def self.swagger_types
|
72
|
+
{
|
73
|
+
:'link' => :'WordsApiLink',
|
74
|
+
:'type' => :'String'
|
75
|
+
}
|
76
|
+
end
|
77
|
+
|
78
|
+
# Initializes the object
|
79
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
80
|
+
def initialize(attributes = {})
|
81
|
+
return unless attributes.is_a?(Hash)
|
82
|
+
|
83
|
+
# convert string to symbol for hash key
|
84
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
85
|
+
|
86
|
+
if attributes.key?(:'link')
|
87
|
+
self.link = attributes[:'link']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.key?(:'Type')
|
91
|
+
self.type = attributes[:'Type']
|
92
|
+
end
|
93
|
+
|
94
|
+
end
|
95
|
+
|
96
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
97
|
+
# @return Array for valid properies with the reasons
|
98
|
+
def list_invalid_properties
|
99
|
+
invalid_properties = []
|
100
|
+
return invalid_properties
|
101
|
+
end
|
102
|
+
|
103
|
+
# Check to see if the all the properties in the model are valid
|
104
|
+
# @return true if the model is valid
|
105
|
+
def valid?
|
106
|
+
type_validator = EnumAttributeValidator.new('String', %w["HeaderEven", "HeaderPrimary", "FooterEven", "FooterPrimary", "HeaderFirst", "FooterFirst"])
|
107
|
+
return false unless type_validator.valid?(@type)
|
108
|
+
return true
|
109
|
+
end
|
110
|
+
|
111
|
+
# Custom attribute writer method checking allowed values (enum).
|
112
|
+
# @param [Object] type Object to be assigned
|
113
|
+
def type=(type)
|
114
|
+
validator = EnumAttributeValidator.new('String', %w["HeaderEven", "HeaderPrimary", "FooterEven", "FooterPrimary", "HeaderFirst", "FooterFirst"])
|
115
|
+
if type.to_i == 0
|
116
|
+
unless validator.valid?(type)
|
117
|
+
raise ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}."
|
118
|
+
end
|
119
|
+
@type = type
|
120
|
+
else
|
121
|
+
@type = validator.allowable_values[type.to_i]
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
# Checks equality by comparing each attribute.
|
126
|
+
# @param [Object] Object to be compared
|
127
|
+
def ==(other)
|
128
|
+
return true if self.equal?(other)
|
129
|
+
self.class == other.class &&
|
130
|
+
link == other.link &&
|
131
|
+
type == other.type
|
132
|
+
end
|
133
|
+
|
134
|
+
# @see the `==` method
|
135
|
+
# @param [Object] Object to be compared
|
136
|
+
def eql?(other)
|
137
|
+
self == other
|
138
|
+
end
|
139
|
+
|
140
|
+
# Calculates hash code according to all attributes.
|
141
|
+
# @return [Fixnum] Hash code
|
142
|
+
def hash
|
143
|
+
[link, type].hash
|
144
|
+
end
|
145
|
+
|
146
|
+
# Builds the object from hash
|
147
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
148
|
+
# @return [Object] Returns the model itself
|
149
|
+
def build_from_hash(attributes)
|
150
|
+
return nil unless attributes.is_a?(Hash)
|
151
|
+
self.class.swagger_types.each_pair do |key, type|
|
152
|
+
if type =~ /\AArray<(.*)>/i
|
153
|
+
# check to ensure the input is an array given that the the attribute
|
154
|
+
# is documented as an array but the input is not
|
155
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
156
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
157
|
+
end
|
158
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
159
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
160
|
+
end
|
161
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
162
|
+
end
|
163
|
+
|
164
|
+
self
|
165
|
+
end
|
166
|
+
|
167
|
+
# Deserializes the data based on type
|
168
|
+
# @param string type Data type
|
169
|
+
# @param string value Value to be deserialized
|
170
|
+
# @return [Object] Deserialized data
|
171
|
+
def _deserialize(type, value)
|
172
|
+
case type.to_sym
|
173
|
+
when :DateTime
|
174
|
+
Time.at(/\d/.match(value)[0].to_f).to_datetime
|
175
|
+
when :Date
|
176
|
+
Time.at(/\d/.match(value)[0].to_f).to_date
|
177
|
+
when :String
|
178
|
+
value.to_s
|
179
|
+
when :Integer
|
180
|
+
value.to_i
|
181
|
+
when :Float
|
182
|
+
value.to_f
|
183
|
+
when :BOOLEAN
|
184
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
185
|
+
true
|
186
|
+
else
|
187
|
+
false
|
188
|
+
end
|
189
|
+
when :Object
|
190
|
+
# generic object (usually a Hash), return directly
|
191
|
+
value
|
192
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
193
|
+
inner_type = Regexp.last_match[:inner_type]
|
194
|
+
value.map { |v| _deserialize(inner_type, v) }
|
195
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
196
|
+
k_type = Regexp.last_match[:k_type]
|
197
|
+
v_type = Regexp.last_match[:v_type]
|
198
|
+
{}.tap do |hash|
|
199
|
+
value.each do |k, v|
|
200
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
201
|
+
end
|
202
|
+
end
|
203
|
+
else
|
204
|
+
# model
|
205
|
+
temp_model = WordsRubySdk.const_get(type).new
|
206
|
+
temp_model.build_from_hash(value)
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
# Returns the string representation of the object
|
211
|
+
# @return [String] String presentation of the object
|
212
|
+
def to_s
|
213
|
+
to_hash.to_s
|
214
|
+
end
|
215
|
+
|
216
|
+
# to_body is an alias to to_hash (backward compatibility)
|
217
|
+
# @return [Hash] Returns the object in the form of hash
|
218
|
+
def to_body
|
219
|
+
to_hash
|
220
|
+
end
|
221
|
+
|
222
|
+
# Returns the object in the form of hash
|
223
|
+
# @return [Hash] Returns the object in the form of hash
|
224
|
+
def to_hash
|
225
|
+
hash = {}
|
226
|
+
self.class.attribute_map.each_pair do |attr, param|
|
227
|
+
value = self.send(attr)
|
228
|
+
next if value.nil?
|
229
|
+
hash[param] = _to_hash(value)
|
230
|
+
end
|
231
|
+
hash
|
232
|
+
end
|
233
|
+
|
234
|
+
# Outputs non-array value in the form of hash
|
235
|
+
# For object, use to_hash. Otherwise, just return the value
|
236
|
+
# @param [Object] value Any valid value
|
237
|
+
# @return [Hash] Returns the value in the form of hash
|
238
|
+
def _to_hash(value)
|
239
|
+
if value.is_a?(Array)
|
240
|
+
value.compact.map { |v| _to_hash(v) }
|
241
|
+
elsif value.is_a?(Hash)
|
242
|
+
{}.tap do |hash|
|
243
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
244
|
+
end
|
245
|
+
elsif value.respond_to? :to_hash
|
246
|
+
value.to_hash
|
247
|
+
else
|
248
|
+
value
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
252
|
+
end
|
253
|
+
|
254
|
+
end
|
@@ -0,0 +1,219 @@
|
|
1
|
+
|
2
|
+
require 'date'
|
3
|
+
|
4
|
+
module WordsRubySdk
|
5
|
+
#
|
6
|
+
# --------------------------------------------------------------------------------------------------------------------
|
7
|
+
# <copyright company="Aspose" file="HeaderFooterLinkCollection.rb">
|
8
|
+
# Copyright (c) 2017 Aspose.Words for Cloud
|
9
|
+
# </copyright>
|
10
|
+
# <summary>
|
11
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
12
|
+
# of this software and associated documentation files (the "Software"), to deal
|
13
|
+
# in the Software without restriction, including without limitation the rights
|
14
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
15
|
+
# copies of the Software, and to permit persons to whom the Software is
|
16
|
+
# furnished to do so, subject to the following conditions:
|
17
|
+
#
|
18
|
+
# The above copyright notice and this permission notice shall be included in all
|
19
|
+
# copies or substantial portions of the Software.
|
20
|
+
#
|
21
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
22
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
23
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
24
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
25
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
26
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
27
|
+
# SOFTWARE.
|
28
|
+
# </summary>
|
29
|
+
# --------------------------------------------------------------------------------------------------------------------
|
30
|
+
#
|
31
|
+
|
32
|
+
# Collection of links to header/footers
|
33
|
+
class HeaderFooterLinkCollection
|
34
|
+
# Link to the document.
|
35
|
+
attr_accessor :link
|
36
|
+
|
37
|
+
# Collection of section's links
|
38
|
+
attr_accessor :list
|
39
|
+
|
40
|
+
|
41
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
42
|
+
def self.attribute_map
|
43
|
+
{
|
44
|
+
:'link' => :'link',
|
45
|
+
:'list' => :'List'
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# Attribute type mapping.
|
50
|
+
def self.swagger_types
|
51
|
+
{
|
52
|
+
:'link' => :'WordsApiLink',
|
53
|
+
:'list' => :'Array<HeaderFooterLink>'
|
54
|
+
}
|
55
|
+
end
|
56
|
+
|
57
|
+
# Initializes the object
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
59
|
+
def initialize(attributes = {})
|
60
|
+
return unless attributes.is_a?(Hash)
|
61
|
+
|
62
|
+
# convert string to symbol for hash key
|
63
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
64
|
+
|
65
|
+
if attributes.key?(:'link')
|
66
|
+
self.link = attributes[:'link']
|
67
|
+
end
|
68
|
+
|
69
|
+
if attributes.key?(:'List')
|
70
|
+
if (value = attributes[:'List']).is_a?(Array)
|
71
|
+
self.list = value
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
end
|
76
|
+
|
77
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
78
|
+
# @return Array for valid properies with the reasons
|
79
|
+
def list_invalid_properties
|
80
|
+
invalid_properties = []
|
81
|
+
return invalid_properties
|
82
|
+
end
|
83
|
+
|
84
|
+
# Check to see if the all the properties in the model are valid
|
85
|
+
# @return true if the model is valid
|
86
|
+
def valid?
|
87
|
+
return true
|
88
|
+
end
|
89
|
+
|
90
|
+
# Checks equality by comparing each attribute.
|
91
|
+
# @param [Object] Object to be compared
|
92
|
+
def ==(other)
|
93
|
+
return true if self.equal?(other)
|
94
|
+
self.class == other.class &&
|
95
|
+
link == other.link &&
|
96
|
+
list == other.list
|
97
|
+
end
|
98
|
+
|
99
|
+
# @see the `==` method
|
100
|
+
# @param [Object] Object to be compared
|
101
|
+
def eql?(other)
|
102
|
+
self == other
|
103
|
+
end
|
104
|
+
|
105
|
+
# Calculates hash code according to all attributes.
|
106
|
+
# @return [Fixnum] Hash code
|
107
|
+
def hash
|
108
|
+
[link, list].hash
|
109
|
+
end
|
110
|
+
|
111
|
+
# Builds the object from hash
|
112
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
113
|
+
# @return [Object] Returns the model itself
|
114
|
+
def build_from_hash(attributes)
|
115
|
+
return nil unless attributes.is_a?(Hash)
|
116
|
+
self.class.swagger_types.each_pair do |key, type|
|
117
|
+
if type =~ /\AArray<(.*)>/i
|
118
|
+
# check to ensure the input is an array given that the the attribute
|
119
|
+
# is documented as an array but the input is not
|
120
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
121
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
122
|
+
end
|
123
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
124
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
125
|
+
end
|
126
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
127
|
+
end
|
128
|
+
|
129
|
+
self
|
130
|
+
end
|
131
|
+
|
132
|
+
# Deserializes the data based on type
|
133
|
+
# @param string type Data type
|
134
|
+
# @param string value Value to be deserialized
|
135
|
+
# @return [Object] Deserialized data
|
136
|
+
def _deserialize(type, value)
|
137
|
+
case type.to_sym
|
138
|
+
when :DateTime
|
139
|
+
Time.at(/\d/.match(value)[0].to_f).to_datetime
|
140
|
+
when :Date
|
141
|
+
Time.at(/\d/.match(value)[0].to_f).to_date
|
142
|
+
when :String
|
143
|
+
value.to_s
|
144
|
+
when :Integer
|
145
|
+
value.to_i
|
146
|
+
when :Float
|
147
|
+
value.to_f
|
148
|
+
when :BOOLEAN
|
149
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
150
|
+
true
|
151
|
+
else
|
152
|
+
false
|
153
|
+
end
|
154
|
+
when :Object
|
155
|
+
# generic object (usually a Hash), return directly
|
156
|
+
value
|
157
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
158
|
+
inner_type = Regexp.last_match[:inner_type]
|
159
|
+
value.map { |v| _deserialize(inner_type, v) }
|
160
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
161
|
+
k_type = Regexp.last_match[:k_type]
|
162
|
+
v_type = Regexp.last_match[:v_type]
|
163
|
+
{}.tap do |hash|
|
164
|
+
value.each do |k, v|
|
165
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
166
|
+
end
|
167
|
+
end
|
168
|
+
else
|
169
|
+
# model
|
170
|
+
temp_model = WordsRubySdk.const_get(type).new
|
171
|
+
temp_model.build_from_hash(value)
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
# Returns the string representation of the object
|
176
|
+
# @return [String] String presentation of the object
|
177
|
+
def to_s
|
178
|
+
to_hash.to_s
|
179
|
+
end
|
180
|
+
|
181
|
+
# to_body is an alias to to_hash (backward compatibility)
|
182
|
+
# @return [Hash] Returns the object in the form of hash
|
183
|
+
def to_body
|
184
|
+
to_hash
|
185
|
+
end
|
186
|
+
|
187
|
+
# Returns the object in the form of hash
|
188
|
+
# @return [Hash] Returns the object in the form of hash
|
189
|
+
def to_hash
|
190
|
+
hash = {}
|
191
|
+
self.class.attribute_map.each_pair do |attr, param|
|
192
|
+
value = self.send(attr)
|
193
|
+
next if value.nil?
|
194
|
+
hash[param] = _to_hash(value)
|
195
|
+
end
|
196
|
+
hash
|
197
|
+
end
|
198
|
+
|
199
|
+
# Outputs non-array value in the form of hash
|
200
|
+
# For object, use to_hash. Otherwise, just return the value
|
201
|
+
# @param [Object] value Any valid value
|
202
|
+
# @return [Hash] Returns the value in the form of hash
|
203
|
+
def _to_hash(value)
|
204
|
+
if value.is_a?(Array)
|
205
|
+
value.compact.map { |v| _to_hash(v) }
|
206
|
+
elsif value.is_a?(Hash)
|
207
|
+
{}.tap do |hash|
|
208
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
209
|
+
end
|
210
|
+
elsif value.respond_to? :to_hash
|
211
|
+
value.to_hash
|
212
|
+
else
|
213
|
+
value
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
end
|
218
|
+
|
219
|
+
end
|