cloudmersive-convert-api-client 2.0.6 → 2.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +7 -0
- data/README.md +579 -0
- data/Rakefile +8 -0
- data/cloudmersive-convert-api-client.gemspec +45 -0
- data/docs/AddPdfAnnotationRequest.md +9 -0
- data/docs/AlternateFileFormatCandidate.md +10 -0
- data/docs/AppendXlsxRowRequest.md +11 -0
- data/docs/AppendXlsxRowResponse.md +9 -0
- data/docs/AutodetectDocumentValidationResult.md +12 -0
- data/docs/AutodetectGetInfoResult.md +14 -0
- data/docs/AutodetectToJpgResult.md +9 -0
- data/docs/AutodetectToPngResult.md +9 -0
- data/docs/AutodetectToThumbnailsResult.md +9 -0
- data/docs/Base64DecodeRequest.md +8 -0
- data/docs/Base64DecodeResponse.md +9 -0
- data/docs/Base64DetectRequest.md +8 -0
- data/docs/Base64DetectResponse.md +9 -0
- data/docs/Base64EncodeRequest.md +8 -0
- data/docs/Base64EncodeResponse.md +9 -0
- data/docs/ChangeLineEndingResponse.md +9 -0
- data/docs/ClearXlsxCellRequest.md +12 -0
- data/docs/ClearXlsxCellResponse.md +9 -0
- data/docs/ClearXlsxRowRequest.md +11 -0
- data/docs/ClearXlsxRowResponse.md +9 -0
- data/docs/CompareDocumentApi.md +66 -0
- data/docs/ConvertDataApi.md +902 -0
- data/docs/ConvertDocumentApi.md +4344 -0
- data/docs/ConvertImageApi.md +243 -0
- data/docs/ConvertTemplateApi.md +122 -0
- data/docs/ConvertWebApi.md +448 -0
- data/docs/ConvertedJpgPage.md +9 -0
- data/docs/ConvertedPngPage.md +9 -0
- data/docs/CreateBlankDocxRequest.md +8 -0
- data/docs/CreateBlankDocxResponse.md +9 -0
- data/docs/CreateBlankSpreadsheetRequest.md +8 -0
- data/docs/CreateBlankSpreadsheetResponse.md +9 -0
- data/docs/CreateSpreadsheetFromDataRequest.md +9 -0
- data/docs/CreateSpreadsheetFromDataResponse.md +9 -0
- data/docs/CreateZipArchiveRequest.md +9 -0
- data/docs/CsvCollection.md +10 -0
- data/docs/CsvFileResult.md +9 -0
- data/docs/DeleteDocxTableRowRangeRequest.md +12 -0
- data/docs/DeleteDocxTableRowRangeResponse.md +9 -0
- data/docs/DeleteDocxTableRowRequest.md +11 -0
- data/docs/DeleteDocxTableRowResponse.md +9 -0
- data/docs/DetectLineEndingsResponse.md +11 -0
- data/docs/DisableSharedWorkbookRequest.md +9 -0
- data/docs/DisableSharedWorkbookResponse.md +9 -0
- data/docs/DocumentValidationError.md +11 -0
- data/docs/DocumentValidationResult.md +12 -0
- data/docs/DocxBody.md +10 -0
- data/docs/DocxCellStyle.md +11 -0
- data/docs/DocxComment.md +16 -0
- data/docs/DocxFooter.md +10 -0
- data/docs/DocxHeader.md +10 -0
- data/docs/DocxImage.md +20 -0
- data/docs/DocxInsertCommentOnParagraphRequest.md +11 -0
- data/docs/DocxInsertImageRequest.md +16 -0
- data/docs/DocxInsertImageResponse.md +9 -0
- data/docs/DocxPage.md +9 -0
- data/docs/DocxParagraph.md +11 -0
- data/docs/DocxRemoveObjectRequest.md +10 -0
- data/docs/DocxRemoveObjectResponse.md +9 -0
- data/docs/DocxRun.md +15 -0
- data/docs/DocxSection.md +9 -0
- data/docs/DocxSetFooterAddPageNumberRequest.md +10 -0
- data/docs/DocxSetFooterRequest.md +10 -0
- data/docs/DocxSetFooterResponse.md +9 -0
- data/docs/DocxSetHeaderRequest.md +10 -0
- data/docs/DocxSetHeaderResponse.md +9 -0
- data/docs/DocxStyle.md +14 -0
- data/docs/DocxTable.md +46 -0
- data/docs/DocxTableCell.md +15 -0
- data/docs/DocxTableRow.md +10 -0
- data/docs/DocxTemplateApplicationRequest.md +8 -0
- data/docs/DocxTemplateOperation.md +10 -0
- data/docs/DocxText.md +10 -0
- data/docs/DocxToJpgResult.md +9 -0
- data/docs/DocxToPngResult.md +9 -0
- data/docs/DocxTopLevelComment.md +14 -0
- data/docs/EditDocumentApi.md +3033 -0
- data/docs/EditHtmlApi.md +261 -0
- data/docs/EditPdfApi.md +1083 -0
- data/docs/EditTextApi.md +726 -0
- data/docs/EmlAttachment.md +9 -0
- data/docs/EmlToHtmlResult.md +16 -0
- data/docs/EmlToJpgResult.md +9 -0
- data/docs/EmlToPngResult.md +9 -0
- data/docs/EnableSharedWorkbookRequest.md +9 -0
- data/docs/EnableSharedWorkbookResponse.md +9 -0
- data/docs/ExifValue.md +10 -0
- data/docs/FindDocxParagraphRequest.md +11 -0
- data/docs/FindDocxParagraphResponse.md +10 -0
- data/docs/FindRegexMatch.md +12 -0
- data/docs/FindStringMatch.md +10 -0
- data/docs/FindStringRegexRequest.md +10 -0
- data/docs/FindStringRegexResponse.md +10 -0
- data/docs/FindStringSimpleRequest.md +9 -0
- data/docs/FindStringSimpleResponse.md +10 -0
- data/docs/FinishEditingRequest.md +8 -0
- data/docs/GetDocxBodyRequest.md +9 -0
- data/docs/GetDocxBodyResponse.md +9 -0
- data/docs/GetDocxCommentsHierarchicalResponse.md +10 -0
- data/docs/GetDocxCommentsResponse.md +10 -0
- data/docs/GetDocxGetCommentsHierarchicalRequest.md +9 -0
- data/docs/GetDocxGetCommentsRequest.md +9 -0
- data/docs/GetDocxHeadersAndFootersRequest.md +9 -0
- data/docs/GetDocxHeadersAndFootersResponse.md +10 -0
- data/docs/GetDocxImagesRequest.md +9 -0
- data/docs/GetDocxImagesResponse.md +9 -0
- data/docs/GetDocxPagesRequest.md +10 -0
- data/docs/GetDocxPagesResponse.md +10 -0
- data/docs/GetDocxSectionsRequest.md +9 -0
- data/docs/GetDocxSectionsResponse.md +9 -0
- data/docs/GetDocxStylesRequest.md +9 -0
- data/docs/GetDocxStylesResponse.md +9 -0
- data/docs/GetDocxTableByIndexRequest.md +10 -0
- data/docs/GetDocxTableByIndexResponse.md +9 -0
- data/docs/GetDocxTableRowRequest.md +11 -0
- data/docs/GetDocxTableRowResponse.md +9 -0
- data/docs/GetDocxTablesRequest.md +9 -0
- data/docs/GetDocxTablesResponse.md +9 -0
- data/docs/GetFileTypeIconResult.md +10 -0
- data/docs/GetImageInfoResult.md +24 -0
- data/docs/GetPdfAnnotationsResult.md +9 -0
- data/docs/GetXlsxCellByIdentifierRequest.md +11 -0
- data/docs/GetXlsxCellByIdentifierResponse.md +9 -0
- data/docs/GetXlsxCellRequest.md +12 -0
- data/docs/GetXlsxCellResponse.md +9 -0
- data/docs/GetXlsxColumnsRequest.md +10 -0
- data/docs/GetXlsxColumnsResponse.md +9 -0
- data/docs/GetXlsxImagesRequest.md +10 -0
- data/docs/GetXlsxImagesResponse.md +9 -0
- data/docs/GetXlsxRowsAndCellsRequest.md +10 -0
- data/docs/GetXlsxRowsAndCellsResponse.md +9 -0
- data/docs/GetXlsxSpecificRowRequest.md +11 -0
- data/docs/GetXlsxSpecificRowResponse.md +9 -0
- data/docs/GetXlsxStylesRequest.md +9 -0
- data/docs/GetXlsxStylesResponse.md +9 -0
- data/docs/GetXlsxWorksheetsRequest.md +9 -0
- data/docs/GetXlsxWorksheetsResponse.md +9 -0
- data/docs/HtmlMdResult.md +9 -0
- data/docs/HtmlTemplateApplicationRequest.md +10 -0
- data/docs/HtmlTemplateApplicationResponse.md +9 -0
- data/docs/HtmlTemplateOperation.md +10 -0
- data/docs/HtmlToOfficeRequest.md +8 -0
- data/docs/HtmlToPdfRequest.md +11 -0
- data/docs/HtmlToPngRequest.md +11 -0
- data/docs/HtmlToTextRequest.md +8 -0
- data/docs/HtmlToTextResponse.md +9 -0
- data/docs/InsertDocxCommentOnParagraphResponse.md +9 -0
- data/docs/InsertDocxInsertParagraphRequest.md +12 -0
- data/docs/InsertDocxInsertParagraphResponse.md +9 -0
- data/docs/InsertDocxTableRowRequest.md +12 -0
- data/docs/InsertDocxTableRowResponse.md +9 -0
- data/docs/InsertDocxTablesRequest.md +12 -0
- data/docs/InsertDocxTablesResponse.md +9 -0
- data/docs/InsertXlsxWorksheetRequest.md +10 -0
- data/docs/InsertXlsxWorksheetResponse.md +9 -0
- data/docs/KeynoteToJpgResult.md +9 -0
- data/docs/KeynoteToPngResult.md +9 -0
- data/docs/MergeDocumentApi.md +812 -0
- data/docs/MsgAttachment.md +9 -0
- data/docs/MsgToHtmlResult.md +16 -0
- data/docs/MsgToJpgResult.md +9 -0
- data/docs/MsgToPngResult.md +9 -0
- data/docs/MultiReplaceStringRequest.md +10 -0
- data/docs/MultipageImageFormatConversionResult.md +10 -0
- data/docs/OdpToJpgResult.md +9 -0
- data/docs/OdpToPngResult.md +9 -0
- data/docs/OdsToJpgResult.md +9 -0
- data/docs/OdsToPngResult.md +9 -0
- data/docs/OdtToJpgResult.md +9 -0
- data/docs/OdtToPngResult.md +9 -0
- data/docs/PageConversionResult.md +9 -0
- data/docs/PdfAnnotation.md +19 -0
- data/docs/PdfDocument.md +10 -0
- data/docs/PdfFormField.md +11 -0
- data/docs/PdfFormFields.md +9 -0
- data/docs/PdfMetadata.md +16 -0
- data/docs/PdfPageText.md +9 -0
- data/docs/PdfTextByPageResult.md +9 -0
- data/docs/PdfToJpgResult.md +9 -0
- data/docs/PdfToPngResult.md +9 -0
- data/docs/PptxToPngResult.md +9 -0
- data/docs/PresentationResult.md +10 -0
- data/docs/RemoveDocxHeadersAndFootersRequest.md +11 -0
- data/docs/RemoveDocxHeadersAndFootersResponse.md +9 -0
- data/docs/RemoveDocxPagesRequest.md +11 -0
- data/docs/RemoveHtmlFromTextRequest.md +8 -0
- data/docs/RemoveHtmlFromTextResponse.md +9 -0
- data/docs/RemovePptxSlidesRequest.md +11 -0
- data/docs/RemoveWhitespaceFromTextRequest.md +8 -0
- data/docs/RemoveWhitespaceFromTextResponse.md +9 -0
- data/docs/RemoveXlsxWorksheetRequest.md +10 -0
- data/docs/RenameXlsxWorksheetRequest.md +11 -0
- data/docs/RenameXlsxWorksheetResponse.md +9 -0
- data/docs/ReplaceDocxParagraphRequest.md +12 -0
- data/docs/ReplaceDocxParagraphResponse.md +9 -0
- data/docs/ReplaceStringRegexRequest.md +10 -0
- data/docs/ReplaceStringRegexResponse.md +9 -0
- data/docs/ReplaceStringRequest.md +12 -0
- data/docs/ReplaceStringSimpleRequest.md +10 -0
- data/docs/ReplaceStringSimpleResponse.md +9 -0
- data/docs/RtfToJpgResult.md +9 -0
- data/docs/RtfToPngResult.md +9 -0
- data/docs/ScreenshotRequest.md +11 -0
- data/docs/SetFormFieldValue.md +11 -0
- data/docs/SetPdfFormFieldsRequest.md +9 -0
- data/docs/SetPdfMetadataRequest.md +9 -0
- data/docs/SetXlsxCellByIdentifierRequest.md +12 -0
- data/docs/SetXlsxCellByIdentifierResponse.md +9 -0
- data/docs/SetXlsxCellRequest.md +13 -0
- data/docs/SetXlsxCellResponse.md +9 -0
- data/docs/SingleReplaceString.md +10 -0
- data/docs/SplitDocumentApi.md +361 -0
- data/docs/SplitDocumentResult.md +10 -0
- data/docs/SplitDocxDocumentResult.md +9 -0
- data/docs/SplitPdfResult.md +9 -0
- data/docs/SplitPptxPresentationResult.md +9 -0
- data/docs/SplitTextDocumentByLinesResult.md +10 -0
- data/docs/SplitTextDocumentByStringResult.md +10 -0
- data/docs/SplitXlsxWorksheetResult.md +9 -0
- data/docs/TextConversionResult.md +9 -0
- data/docs/TextDocumentElement.md +9 -0
- data/docs/TextDocumentLine.md +9 -0
- data/docs/TextEncodingDetectResponse.md +9 -0
- data/docs/Thumbnail.md +9 -0
- data/docs/TransformDocumentApi.md +140 -0
- data/docs/UpdateDocxTableCellRequest.md +13 -0
- data/docs/UpdateDocxTableCellResponse.md +9 -0
- data/docs/UpdateDocxTableRowRequest.md +12 -0
- data/docs/UpdateDocxTableRowResponse.md +9 -0
- data/docs/UrlToPdfRequest.md +11 -0
- data/docs/UrlToTextRequest.md +8 -0
- data/docs/UrlToTextResponse.md +9 -0
- data/docs/ValidateDocumentApi.md +833 -0
- data/docs/ViewerResponse.md +9 -0
- data/docs/ViewerToolsApi.md +63 -0
- data/docs/WorksheetResult.md +11 -0
- data/docs/XlsxImage.md +12 -0
- data/docs/XlsxSpreadsheetCell.md +12 -0
- data/docs/XlsxSpreadsheetColumn.md +9 -0
- data/docs/XlsxSpreadsheetRow.md +9 -0
- data/docs/XlsxToPngResult.md +9 -0
- data/docs/XlsxWorksheet.md +9 -0
- data/docs/XmlAddAttributeWithXPathResult.md +10 -0
- data/docs/XmlAddChildWithXPathResult.md +10 -0
- data/docs/XmlFilterWithXPathResult.md +10 -0
- data/docs/XmlQueryWithXQueryMultiResult.md +10 -0
- data/docs/XmlQueryWithXQueryResult.md +10 -0
- data/docs/XmlRemoveAllChildrenWithXPathResult.md +10 -0
- data/docs/XmlRemoveWithXPathResult.md +11 -0
- data/docs/XmlReplaceWithXPathResult.md +10 -0
- data/docs/XmlSetValueWithXPathResult.md +10 -0
- data/docs/ZipArchiveApi.md +306 -0
- data/docs/ZipDirectory.md +10 -0
- data/docs/ZipEncryptionAdvancedRequest.md +10 -0
- data/docs/ZipExtractResponse.md +10 -0
- data/docs/ZipFile.md +9 -0
- data/git_push.sh +55 -0
- data/lib/cloudmersive-convert-api-client.rb +295 -0
- data/lib/cloudmersive-convert-api-client/api/compare_document_api.rb +85 -0
- data/lib/cloudmersive-convert-api-client/api/convert_data_api.rb +966 -0
- data/lib/cloudmersive-convert-api-client/api/convert_document_api.rb +4360 -0
- data/lib/cloudmersive-convert-api-client/api/convert_image_api.rb +273 -0
- data/lib/cloudmersive-convert-api-client/api/convert_template_api.rb +135 -0
- data/lib/cloudmersive-convert-api-client/api/convert_web_api.rb +456 -0
- data/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +2994 -0
- data/lib/cloudmersive-convert-api-client/api/edit_html_api.rb +270 -0
- data/lib/cloudmersive-convert-api-client/api/edit_pdf_api.rb +1163 -0
- data/lib/cloudmersive-convert-api-client/api/edit_text_api.rb +735 -0
- data/lib/cloudmersive-convert-api-client/api/merge_document_api.rb +911 -0
- data/lib/cloudmersive-convert-api-client/api/split_document_api.rb +375 -0
- data/lib/cloudmersive-convert-api-client/api/transform_document_api.rb +161 -0
- data/lib/cloudmersive-convert-api-client/api/validate_document_api.rb +848 -0
- data/lib/cloudmersive-convert-api-client/api/viewer_tools_api.rb +78 -0
- data/lib/cloudmersive-convert-api-client/api/zip_archive_api.rb +330 -0
- data/lib/cloudmersive-convert-api-client/api_client.rb +391 -0
- data/lib/cloudmersive-convert-api-client/api_error.rb +38 -0
- data/lib/cloudmersive-convert-api-client/configuration.rb +209 -0
- data/lib/cloudmersive-convert-api-client/models/add_pdf_annotation_request.rb +213 -0
- data/lib/cloudmersive-convert-api-client/models/alternate_file_format_candidate.rb +206 -0
- data/lib/cloudmersive-convert-api-client/models/append_xlsx_row_request.rb +231 -0
- data/lib/cloudmersive-convert-api-client/models/append_xlsx_row_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/autodetect_document_validation_result.rb +227 -0
- data/lib/cloudmersive-convert-api-client/models/autodetect_get_info_result.rb +248 -0
- data/lib/cloudmersive-convert-api-client/models/autodetect_to_jpg_result.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/autodetect_to_png_result.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/autodetect_to_thumbnails_result.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/base64_decode_request.rb +186 -0
- data/lib/cloudmersive-convert-api-client/models/base64_decode_response.rb +211 -0
- data/lib/cloudmersive-convert-api-client/models/base64_detect_request.rb +186 -0
- data/lib/cloudmersive-convert-api-client/models/base64_detect_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/base64_encode_request.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/base64_encode_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/change_line_ending_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/clear_xlsx_cell_request.rb +241 -0
- data/lib/cloudmersive-convert-api-client/models/clear_xlsx_cell_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/clear_xlsx_row_request.rb +231 -0
- data/lib/cloudmersive-convert-api-client/models/clear_xlsx_row_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/converted_jpg_page.rb +211 -0
- data/lib/cloudmersive-convert-api-client/models/converted_png_page.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/create_blank_docx_request.rb +186 -0
- data/lib/cloudmersive-convert-api-client/models/create_blank_docx_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/create_blank_spreadsheet_request.rb +186 -0
- data/lib/cloudmersive-convert-api-client/models/create_blank_spreadsheet_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/create_spreadsheet_from_data_request.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/create_spreadsheet_from_data_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/create_zip_archive_request.rb +200 -0
- data/lib/cloudmersive-convert-api-client/models/csv_collection.rb +208 -0
- data/lib/cloudmersive-convert-api-client/models/csv_file_result.rb +211 -0
- data/lib/cloudmersive-convert-api-client/models/delete_docx_table_row_range_request.rb +241 -0
- data/lib/cloudmersive-convert-api-client/models/delete_docx_table_row_range_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/delete_docx_table_row_request.rb +231 -0
- data/lib/cloudmersive-convert-api-client/models/delete_docx_table_row_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/detect_line_endings_response.rb +216 -0
- data/lib/cloudmersive-convert-api-client/models/disable_shared_workbook_request.rb +211 -0
- data/lib/cloudmersive-convert-api-client/models/disable_shared_workbook_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/document_validation_error.rb +216 -0
- data/lib/cloudmersive-convert-api-client/models/document_validation_result.rb +228 -0
- data/lib/cloudmersive-convert-api-client/models/docx_body.rb +209 -0
- data/lib/cloudmersive-convert-api-client/models/docx_cell_style.rb +216 -0
- data/lib/cloudmersive-convert-api-client/models/docx_comment.rb +266 -0
- data/lib/cloudmersive-convert-api-client/models/docx_footer.rb +210 -0
- data/lib/cloudmersive-convert-api-client/models/docx_header.rb +210 -0
- data/lib/cloudmersive-convert-api-client/models/docx_image.rb +305 -0
- data/lib/cloudmersive-convert-api-client/models/docx_insert_comment_on_paragraph_request.rb +231 -0
- data/lib/cloudmersive-convert-api-client/models/docx_insert_image_request.rb +296 -0
- data/lib/cloudmersive-convert-api-client/models/docx_insert_image_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/docx_page.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/docx_paragraph.rb +218 -0
- data/lib/cloudmersive-convert-api-client/models/docx_remove_object_request.rb +221 -0
- data/lib/cloudmersive-convert-api-client/models/docx_remove_object_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/docx_run.rb +258 -0
- data/lib/cloudmersive-convert-api-client/models/docx_section.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/docx_set_footer_add_page_number_request.rb +221 -0
- data/lib/cloudmersive-convert-api-client/models/docx_set_footer_request.rb +221 -0
- data/lib/cloudmersive-convert-api-client/models/docx_set_footer_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/docx_set_header_request.rb +221 -0
- data/lib/cloudmersive-convert-api-client/models/docx_set_header_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/docx_style.rb +246 -0
- data/lib/cloudmersive-convert-api-client/models/docx_table.rb +568 -0
- data/lib/cloudmersive-convert-api-client/models/docx_table_cell.rb +258 -0
- data/lib/cloudmersive-convert-api-client/models/docx_table_row.rb +208 -0
- data/lib/cloudmersive-convert-api-client/models/docx_template_application_request.rb +188 -0
- data/lib/cloudmersive-convert-api-client/models/docx_template_operation.rb +239 -0
- data/lib/cloudmersive-convert-api-client/models/docx_text.rb +206 -0
- data/lib/cloudmersive-convert-api-client/models/docx_to_jpg_result.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/docx_to_png_result.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/docx_top_level_comment.rb +248 -0
- data/lib/cloudmersive-convert-api-client/models/eml_attachment.rb +211 -0
- data/lib/cloudmersive-convert-api-client/models/eml_to_html_result.rb +268 -0
- data/lib/cloudmersive-convert-api-client/models/eml_to_jpg_result.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/eml_to_png_result.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/enable_shared_workbook_request.rb +211 -0
- data/lib/cloudmersive-convert-api-client/models/enable_shared_workbook_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/exif_value.rb +206 -0
- data/lib/cloudmersive-convert-api-client/models/find_docx_paragraph_request.rb +231 -0
- data/lib/cloudmersive-convert-api-client/models/find_docx_paragraph_response.rb +208 -0
- data/lib/cloudmersive-convert-api-client/models/find_regex_match.rb +228 -0
- data/lib/cloudmersive-convert-api-client/models/find_string_match.rb +206 -0
- data/lib/cloudmersive-convert-api-client/models/find_string_regex_request.rb +206 -0
- data/lib/cloudmersive-convert-api-client/models/find_string_regex_response.rb +208 -0
- data/lib/cloudmersive-convert-api-client/models/find_string_simple_request.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/find_string_simple_response.rb +208 -0
- data/lib/cloudmersive-convert-api-client/models/finish_editing_request.rb +186 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_body_request.rb +211 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_body_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_comments_hierarchical_response.rb +208 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_comments_response.rb +208 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_get_comments_hierarchical_request.rb +211 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_get_comments_request.rb +211 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_request.rb +211 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_response.rb +208 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_images_request.rb +211 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_images_response.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_pages_request.rb +221 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_pages_response.rb +208 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_sections_request.rb +211 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_sections_response.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_styles_request.rb +211 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_styles_response.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_table_by_index_request.rb +221 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_table_by_index_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_table_row_request.rb +231 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_table_row_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_tables_request.rb +211 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_tables_response.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/get_file_type_icon_result.rb +221 -0
- data/lib/cloudmersive-convert-api-client/models/get_image_info_result.rb +347 -0
- data/lib/cloudmersive-convert-api-client/models/get_pdf_annotations_result.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_cell_by_identifier_request.rb +231 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_cell_by_identifier_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_cell_request.rb +241 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_cell_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_columns_request.rb +221 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_columns_response.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_images_request.rb +221 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_images_response.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_rows_and_cells_request.rb +221 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_rows_and_cells_response.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_specific_row_request.rb +231 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_specific_row_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_styles_request.rb +211 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_styles_response.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_worksheets_request.rb +211 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_worksheets_response.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/html_md_result.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/html_template_application_request.rb +208 -0
- data/lib/cloudmersive-convert-api-client/models/html_template_application_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/html_template_operation.rb +239 -0
- data/lib/cloudmersive-convert-api-client/models/html_to_office_request.rb +186 -0
- data/lib/cloudmersive-convert-api-client/models/html_to_pdf_request.rb +216 -0
- data/lib/cloudmersive-convert-api-client/models/html_to_png_request.rb +216 -0
- data/lib/cloudmersive-convert-api-client/models/html_to_text_request.rb +186 -0
- data/lib/cloudmersive-convert-api-client/models/html_to_text_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/insert_docx_comment_on_paragraph_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/insert_docx_insert_paragraph_request.rb +241 -0
- data/lib/cloudmersive-convert-api-client/models/insert_docx_insert_paragraph_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/insert_docx_table_row_request.rb +241 -0
- data/lib/cloudmersive-convert-api-client/models/insert_docx_table_row_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/insert_docx_tables_request.rb +241 -0
- data/lib/cloudmersive-convert-api-client/models/insert_docx_tables_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/insert_xlsx_worksheet_request.rb +221 -0
- data/lib/cloudmersive-convert-api-client/models/insert_xlsx_worksheet_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/keynote_to_jpg_result.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/keynote_to_png_result.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/msg_attachment.rb +211 -0
- data/lib/cloudmersive-convert-api-client/models/msg_to_html_result.rb +268 -0
- data/lib/cloudmersive-convert-api-client/models/msg_to_jpg_result.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/msg_to_png_result.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/multi_replace_string_request.rb +223 -0
- data/lib/cloudmersive-convert-api-client/models/multipage_image_format_conversion_result.rb +208 -0
- data/lib/cloudmersive-convert-api-client/models/odp_to_jpg_result.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/odp_to_png_result.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/ods_to_jpg_result.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/ods_to_png_result.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/odt_to_jpg_result.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/odt_to_png_result.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/page_conversion_result.rb +211 -0
- data/lib/cloudmersive-convert-api-client/models/pdf_annotation.rb +296 -0
- data/lib/cloudmersive-convert-api-client/models/pdf_document.rb +221 -0
- data/lib/cloudmersive-convert-api-client/models/pdf_form_field.rb +216 -0
- data/lib/cloudmersive-convert-api-client/models/pdf_form_fields.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/pdf_metadata.rb +266 -0
- data/lib/cloudmersive-convert-api-client/models/pdf_page_text.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/pdf_text_by_page_result.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/pdf_to_jpg_result.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/pdf_to_png_result.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/pptx_to_png_result.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/presentation_result.rb +221 -0
- data/lib/cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_request.rb +231 -0
- data/lib/cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/remove_docx_pages_request.rb +231 -0
- data/lib/cloudmersive-convert-api-client/models/remove_html_from_text_request.rb +186 -0
- data/lib/cloudmersive-convert-api-client/models/remove_html_from_text_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/remove_pptx_slides_request.rb +231 -0
- data/lib/cloudmersive-convert-api-client/models/remove_whitespace_from_text_request.rb +186 -0
- data/lib/cloudmersive-convert-api-client/models/remove_whitespace_from_text_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/remove_xlsx_worksheet_request.rb +221 -0
- data/lib/cloudmersive-convert-api-client/models/rename_xlsx_worksheet_request.rb +231 -0
- data/lib/cloudmersive-convert-api-client/models/rename_xlsx_worksheet_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/replace_docx_paragraph_request.rb +241 -0
- data/lib/cloudmersive-convert-api-client/models/replace_docx_paragraph_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/replace_string_regex_request.rb +206 -0
- data/lib/cloudmersive-convert-api-client/models/replace_string_regex_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/replace_string_request.rb +241 -0
- data/lib/cloudmersive-convert-api-client/models/replace_string_simple_request.rb +206 -0
- data/lib/cloudmersive-convert-api-client/models/replace_string_simple_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/rtf_to_jpg_result.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/rtf_to_png_result.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/screenshot_request.rb +216 -0
- data/lib/cloudmersive-convert-api-client/models/set_form_field_value.rb +216 -0
- data/lib/cloudmersive-convert-api-client/models/set_pdf_form_fields_request.rb +213 -0
- data/lib/cloudmersive-convert-api-client/models/set_pdf_metadata_request.rb +211 -0
- data/lib/cloudmersive-convert-api-client/models/set_xlsx_cell_by_identifier_request.rb +241 -0
- data/lib/cloudmersive-convert-api-client/models/set_xlsx_cell_by_identifier_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/set_xlsx_cell_request.rb +251 -0
- data/lib/cloudmersive-convert-api-client/models/set_xlsx_cell_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/single_replace_string.rb +206 -0
- data/lib/cloudmersive-convert-api-client/models/split_document_result.rb +221 -0
- data/lib/cloudmersive-convert-api-client/models/split_docx_document_result.rb +197 -0
- data/lib/cloudmersive-convert-api-client/models/split_pdf_result.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/split_pptx_presentation_result.rb +197 -0
- data/lib/cloudmersive-convert-api-client/models/split_text_document_by_lines_result.rb +207 -0
- data/lib/cloudmersive-convert-api-client/models/split_text_document_by_string_result.rb +207 -0
- data/lib/cloudmersive-convert-api-client/models/split_xlsx_worksheet_result.rb +197 -0
- data/lib/cloudmersive-convert-api-client/models/text_conversion_result.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/text_document_element.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/text_document_line.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/text_encoding_detect_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/thumbnail.rb +211 -0
- data/lib/cloudmersive-convert-api-client/models/update_docx_table_cell_request.rb +251 -0
- data/lib/cloudmersive-convert-api-client/models/update_docx_table_cell_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/update_docx_table_row_request.rb +241 -0
- data/lib/cloudmersive-convert-api-client/models/update_docx_table_row_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/url_to_pdf_request.rb +216 -0
- data/lib/cloudmersive-convert-api-client/models/url_to_text_request.rb +186 -0
- data/lib/cloudmersive-convert-api-client/models/url_to_text_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/viewer_response.rb +194 -0
- data/lib/cloudmersive-convert-api-client/models/worksheet_result.rb +231 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_image.rb +225 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_cell.rb +225 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_column.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_row.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_to_png_result.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_worksheet.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/xml_add_attribute_with_x_path_result.rb +206 -0
- data/lib/cloudmersive-convert-api-client/models/xml_add_child_with_x_path_result.rb +206 -0
- data/lib/cloudmersive-convert-api-client/models/xml_filter_with_x_path_result.rb +208 -0
- data/lib/cloudmersive-convert-api-client/models/xml_query_with_x_query_multi_result.rb +206 -0
- data/lib/cloudmersive-convert-api-client/models/xml_query_with_x_query_result.rb +206 -0
- data/lib/cloudmersive-convert-api-client/models/xml_remove_all_children_with_x_path_result.rb +206 -0
- data/lib/cloudmersive-convert-api-client/models/xml_remove_with_x_path_result.rb +218 -0
- data/lib/cloudmersive-convert-api-client/models/xml_replace_with_x_path_result.rb +206 -0
- data/lib/cloudmersive-convert-api-client/models/xml_set_value_with_x_path_result.rb +206 -0
- data/lib/cloudmersive-convert-api-client/models/zip_directory.rb +210 -0
- data/lib/cloudmersive-convert-api-client/models/zip_encryption_advanced_request.rb +221 -0
- data/lib/cloudmersive-convert-api-client/models/zip_extract_response.rb +210 -0
- data/lib/cloudmersive-convert-api-client/models/zip_file.rb +211 -0
- data/lib/cloudmersive-convert-api-client/version.rb +15 -0
- data/spec/api/compare_document_api_spec.rb +48 -0
- data/spec/api/convert_data_api_spec.rb +240 -0
- data/spec/api/convert_document_api_spec.rb +998 -0
- data/spec/api/convert_image_api_spec.rb +88 -0
- data/spec/api/convert_template_api_spec.rb +60 -0
- data/spec/api/convert_web_api_spec.rb +131 -0
- data/spec/api/edit_document_api_spec.rb +695 -0
- data/spec/api/edit_html_api_spec.rb +96 -0
- data/spec/api/edit_pdf_api_spec.rb +282 -0
- data/spec/api/edit_text_api_spec.rb +192 -0
- data/spec/api/merge_document_api_spec.rb +239 -0
- data/spec/api/split_document_api_spec.rb +113 -0
- data/spec/api/transform_document_api_spec.rb +67 -0
- data/spec/api/validate_document_api_spec.rb +215 -0
- data/spec/api/viewer_tools_api_spec.rb +47 -0
- data/spec/api/zip_archive_api_spec.rb +105 -0
- data/spec/api_client_spec.rb +243 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/add_pdf_annotation_request_spec.rb +47 -0
- data/spec/models/alternate_file_format_candidate_spec.rb +53 -0
- data/spec/models/append_xlsx_row_request_spec.rb +59 -0
- data/spec/models/append_xlsx_row_response_spec.rb +47 -0
- data/spec/models/autodetect_document_validation_result_spec.rb +65 -0
- data/spec/models/autodetect_get_info_result_spec.rb +77 -0
- data/spec/models/autodetect_to_jpg_result_spec.rb +47 -0
- data/spec/models/autodetect_to_png_result_spec.rb +47 -0
- data/spec/models/autodetect_to_thumbnails_result_spec.rb +47 -0
- data/spec/models/base64_decode_request_spec.rb +41 -0
- data/spec/models/base64_decode_response_spec.rb +47 -0
- data/spec/models/base64_detect_request_spec.rb +41 -0
- data/spec/models/base64_detect_response_spec.rb +47 -0
- data/spec/models/base64_encode_request_spec.rb +41 -0
- data/spec/models/base64_encode_response_spec.rb +47 -0
- data/spec/models/change_line_ending_response_spec.rb +47 -0
- data/spec/models/clear_xlsx_cell_request_spec.rb +65 -0
- data/spec/models/clear_xlsx_cell_response_spec.rb +47 -0
- data/spec/models/clear_xlsx_row_request_spec.rb +59 -0
- data/spec/models/clear_xlsx_row_response_spec.rb +47 -0
- data/spec/models/converted_jpg_page_spec.rb +47 -0
- data/spec/models/converted_png_page_spec.rb +47 -0
- data/spec/models/create_blank_docx_request_spec.rb +41 -0
- data/spec/models/create_blank_docx_response_spec.rb +47 -0
- data/spec/models/create_blank_spreadsheet_request_spec.rb +41 -0
- data/spec/models/create_blank_spreadsheet_response_spec.rb +47 -0
- data/spec/models/create_spreadsheet_from_data_request_spec.rb +47 -0
- data/spec/models/create_spreadsheet_from_data_response_spec.rb +47 -0
- data/spec/models/create_zip_archive_request_spec.rb +47 -0
- data/spec/models/csv_collection_spec.rb +53 -0
- data/spec/models/csv_file_result_spec.rb +47 -0
- data/spec/models/delete_docx_table_row_range_request_spec.rb +65 -0
- data/spec/models/delete_docx_table_row_range_response_spec.rb +47 -0
- data/spec/models/delete_docx_table_row_request_spec.rb +59 -0
- data/spec/models/delete_docx_table_row_response_spec.rb +47 -0
- data/spec/models/detect_line_endings_response_spec.rb +59 -0
- data/spec/models/disable_shared_workbook_request_spec.rb +47 -0
- data/spec/models/disable_shared_workbook_response_spec.rb +47 -0
- data/spec/models/document_validation_error_spec.rb +59 -0
- data/spec/models/document_validation_result_spec.rb +65 -0
- data/spec/models/docx_body_spec.rb +53 -0
- data/spec/models/docx_cell_style_spec.rb +59 -0
- data/spec/models/docx_comment_spec.rb +89 -0
- data/spec/models/docx_footer_spec.rb +53 -0
- data/spec/models/docx_header_spec.rb +53 -0
- data/spec/models/docx_image_spec.rb +113 -0
- data/spec/models/docx_insert_comment_on_paragraph_request_spec.rb +59 -0
- data/spec/models/docx_insert_image_request_spec.rb +89 -0
- data/spec/models/docx_insert_image_response_spec.rb +47 -0
- data/spec/models/docx_page_spec.rb +47 -0
- data/spec/models/docx_paragraph_spec.rb +59 -0
- data/spec/models/docx_remove_object_request_spec.rb +53 -0
- data/spec/models/docx_remove_object_response_spec.rb +47 -0
- data/spec/models/docx_run_spec.rb +83 -0
- data/spec/models/docx_section_spec.rb +47 -0
- data/spec/models/docx_set_footer_add_page_number_request_spec.rb +53 -0
- data/spec/models/docx_set_footer_request_spec.rb +53 -0
- data/spec/models/docx_set_footer_response_spec.rb +47 -0
- data/spec/models/docx_set_header_request_spec.rb +53 -0
- data/spec/models/docx_set_header_response_spec.rb +47 -0
- data/spec/models/docx_style_spec.rb +77 -0
- data/spec/models/docx_table_cell_spec.rb +83 -0
- data/spec/models/docx_table_row_spec.rb +53 -0
- data/spec/models/docx_table_spec.rb +269 -0
- data/spec/models/docx_template_application_request_spec.rb +41 -0
- data/spec/models/docx_template_operation_spec.rb +57 -0
- data/spec/models/docx_text_spec.rb +53 -0
- data/spec/models/docx_to_jpg_result_spec.rb +47 -0
- data/spec/models/docx_to_png_result_spec.rb +47 -0
- data/spec/models/docx_top_level_comment_spec.rb +77 -0
- data/spec/models/eml_attachment_spec.rb +47 -0
- data/spec/models/eml_to_html_result_spec.rb +89 -0
- data/spec/models/eml_to_jpg_result_spec.rb +47 -0
- data/spec/models/eml_to_png_result_spec.rb +47 -0
- data/spec/models/enable_shared_workbook_request_spec.rb +47 -0
- data/spec/models/enable_shared_workbook_response_spec.rb +47 -0
- data/spec/models/exif_value_spec.rb +53 -0
- data/spec/models/find_docx_paragraph_request_spec.rb +59 -0
- data/spec/models/find_docx_paragraph_response_spec.rb +53 -0
- data/spec/models/find_regex_match_spec.rb +65 -0
- data/spec/models/find_string_match_spec.rb +53 -0
- data/spec/models/find_string_regex_request_spec.rb +53 -0
- data/spec/models/find_string_regex_response_spec.rb +53 -0
- data/spec/models/find_string_simple_request_spec.rb +47 -0
- data/spec/models/find_string_simple_response_spec.rb +53 -0
- data/spec/models/finish_editing_request_spec.rb +41 -0
- data/spec/models/get_docx_body_request_spec.rb +47 -0
- data/spec/models/get_docx_body_response_spec.rb +47 -0
- data/spec/models/get_docx_comments_hierarchical_response_spec.rb +53 -0
- data/spec/models/get_docx_comments_response_spec.rb +53 -0
- data/spec/models/get_docx_get_comments_hierarchical_request_spec.rb +47 -0
- data/spec/models/get_docx_get_comments_request_spec.rb +47 -0
- data/spec/models/get_docx_headers_and_footers_request_spec.rb +47 -0
- data/spec/models/get_docx_headers_and_footers_response_spec.rb +53 -0
- data/spec/models/get_docx_images_request_spec.rb +47 -0
- data/spec/models/get_docx_images_response_spec.rb +47 -0
- data/spec/models/get_docx_pages_request_spec.rb +53 -0
- data/spec/models/get_docx_pages_response_spec.rb +53 -0
- data/spec/models/get_docx_sections_request_spec.rb +47 -0
- data/spec/models/get_docx_sections_response_spec.rb +47 -0
- data/spec/models/get_docx_styles_request_spec.rb +47 -0
- data/spec/models/get_docx_styles_response_spec.rb +47 -0
- data/spec/models/get_docx_table_by_index_request_spec.rb +53 -0
- data/spec/models/get_docx_table_by_index_response_spec.rb +47 -0
- data/spec/models/get_docx_table_row_request_spec.rb +59 -0
- data/spec/models/get_docx_table_row_response_spec.rb +47 -0
- data/spec/models/get_docx_tables_request_spec.rb +47 -0
- data/spec/models/get_docx_tables_response_spec.rb +47 -0
- data/spec/models/get_file_type_icon_result_spec.rb +53 -0
- data/spec/models/get_image_info_result_spec.rb +137 -0
- data/spec/models/get_pdf_annotations_result_spec.rb +47 -0
- data/spec/models/get_xlsx_cell_by_identifier_request_spec.rb +59 -0
- data/spec/models/get_xlsx_cell_by_identifier_response_spec.rb +47 -0
- data/spec/models/get_xlsx_cell_request_spec.rb +65 -0
- data/spec/models/get_xlsx_cell_response_spec.rb +47 -0
- data/spec/models/get_xlsx_columns_request_spec.rb +53 -0
- data/spec/models/get_xlsx_columns_response_spec.rb +47 -0
- data/spec/models/get_xlsx_images_request_spec.rb +53 -0
- data/spec/models/get_xlsx_images_response_spec.rb +47 -0
- data/spec/models/get_xlsx_rows_and_cells_request_spec.rb +53 -0
- data/spec/models/get_xlsx_rows_and_cells_response_spec.rb +47 -0
- data/spec/models/get_xlsx_specific_row_request_spec.rb +59 -0
- data/spec/models/get_xlsx_specific_row_response_spec.rb +47 -0
- data/spec/models/get_xlsx_styles_request_spec.rb +47 -0
- data/spec/models/get_xlsx_styles_response_spec.rb +47 -0
- data/spec/models/get_xlsx_worksheets_request_spec.rb +47 -0
- data/spec/models/get_xlsx_worksheets_response_spec.rb +47 -0
- data/spec/models/html_md_result_spec.rb +47 -0
- data/spec/models/html_template_application_request_spec.rb +53 -0
- data/spec/models/html_template_application_response_spec.rb +47 -0
- data/spec/models/html_template_operation_spec.rb +57 -0
- data/spec/models/html_to_office_request_spec.rb +41 -0
- data/spec/models/html_to_pdf_request_spec.rb +59 -0
- data/spec/models/html_to_png_request_spec.rb +59 -0
- data/spec/models/html_to_text_request_spec.rb +41 -0
- data/spec/models/html_to_text_response_spec.rb +47 -0
- data/spec/models/insert_docx_comment_on_paragraph_response_spec.rb +47 -0
- data/spec/models/insert_docx_insert_paragraph_request_spec.rb +65 -0
- data/spec/models/insert_docx_insert_paragraph_response_spec.rb +47 -0
- data/spec/models/insert_docx_table_row_request_spec.rb +65 -0
- data/spec/models/insert_docx_table_row_response_spec.rb +47 -0
- data/spec/models/insert_docx_tables_request_spec.rb +65 -0
- data/spec/models/insert_docx_tables_response_spec.rb +47 -0
- data/spec/models/insert_xlsx_worksheet_request_spec.rb +53 -0
- data/spec/models/insert_xlsx_worksheet_response_spec.rb +47 -0
- data/spec/models/keynote_to_jpg_result_spec.rb +47 -0
- data/spec/models/keynote_to_png_result_spec.rb +47 -0
- data/spec/models/msg_attachment_spec.rb +47 -0
- data/spec/models/msg_to_html_result_spec.rb +89 -0
- data/spec/models/msg_to_jpg_result_spec.rb +47 -0
- data/spec/models/msg_to_png_result_spec.rb +47 -0
- data/spec/models/multi_replace_string_request_spec.rb +53 -0
- data/spec/models/multipage_image_format_conversion_result_spec.rb +53 -0
- data/spec/models/odp_to_jpg_result_spec.rb +47 -0
- data/spec/models/odp_to_png_result_spec.rb +47 -0
- data/spec/models/ods_to_jpg_result_spec.rb +47 -0
- data/spec/models/ods_to_png_result_spec.rb +47 -0
- data/spec/models/odt_to_jpg_result_spec.rb +47 -0
- data/spec/models/odt_to_png_result_spec.rb +47 -0
- data/spec/models/page_conversion_result_spec.rb +47 -0
- data/spec/models/pdf_annotation_spec.rb +107 -0
- data/spec/models/pdf_document_spec.rb +53 -0
- data/spec/models/pdf_form_field_spec.rb +59 -0
- data/spec/models/pdf_form_fields_spec.rb +47 -0
- data/spec/models/pdf_metadata_spec.rb +89 -0
- data/spec/models/pdf_page_text_spec.rb +47 -0
- data/spec/models/pdf_text_by_page_result_spec.rb +47 -0
- data/spec/models/pdf_to_jpg_result_spec.rb +47 -0
- data/spec/models/pdf_to_png_result_spec.rb +47 -0
- data/spec/models/pptx_to_png_result_spec.rb +47 -0
- data/spec/models/presentation_result_spec.rb +53 -0
- data/spec/models/remove_docx_headers_and_footers_request_spec.rb +59 -0
- data/spec/models/remove_docx_headers_and_footers_response_spec.rb +47 -0
- data/spec/models/remove_docx_pages_request_spec.rb +59 -0
- data/spec/models/remove_html_from_text_request_spec.rb +41 -0
- data/spec/models/remove_html_from_text_response_spec.rb +47 -0
- data/spec/models/remove_pptx_slides_request_spec.rb +59 -0
- data/spec/models/remove_whitespace_from_text_request_spec.rb +41 -0
- data/spec/models/remove_whitespace_from_text_response_spec.rb +47 -0
- data/spec/models/remove_xlsx_worksheet_request_spec.rb +53 -0
- data/spec/models/rename_xlsx_worksheet_request_spec.rb +59 -0
- data/spec/models/rename_xlsx_worksheet_response_spec.rb +47 -0
- data/spec/models/replace_docx_paragraph_request_spec.rb +65 -0
- data/spec/models/replace_docx_paragraph_response_spec.rb +47 -0
- data/spec/models/replace_string_regex_request_spec.rb +53 -0
- data/spec/models/replace_string_regex_response_spec.rb +47 -0
- data/spec/models/replace_string_request_spec.rb +65 -0
- data/spec/models/replace_string_simple_request_spec.rb +53 -0
- data/spec/models/replace_string_simple_response_spec.rb +47 -0
- data/spec/models/rtf_to_jpg_result_spec.rb +47 -0
- data/spec/models/rtf_to_png_result_spec.rb +47 -0
- data/spec/models/screenshot_request_spec.rb +59 -0
- data/spec/models/set_form_field_value_spec.rb +59 -0
- data/spec/models/set_pdf_form_fields_request_spec.rb +47 -0
- data/spec/models/set_pdf_metadata_request_spec.rb +47 -0
- data/spec/models/set_xlsx_cell_by_identifier_request_spec.rb +65 -0
- data/spec/models/set_xlsx_cell_by_identifier_response_spec.rb +47 -0
- data/spec/models/set_xlsx_cell_request_spec.rb +71 -0
- data/spec/models/set_xlsx_cell_response_spec.rb +47 -0
- data/spec/models/single_replace_string_spec.rb +53 -0
- data/spec/models/split_document_result_spec.rb +53 -0
- data/spec/models/split_docx_document_result_spec.rb +47 -0
- data/spec/models/split_pdf_result_spec.rb +47 -0
- data/spec/models/split_pptx_presentation_result_spec.rb +47 -0
- data/spec/models/split_text_document_by_lines_result_spec.rb +53 -0
- data/spec/models/split_text_document_by_string_result_spec.rb +53 -0
- data/spec/models/split_xlsx_worksheet_result_spec.rb +47 -0
- data/spec/models/text_conversion_result_spec.rb +47 -0
- data/spec/models/text_document_element_spec.rb +47 -0
- data/spec/models/text_document_line_spec.rb +47 -0
- data/spec/models/text_encoding_detect_response_spec.rb +47 -0
- data/spec/models/thumbnail_spec.rb +47 -0
- data/spec/models/update_docx_table_cell_request_spec.rb +71 -0
- data/spec/models/update_docx_table_cell_response_spec.rb +47 -0
- data/spec/models/update_docx_table_row_request_spec.rb +65 -0
- data/spec/models/update_docx_table_row_response_spec.rb +47 -0
- data/spec/models/url_to_pdf_request_spec.rb +59 -0
- data/spec/models/url_to_text_request_spec.rb +41 -0
- data/spec/models/url_to_text_response_spec.rb +47 -0
- data/spec/models/viewer_response_spec.rb +47 -0
- data/spec/models/worksheet_result_spec.rb +59 -0
- data/spec/models/xlsx_image_spec.rb +65 -0
- data/spec/models/xlsx_spreadsheet_cell_spec.rb +65 -0
- data/spec/models/xlsx_spreadsheet_column_spec.rb +47 -0
- data/spec/models/xlsx_spreadsheet_row_spec.rb +47 -0
- data/spec/models/xlsx_to_png_result_spec.rb +47 -0
- data/spec/models/xlsx_worksheet_spec.rb +47 -0
- data/spec/models/xml_add_attribute_with_x_path_result_spec.rb +53 -0
- data/spec/models/xml_add_child_with_x_path_result_spec.rb +53 -0
- data/spec/models/xml_filter_with_x_path_result_spec.rb +53 -0
- data/spec/models/xml_query_with_x_query_multi_result_spec.rb +53 -0
- data/spec/models/xml_query_with_x_query_result_spec.rb +53 -0
- data/spec/models/xml_remove_all_children_with_x_path_result_spec.rb +53 -0
- data/spec/models/xml_remove_with_x_path_result_spec.rb +59 -0
- data/spec/models/xml_replace_with_x_path_result_spec.rb +53 -0
- data/spec/models/xml_set_value_with_x_path_result_spec.rb +53 -0
- data/spec/models/zip_directory_spec.rb +53 -0
- data/spec/models/zip_encryption_advanced_request_spec.rb +53 -0
- data/spec/models/zip_extract_response_spec.rb +53 -0
- data/spec/models/zip_file_spec.rb +47 -0
- data/spec/spec_helper.rb +111 -0
- metadata +785 -4
@@ -0,0 +1,246 @@
|
|
1
|
+
=begin
|
2
|
+
#convertapi
|
3
|
+
|
4
|
+
#Convert API lets you effortlessly convert file formats and types.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module CloudmersiveConvertApiClient
|
16
|
+
# Style in a DOCX Word Document
|
17
|
+
class DocxStyle
|
18
|
+
# ID of the style
|
19
|
+
attr_accessor :style_id
|
20
|
+
|
21
|
+
# The Path of the location of this object; leave blank for new tables
|
22
|
+
attr_accessor :path
|
23
|
+
|
24
|
+
# Style applies bold formatting
|
25
|
+
attr_accessor :bold
|
26
|
+
|
27
|
+
# Style applies italic formatting
|
28
|
+
attr_accessor :italic
|
29
|
+
|
30
|
+
# Style applies underline formatting
|
31
|
+
attr_accessor :underline
|
32
|
+
|
33
|
+
# Font size
|
34
|
+
attr_accessor :font_size
|
35
|
+
|
36
|
+
# Font family
|
37
|
+
attr_accessor :font_family
|
38
|
+
|
39
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
40
|
+
def self.attribute_map
|
41
|
+
{
|
42
|
+
:'style_id' => :'StyleID',
|
43
|
+
:'path' => :'Path',
|
44
|
+
:'bold' => :'Bold',
|
45
|
+
:'italic' => :'Italic',
|
46
|
+
:'underline' => :'Underline',
|
47
|
+
:'font_size' => :'FontSize',
|
48
|
+
:'font_family' => :'FontFamily'
|
49
|
+
}
|
50
|
+
end
|
51
|
+
|
52
|
+
# Attribute type mapping.
|
53
|
+
def self.swagger_types
|
54
|
+
{
|
55
|
+
:'style_id' => :'String',
|
56
|
+
:'path' => :'String',
|
57
|
+
:'bold' => :'BOOLEAN',
|
58
|
+
:'italic' => :'BOOLEAN',
|
59
|
+
:'underline' => :'BOOLEAN',
|
60
|
+
:'font_size' => :'String',
|
61
|
+
:'font_family' => :'String'
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
65
|
+
# Initializes the object
|
66
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
67
|
+
def initialize(attributes = {})
|
68
|
+
return unless attributes.is_a?(Hash)
|
69
|
+
|
70
|
+
# convert string to symbol for hash key
|
71
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
72
|
+
|
73
|
+
if attributes.has_key?(:'StyleID')
|
74
|
+
self.style_id = attributes[:'StyleID']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.has_key?(:'Path')
|
78
|
+
self.path = attributes[:'Path']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.has_key?(:'Bold')
|
82
|
+
self.bold = attributes[:'Bold']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.has_key?(:'Italic')
|
86
|
+
self.italic = attributes[:'Italic']
|
87
|
+
end
|
88
|
+
|
89
|
+
if attributes.has_key?(:'Underline')
|
90
|
+
self.underline = attributes[:'Underline']
|
91
|
+
end
|
92
|
+
|
93
|
+
if attributes.has_key?(:'FontSize')
|
94
|
+
self.font_size = attributes[:'FontSize']
|
95
|
+
end
|
96
|
+
|
97
|
+
if attributes.has_key?(:'FontFamily')
|
98
|
+
self.font_family = attributes[:'FontFamily']
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
103
|
+
# @return Array for valid properties with the reasons
|
104
|
+
def list_invalid_properties
|
105
|
+
invalid_properties = Array.new
|
106
|
+
invalid_properties
|
107
|
+
end
|
108
|
+
|
109
|
+
# Check to see if the all the properties in the model are valid
|
110
|
+
# @return true if the model is valid
|
111
|
+
def valid?
|
112
|
+
true
|
113
|
+
end
|
114
|
+
|
115
|
+
# Checks equality by comparing each attribute.
|
116
|
+
# @param [Object] Object to be compared
|
117
|
+
def ==(o)
|
118
|
+
return true if self.equal?(o)
|
119
|
+
self.class == o.class &&
|
120
|
+
style_id == o.style_id &&
|
121
|
+
path == o.path &&
|
122
|
+
bold == o.bold &&
|
123
|
+
italic == o.italic &&
|
124
|
+
underline == o.underline &&
|
125
|
+
font_size == o.font_size &&
|
126
|
+
font_family == o.font_family
|
127
|
+
end
|
128
|
+
|
129
|
+
# @see the `==` method
|
130
|
+
# @param [Object] Object to be compared
|
131
|
+
def eql?(o)
|
132
|
+
self == o
|
133
|
+
end
|
134
|
+
|
135
|
+
# Calculates hash code according to all attributes.
|
136
|
+
# @return [Fixnum] Hash code
|
137
|
+
def hash
|
138
|
+
[style_id, path, bold, italic, underline, font_size, font_family].hash
|
139
|
+
end
|
140
|
+
|
141
|
+
# Builds the object from hash
|
142
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
143
|
+
# @return [Object] Returns the model itself
|
144
|
+
def build_from_hash(attributes)
|
145
|
+
return nil unless attributes.is_a?(Hash)
|
146
|
+
self.class.swagger_types.each_pair do |key, type|
|
147
|
+
if type =~ /\AArray<(.*)>/i
|
148
|
+
# check to ensure the input is an array given that the attribute
|
149
|
+
# is documented as an array but the input is not
|
150
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
151
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
152
|
+
end
|
153
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
154
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
155
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
156
|
+
end
|
157
|
+
|
158
|
+
self
|
159
|
+
end
|
160
|
+
|
161
|
+
# Deserializes the data based on type
|
162
|
+
# @param string type Data type
|
163
|
+
# @param string value Value to be deserialized
|
164
|
+
# @return [Object] Deserialized data
|
165
|
+
def _deserialize(type, value)
|
166
|
+
case type.to_sym
|
167
|
+
when :DateTime
|
168
|
+
DateTime.parse(value)
|
169
|
+
when :Date
|
170
|
+
Date.parse(value)
|
171
|
+
when :String
|
172
|
+
value.to_s
|
173
|
+
when :Integer
|
174
|
+
value.to_i
|
175
|
+
when :Float
|
176
|
+
value.to_f
|
177
|
+
when :BOOLEAN
|
178
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
179
|
+
true
|
180
|
+
else
|
181
|
+
false
|
182
|
+
end
|
183
|
+
when :Object
|
184
|
+
# generic object (usually a Hash), return directly
|
185
|
+
value
|
186
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
187
|
+
inner_type = Regexp.last_match[:inner_type]
|
188
|
+
value.map { |v| _deserialize(inner_type, v) }
|
189
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
190
|
+
k_type = Regexp.last_match[:k_type]
|
191
|
+
v_type = Regexp.last_match[:v_type]
|
192
|
+
{}.tap do |hash|
|
193
|
+
value.each do |k, v|
|
194
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
195
|
+
end
|
196
|
+
end
|
197
|
+
else # model
|
198
|
+
temp_model = CloudmersiveConvertApiClient.const_get(type).new
|
199
|
+
temp_model.build_from_hash(value)
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
# Returns the string representation of the object
|
204
|
+
# @return [String] String presentation of the object
|
205
|
+
def to_s
|
206
|
+
to_hash.to_s
|
207
|
+
end
|
208
|
+
|
209
|
+
# to_body is an alias to to_hash (backward compatibility)
|
210
|
+
# @return [Hash] Returns the object in the form of hash
|
211
|
+
def to_body
|
212
|
+
to_hash
|
213
|
+
end
|
214
|
+
|
215
|
+
# Returns the object in the form of hash
|
216
|
+
# @return [Hash] Returns the object in the form of hash
|
217
|
+
def to_hash
|
218
|
+
hash = {}
|
219
|
+
self.class.attribute_map.each_pair do |attr, param|
|
220
|
+
value = self.send(attr)
|
221
|
+
next if value.nil?
|
222
|
+
hash[param] = _to_hash(value)
|
223
|
+
end
|
224
|
+
hash
|
225
|
+
end
|
226
|
+
|
227
|
+
# Outputs non-array value in the form of hash
|
228
|
+
# For object, use to_hash. Otherwise, just return the value
|
229
|
+
# @param [Object] value Any valid value
|
230
|
+
# @return [Hash] Returns the value in the form of hash
|
231
|
+
def _to_hash(value)
|
232
|
+
if value.is_a?(Array)
|
233
|
+
value.compact.map { |v| _to_hash(v) }
|
234
|
+
elsif value.is_a?(Hash)
|
235
|
+
{}.tap do |hash|
|
236
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
237
|
+
end
|
238
|
+
elsif value.respond_to? :to_hash
|
239
|
+
value.to_hash
|
240
|
+
else
|
241
|
+
value
|
242
|
+
end
|
243
|
+
end
|
244
|
+
|
245
|
+
end
|
246
|
+
end
|
@@ -0,0 +1,568 @@
|
|
1
|
+
=begin
|
2
|
+
#convertapi
|
3
|
+
|
4
|
+
#Convert API lets you effortlessly convert file formats and types.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module CloudmersiveConvertApiClient
|
16
|
+
# A table in a Word Document (DOCX) file
|
17
|
+
class DocxTable
|
18
|
+
# The ID of the table; leave blank for new tables
|
19
|
+
attr_accessor :table_id
|
20
|
+
|
21
|
+
# The Path of the location of this table object; leave blank for new tables
|
22
|
+
attr_accessor :path
|
23
|
+
|
24
|
+
# The Width of the table, or 0 if not specified
|
25
|
+
attr_accessor :width
|
26
|
+
|
27
|
+
# The Width configuration type of the table
|
28
|
+
attr_accessor :width_type
|
29
|
+
|
30
|
+
# Rows in the table; this is where the contents is located
|
31
|
+
attr_accessor :table_rows
|
32
|
+
|
33
|
+
# Type for the top border - can be a Single, DashDotStroked, Dashed, DashSmallGap, DotDash, DotDotDash, Dotted, Double, DoubleWave, Inset, Nil, None, Outset, Thick, ThickThinLargeGap, ThickThinMediumGap, ThickThinSmallGap, ThinThickLargeGap, ThinThickMediumGap, ThinThickSmallGap, ThinThickThinLargeGap, ThinThickThinMediumGap, ThinThickThinSmallGap, ThreeDEmboss, ThreeDEngrave, Triple, Wave
|
34
|
+
attr_accessor :top_border_type
|
35
|
+
|
36
|
+
# Width of the border in points (1/72nd of an inch)
|
37
|
+
attr_accessor :top_border_size
|
38
|
+
|
39
|
+
# Spacing around the border in points (1/72nd of an inch)
|
40
|
+
attr_accessor :top_border_space
|
41
|
+
|
42
|
+
# HTML-style color hex value (do not include a #)
|
43
|
+
attr_accessor :top_border_color
|
44
|
+
|
45
|
+
# Type for the bottom border - can be a Single, DashDotStroked, Dashed, DashSmallGap, DotDash, DotDotDash, Dotted, Double, DoubleWave, Inset, Nil, None, Outset, Thick, ThickThinLargeGap, ThickThinMediumGap, ThickThinSmallGap, ThinThickLargeGap, ThinThickMediumGap, ThinThickSmallGap, ThinThickThinLargeGap, ThinThickThinMediumGap, ThinThickThinSmallGap, ThreeDEmboss, ThreeDEngrave, Triple, Wave
|
46
|
+
attr_accessor :bottom_border_type
|
47
|
+
|
48
|
+
# Width of the border in points (1/72nd of an inch)
|
49
|
+
attr_accessor :bottom_border_size
|
50
|
+
|
51
|
+
# Spacing around the border in points (1/72nd of an inch)
|
52
|
+
attr_accessor :bottom_border_space
|
53
|
+
|
54
|
+
# HTML-style color hex value (do not include a #)
|
55
|
+
attr_accessor :bottom_border_color
|
56
|
+
|
57
|
+
# Type for the left border - can be a Single, DashDotStroked, Dashed, DashSmallGap, DotDash, DotDotDash, Dotted, Double, DoubleWave, Inset, Nil, None, Outset, Thick, ThickThinLargeGap, ThickThinMediumGap, ThickThinSmallGap, ThinThickLargeGap, ThinThickMediumGap, ThinThickSmallGap, ThinThickThinLargeGap, ThinThickThinMediumGap, ThinThickThinSmallGap, ThreeDEmboss, ThreeDEngrave, Triple, Wave
|
58
|
+
attr_accessor :left_border_type
|
59
|
+
|
60
|
+
# Width of the border in points (1/72nd of an inch)
|
61
|
+
attr_accessor :left_border_size
|
62
|
+
|
63
|
+
# Spacing around the border in points (1/72nd of an inch)
|
64
|
+
attr_accessor :left_border_space
|
65
|
+
|
66
|
+
# HTML-style color hex value (do not include a #)
|
67
|
+
attr_accessor :left_border_color
|
68
|
+
|
69
|
+
# Type for the right border - can be a Single, DashDotStroked, Dashed, DashSmallGap, DotDash, DotDotDash, Dotted, Double, DoubleWave, Inset, Nil, None, Outset, Thick, ThickThinLargeGap, ThickThinMediumGap, ThickThinSmallGap, ThinThickLargeGap, ThinThickMediumGap, ThinThickSmallGap, ThinThickThinLargeGap, ThinThickThinMediumGap, ThinThickThinSmallGap, ThreeDEmboss, ThreeDEngrave, Triple, Wave
|
70
|
+
attr_accessor :right_border_type
|
71
|
+
|
72
|
+
# Width of the border in points (1/72nd of an inch)
|
73
|
+
attr_accessor :right_border_size
|
74
|
+
|
75
|
+
# Spacing around the border in points (1/72nd of an inch)
|
76
|
+
attr_accessor :right_border_space
|
77
|
+
|
78
|
+
# HTML-style color hex value (do not include a #)
|
79
|
+
attr_accessor :right_border_color
|
80
|
+
|
81
|
+
# Type for the cell horizontal border - can be a Single, DashDotStroked, Dashed, DashSmallGap, DotDash, DotDotDash, Dotted, Double, DoubleWave, Inset, Nil, None, Outset, Thick, ThickThinLargeGap, ThickThinMediumGap, ThickThinSmallGap, ThinThickLargeGap, ThinThickMediumGap, ThinThickSmallGap, ThinThickThinLargeGap, ThinThickThinMediumGap, ThinThickThinSmallGap, ThreeDEmboss, ThreeDEngrave, Triple, Wave
|
82
|
+
attr_accessor :cell_horizontal_border_type
|
83
|
+
|
84
|
+
# Width of the border in points (1/72nd of an inch)
|
85
|
+
attr_accessor :cell_horizontal_border_size
|
86
|
+
|
87
|
+
# Spacing around the border in points (1/72nd of an inch)
|
88
|
+
attr_accessor :cell_horizontal_border_space
|
89
|
+
|
90
|
+
# HTML-style color hex value (do not include a #)
|
91
|
+
attr_accessor :cell_horizontal_border_color
|
92
|
+
|
93
|
+
# Type for the cell vertical border - can be a Single, DashDotStroked, Dashed, DashSmallGap, DotDash, DotDotDash, Dotted, Double, DoubleWave, Inset, Nil, None, Outset, Thick, ThickThinLargeGap, ThickThinMediumGap, ThickThinSmallGap, ThinThickLargeGap, ThinThickMediumGap, ThinThickSmallGap, ThinThickThinLargeGap, ThinThickThinMediumGap, ThinThickThinSmallGap, ThreeDEmboss, ThreeDEngrave, Triple, Wave
|
94
|
+
attr_accessor :cell_vertical_border_type
|
95
|
+
|
96
|
+
# Width of the border in points (1/72nd of an inch)
|
97
|
+
attr_accessor :cell_vertical_border_size
|
98
|
+
|
99
|
+
# Spacing around the border in points (1/72nd of an inch)
|
100
|
+
attr_accessor :cell_vertical_border_space
|
101
|
+
|
102
|
+
# HTML-style color hex value (do not include a #)
|
103
|
+
attr_accessor :cell_vertical_border_color
|
104
|
+
|
105
|
+
# Type for the start border - can be a Single, DashDotStroked, Dashed, DashSmallGap, DotDash, DotDotDash, Dotted, Double, DoubleWave, Inset, Nil, None, Outset, Thick, ThickThinLargeGap, ThickThinMediumGap, ThickThinSmallGap, ThinThickLargeGap, ThinThickMediumGap, ThinThickSmallGap, ThinThickThinLargeGap, ThinThickThinMediumGap, ThinThickThinSmallGap, ThreeDEmboss, ThreeDEngrave, Triple, Wave
|
106
|
+
attr_accessor :start_border_type
|
107
|
+
|
108
|
+
# Width of the border in points (1/72nd of an inch)
|
109
|
+
attr_accessor :start_border_size
|
110
|
+
|
111
|
+
# Spacing around the border in points (1/72nd of an inch)
|
112
|
+
attr_accessor :start_border_space
|
113
|
+
|
114
|
+
# HTML-style color hex value (do not include a #)
|
115
|
+
attr_accessor :start_border_color
|
116
|
+
|
117
|
+
# Type for the end border - can be a Single, DashDotStroked, Dashed, DashSmallGap, DotDash, DotDotDash, Dotted, Double, DoubleWave, Inset, Nil, None, Outset, Thick, ThickThinLargeGap, ThickThinMediumGap, ThickThinSmallGap, ThinThickLargeGap, ThinThickMediumGap, ThinThickSmallGap, ThinThickThinLargeGap, ThinThickThinMediumGap, ThinThickThinSmallGap, ThreeDEmboss, ThreeDEngrave, Triple, Wave
|
118
|
+
attr_accessor :end_border_type
|
119
|
+
|
120
|
+
# Width of the border in points (1/72nd of an inch)
|
121
|
+
attr_accessor :end_border_size
|
122
|
+
|
123
|
+
# Spacing around the border in points (1/72nd of an inch)
|
124
|
+
attr_accessor :end_border_space
|
125
|
+
|
126
|
+
# HTML-style color hex value (do not include a #)
|
127
|
+
attr_accessor :end_border_color
|
128
|
+
|
129
|
+
# Table indentation type
|
130
|
+
attr_accessor :table_indentation_mode
|
131
|
+
|
132
|
+
# Table indentation width
|
133
|
+
attr_accessor :table_indentation_width
|
134
|
+
|
135
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
136
|
+
def self.attribute_map
|
137
|
+
{
|
138
|
+
:'table_id' => :'TableID',
|
139
|
+
:'path' => :'Path',
|
140
|
+
:'width' => :'Width',
|
141
|
+
:'width_type' => :'WidthType',
|
142
|
+
:'table_rows' => :'TableRows',
|
143
|
+
:'top_border_type' => :'TopBorderType',
|
144
|
+
:'top_border_size' => :'TopBorderSize',
|
145
|
+
:'top_border_space' => :'TopBorderSpace',
|
146
|
+
:'top_border_color' => :'TopBorderColor',
|
147
|
+
:'bottom_border_type' => :'BottomBorderType',
|
148
|
+
:'bottom_border_size' => :'BottomBorderSize',
|
149
|
+
:'bottom_border_space' => :'BottomBorderSpace',
|
150
|
+
:'bottom_border_color' => :'BottomBorderColor',
|
151
|
+
:'left_border_type' => :'LeftBorderType',
|
152
|
+
:'left_border_size' => :'LeftBorderSize',
|
153
|
+
:'left_border_space' => :'LeftBorderSpace',
|
154
|
+
:'left_border_color' => :'LeftBorderColor',
|
155
|
+
:'right_border_type' => :'RightBorderType',
|
156
|
+
:'right_border_size' => :'RightBorderSize',
|
157
|
+
:'right_border_space' => :'RightBorderSpace',
|
158
|
+
:'right_border_color' => :'RightBorderColor',
|
159
|
+
:'cell_horizontal_border_type' => :'CellHorizontalBorderType',
|
160
|
+
:'cell_horizontal_border_size' => :'CellHorizontalBorderSize',
|
161
|
+
:'cell_horizontal_border_space' => :'CellHorizontalBorderSpace',
|
162
|
+
:'cell_horizontal_border_color' => :'CellHorizontalBorderColor',
|
163
|
+
:'cell_vertical_border_type' => :'CellVerticalBorderType',
|
164
|
+
:'cell_vertical_border_size' => :'CellVerticalBorderSize',
|
165
|
+
:'cell_vertical_border_space' => :'CellVerticalBorderSpace',
|
166
|
+
:'cell_vertical_border_color' => :'CellVerticalBorderColor',
|
167
|
+
:'start_border_type' => :'StartBorderType',
|
168
|
+
:'start_border_size' => :'StartBorderSize',
|
169
|
+
:'start_border_space' => :'StartBorderSpace',
|
170
|
+
:'start_border_color' => :'StartBorderColor',
|
171
|
+
:'end_border_type' => :'EndBorderType',
|
172
|
+
:'end_border_size' => :'EndBorderSize',
|
173
|
+
:'end_border_space' => :'EndBorderSpace',
|
174
|
+
:'end_border_color' => :'EndBorderColor',
|
175
|
+
:'table_indentation_mode' => :'TableIndentationMode',
|
176
|
+
:'table_indentation_width' => :'TableIndentationWidth'
|
177
|
+
}
|
178
|
+
end
|
179
|
+
|
180
|
+
# Attribute type mapping.
|
181
|
+
def self.swagger_types
|
182
|
+
{
|
183
|
+
:'table_id' => :'String',
|
184
|
+
:'path' => :'String',
|
185
|
+
:'width' => :'String',
|
186
|
+
:'width_type' => :'String',
|
187
|
+
:'table_rows' => :'Array<DocxTableRow>',
|
188
|
+
:'top_border_type' => :'String',
|
189
|
+
:'top_border_size' => :'Integer',
|
190
|
+
:'top_border_space' => :'Integer',
|
191
|
+
:'top_border_color' => :'String',
|
192
|
+
:'bottom_border_type' => :'String',
|
193
|
+
:'bottom_border_size' => :'Integer',
|
194
|
+
:'bottom_border_space' => :'Integer',
|
195
|
+
:'bottom_border_color' => :'String',
|
196
|
+
:'left_border_type' => :'String',
|
197
|
+
:'left_border_size' => :'Integer',
|
198
|
+
:'left_border_space' => :'Integer',
|
199
|
+
:'left_border_color' => :'String',
|
200
|
+
:'right_border_type' => :'String',
|
201
|
+
:'right_border_size' => :'Integer',
|
202
|
+
:'right_border_space' => :'Integer',
|
203
|
+
:'right_border_color' => :'String',
|
204
|
+
:'cell_horizontal_border_type' => :'String',
|
205
|
+
:'cell_horizontal_border_size' => :'Integer',
|
206
|
+
:'cell_horizontal_border_space' => :'Integer',
|
207
|
+
:'cell_horizontal_border_color' => :'String',
|
208
|
+
:'cell_vertical_border_type' => :'String',
|
209
|
+
:'cell_vertical_border_size' => :'Integer',
|
210
|
+
:'cell_vertical_border_space' => :'Integer',
|
211
|
+
:'cell_vertical_border_color' => :'String',
|
212
|
+
:'start_border_type' => :'String',
|
213
|
+
:'start_border_size' => :'Integer',
|
214
|
+
:'start_border_space' => :'Integer',
|
215
|
+
:'start_border_color' => :'String',
|
216
|
+
:'end_border_type' => :'String',
|
217
|
+
:'end_border_size' => :'Integer',
|
218
|
+
:'end_border_space' => :'Integer',
|
219
|
+
:'end_border_color' => :'String',
|
220
|
+
:'table_indentation_mode' => :'String',
|
221
|
+
:'table_indentation_width' => :'Integer'
|
222
|
+
}
|
223
|
+
end
|
224
|
+
|
225
|
+
# Initializes the object
|
226
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
227
|
+
def initialize(attributes = {})
|
228
|
+
return unless attributes.is_a?(Hash)
|
229
|
+
|
230
|
+
# convert string to symbol for hash key
|
231
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
232
|
+
|
233
|
+
if attributes.has_key?(:'TableID')
|
234
|
+
self.table_id = attributes[:'TableID']
|
235
|
+
end
|
236
|
+
|
237
|
+
if attributes.has_key?(:'Path')
|
238
|
+
self.path = attributes[:'Path']
|
239
|
+
end
|
240
|
+
|
241
|
+
if attributes.has_key?(:'Width')
|
242
|
+
self.width = attributes[:'Width']
|
243
|
+
end
|
244
|
+
|
245
|
+
if attributes.has_key?(:'WidthType')
|
246
|
+
self.width_type = attributes[:'WidthType']
|
247
|
+
end
|
248
|
+
|
249
|
+
if attributes.has_key?(:'TableRows')
|
250
|
+
if (value = attributes[:'TableRows']).is_a?(Array)
|
251
|
+
self.table_rows = value
|
252
|
+
end
|
253
|
+
end
|
254
|
+
|
255
|
+
if attributes.has_key?(:'TopBorderType')
|
256
|
+
self.top_border_type = attributes[:'TopBorderType']
|
257
|
+
end
|
258
|
+
|
259
|
+
if attributes.has_key?(:'TopBorderSize')
|
260
|
+
self.top_border_size = attributes[:'TopBorderSize']
|
261
|
+
end
|
262
|
+
|
263
|
+
if attributes.has_key?(:'TopBorderSpace')
|
264
|
+
self.top_border_space = attributes[:'TopBorderSpace']
|
265
|
+
end
|
266
|
+
|
267
|
+
if attributes.has_key?(:'TopBorderColor')
|
268
|
+
self.top_border_color = attributes[:'TopBorderColor']
|
269
|
+
end
|
270
|
+
|
271
|
+
if attributes.has_key?(:'BottomBorderType')
|
272
|
+
self.bottom_border_type = attributes[:'BottomBorderType']
|
273
|
+
end
|
274
|
+
|
275
|
+
if attributes.has_key?(:'BottomBorderSize')
|
276
|
+
self.bottom_border_size = attributes[:'BottomBorderSize']
|
277
|
+
end
|
278
|
+
|
279
|
+
if attributes.has_key?(:'BottomBorderSpace')
|
280
|
+
self.bottom_border_space = attributes[:'BottomBorderSpace']
|
281
|
+
end
|
282
|
+
|
283
|
+
if attributes.has_key?(:'BottomBorderColor')
|
284
|
+
self.bottom_border_color = attributes[:'BottomBorderColor']
|
285
|
+
end
|
286
|
+
|
287
|
+
if attributes.has_key?(:'LeftBorderType')
|
288
|
+
self.left_border_type = attributes[:'LeftBorderType']
|
289
|
+
end
|
290
|
+
|
291
|
+
if attributes.has_key?(:'LeftBorderSize')
|
292
|
+
self.left_border_size = attributes[:'LeftBorderSize']
|
293
|
+
end
|
294
|
+
|
295
|
+
if attributes.has_key?(:'LeftBorderSpace')
|
296
|
+
self.left_border_space = attributes[:'LeftBorderSpace']
|
297
|
+
end
|
298
|
+
|
299
|
+
if attributes.has_key?(:'LeftBorderColor')
|
300
|
+
self.left_border_color = attributes[:'LeftBorderColor']
|
301
|
+
end
|
302
|
+
|
303
|
+
if attributes.has_key?(:'RightBorderType')
|
304
|
+
self.right_border_type = attributes[:'RightBorderType']
|
305
|
+
end
|
306
|
+
|
307
|
+
if attributes.has_key?(:'RightBorderSize')
|
308
|
+
self.right_border_size = attributes[:'RightBorderSize']
|
309
|
+
end
|
310
|
+
|
311
|
+
if attributes.has_key?(:'RightBorderSpace')
|
312
|
+
self.right_border_space = attributes[:'RightBorderSpace']
|
313
|
+
end
|
314
|
+
|
315
|
+
if attributes.has_key?(:'RightBorderColor')
|
316
|
+
self.right_border_color = attributes[:'RightBorderColor']
|
317
|
+
end
|
318
|
+
|
319
|
+
if attributes.has_key?(:'CellHorizontalBorderType')
|
320
|
+
self.cell_horizontal_border_type = attributes[:'CellHorizontalBorderType']
|
321
|
+
end
|
322
|
+
|
323
|
+
if attributes.has_key?(:'CellHorizontalBorderSize')
|
324
|
+
self.cell_horizontal_border_size = attributes[:'CellHorizontalBorderSize']
|
325
|
+
end
|
326
|
+
|
327
|
+
if attributes.has_key?(:'CellHorizontalBorderSpace')
|
328
|
+
self.cell_horizontal_border_space = attributes[:'CellHorizontalBorderSpace']
|
329
|
+
end
|
330
|
+
|
331
|
+
if attributes.has_key?(:'CellHorizontalBorderColor')
|
332
|
+
self.cell_horizontal_border_color = attributes[:'CellHorizontalBorderColor']
|
333
|
+
end
|
334
|
+
|
335
|
+
if attributes.has_key?(:'CellVerticalBorderType')
|
336
|
+
self.cell_vertical_border_type = attributes[:'CellVerticalBorderType']
|
337
|
+
end
|
338
|
+
|
339
|
+
if attributes.has_key?(:'CellVerticalBorderSize')
|
340
|
+
self.cell_vertical_border_size = attributes[:'CellVerticalBorderSize']
|
341
|
+
end
|
342
|
+
|
343
|
+
if attributes.has_key?(:'CellVerticalBorderSpace')
|
344
|
+
self.cell_vertical_border_space = attributes[:'CellVerticalBorderSpace']
|
345
|
+
end
|
346
|
+
|
347
|
+
if attributes.has_key?(:'CellVerticalBorderColor')
|
348
|
+
self.cell_vertical_border_color = attributes[:'CellVerticalBorderColor']
|
349
|
+
end
|
350
|
+
|
351
|
+
if attributes.has_key?(:'StartBorderType')
|
352
|
+
self.start_border_type = attributes[:'StartBorderType']
|
353
|
+
end
|
354
|
+
|
355
|
+
if attributes.has_key?(:'StartBorderSize')
|
356
|
+
self.start_border_size = attributes[:'StartBorderSize']
|
357
|
+
end
|
358
|
+
|
359
|
+
if attributes.has_key?(:'StartBorderSpace')
|
360
|
+
self.start_border_space = attributes[:'StartBorderSpace']
|
361
|
+
end
|
362
|
+
|
363
|
+
if attributes.has_key?(:'StartBorderColor')
|
364
|
+
self.start_border_color = attributes[:'StartBorderColor']
|
365
|
+
end
|
366
|
+
|
367
|
+
if attributes.has_key?(:'EndBorderType')
|
368
|
+
self.end_border_type = attributes[:'EndBorderType']
|
369
|
+
end
|
370
|
+
|
371
|
+
if attributes.has_key?(:'EndBorderSize')
|
372
|
+
self.end_border_size = attributes[:'EndBorderSize']
|
373
|
+
end
|
374
|
+
|
375
|
+
if attributes.has_key?(:'EndBorderSpace')
|
376
|
+
self.end_border_space = attributes[:'EndBorderSpace']
|
377
|
+
end
|
378
|
+
|
379
|
+
if attributes.has_key?(:'EndBorderColor')
|
380
|
+
self.end_border_color = attributes[:'EndBorderColor']
|
381
|
+
end
|
382
|
+
|
383
|
+
if attributes.has_key?(:'TableIndentationMode')
|
384
|
+
self.table_indentation_mode = attributes[:'TableIndentationMode']
|
385
|
+
end
|
386
|
+
|
387
|
+
if attributes.has_key?(:'TableIndentationWidth')
|
388
|
+
self.table_indentation_width = attributes[:'TableIndentationWidth']
|
389
|
+
end
|
390
|
+
end
|
391
|
+
|
392
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
393
|
+
# @return Array for valid properties with the reasons
|
394
|
+
def list_invalid_properties
|
395
|
+
invalid_properties = Array.new
|
396
|
+
invalid_properties
|
397
|
+
end
|
398
|
+
|
399
|
+
# Check to see if the all the properties in the model are valid
|
400
|
+
# @return true if the model is valid
|
401
|
+
def valid?
|
402
|
+
true
|
403
|
+
end
|
404
|
+
|
405
|
+
# Checks equality by comparing each attribute.
|
406
|
+
# @param [Object] Object to be compared
|
407
|
+
def ==(o)
|
408
|
+
return true if self.equal?(o)
|
409
|
+
self.class == o.class &&
|
410
|
+
table_id == o.table_id &&
|
411
|
+
path == o.path &&
|
412
|
+
width == o.width &&
|
413
|
+
width_type == o.width_type &&
|
414
|
+
table_rows == o.table_rows &&
|
415
|
+
top_border_type == o.top_border_type &&
|
416
|
+
top_border_size == o.top_border_size &&
|
417
|
+
top_border_space == o.top_border_space &&
|
418
|
+
top_border_color == o.top_border_color &&
|
419
|
+
bottom_border_type == o.bottom_border_type &&
|
420
|
+
bottom_border_size == o.bottom_border_size &&
|
421
|
+
bottom_border_space == o.bottom_border_space &&
|
422
|
+
bottom_border_color == o.bottom_border_color &&
|
423
|
+
left_border_type == o.left_border_type &&
|
424
|
+
left_border_size == o.left_border_size &&
|
425
|
+
left_border_space == o.left_border_space &&
|
426
|
+
left_border_color == o.left_border_color &&
|
427
|
+
right_border_type == o.right_border_type &&
|
428
|
+
right_border_size == o.right_border_size &&
|
429
|
+
right_border_space == o.right_border_space &&
|
430
|
+
right_border_color == o.right_border_color &&
|
431
|
+
cell_horizontal_border_type == o.cell_horizontal_border_type &&
|
432
|
+
cell_horizontal_border_size == o.cell_horizontal_border_size &&
|
433
|
+
cell_horizontal_border_space == o.cell_horizontal_border_space &&
|
434
|
+
cell_horizontal_border_color == o.cell_horizontal_border_color &&
|
435
|
+
cell_vertical_border_type == o.cell_vertical_border_type &&
|
436
|
+
cell_vertical_border_size == o.cell_vertical_border_size &&
|
437
|
+
cell_vertical_border_space == o.cell_vertical_border_space &&
|
438
|
+
cell_vertical_border_color == o.cell_vertical_border_color &&
|
439
|
+
start_border_type == o.start_border_type &&
|
440
|
+
start_border_size == o.start_border_size &&
|
441
|
+
start_border_space == o.start_border_space &&
|
442
|
+
start_border_color == o.start_border_color &&
|
443
|
+
end_border_type == o.end_border_type &&
|
444
|
+
end_border_size == o.end_border_size &&
|
445
|
+
end_border_space == o.end_border_space &&
|
446
|
+
end_border_color == o.end_border_color &&
|
447
|
+
table_indentation_mode == o.table_indentation_mode &&
|
448
|
+
table_indentation_width == o.table_indentation_width
|
449
|
+
end
|
450
|
+
|
451
|
+
# @see the `==` method
|
452
|
+
# @param [Object] Object to be compared
|
453
|
+
def eql?(o)
|
454
|
+
self == o
|
455
|
+
end
|
456
|
+
|
457
|
+
# Calculates hash code according to all attributes.
|
458
|
+
# @return [Fixnum] Hash code
|
459
|
+
def hash
|
460
|
+
[table_id, path, width, width_type, table_rows, top_border_type, top_border_size, top_border_space, top_border_color, bottom_border_type, bottom_border_size, bottom_border_space, bottom_border_color, left_border_type, left_border_size, left_border_space, left_border_color, right_border_type, right_border_size, right_border_space, right_border_color, cell_horizontal_border_type, cell_horizontal_border_size, cell_horizontal_border_space, cell_horizontal_border_color, cell_vertical_border_type, cell_vertical_border_size, cell_vertical_border_space, cell_vertical_border_color, start_border_type, start_border_size, start_border_space, start_border_color, end_border_type, end_border_size, end_border_space, end_border_color, table_indentation_mode, table_indentation_width].hash
|
461
|
+
end
|
462
|
+
|
463
|
+
# Builds the object from hash
|
464
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
465
|
+
# @return [Object] Returns the model itself
|
466
|
+
def build_from_hash(attributes)
|
467
|
+
return nil unless attributes.is_a?(Hash)
|
468
|
+
self.class.swagger_types.each_pair do |key, type|
|
469
|
+
if type =~ /\AArray<(.*)>/i
|
470
|
+
# check to ensure the input is an array given that the attribute
|
471
|
+
# is documented as an array but the input is not
|
472
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
473
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
474
|
+
end
|
475
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
476
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
477
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
478
|
+
end
|
479
|
+
|
480
|
+
self
|
481
|
+
end
|
482
|
+
|
483
|
+
# Deserializes the data based on type
|
484
|
+
# @param string type Data type
|
485
|
+
# @param string value Value to be deserialized
|
486
|
+
# @return [Object] Deserialized data
|
487
|
+
def _deserialize(type, value)
|
488
|
+
case type.to_sym
|
489
|
+
when :DateTime
|
490
|
+
DateTime.parse(value)
|
491
|
+
when :Date
|
492
|
+
Date.parse(value)
|
493
|
+
when :String
|
494
|
+
value.to_s
|
495
|
+
when :Integer
|
496
|
+
value.to_i
|
497
|
+
when :Float
|
498
|
+
value.to_f
|
499
|
+
when :BOOLEAN
|
500
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
501
|
+
true
|
502
|
+
else
|
503
|
+
false
|
504
|
+
end
|
505
|
+
when :Object
|
506
|
+
# generic object (usually a Hash), return directly
|
507
|
+
value
|
508
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
509
|
+
inner_type = Regexp.last_match[:inner_type]
|
510
|
+
value.map { |v| _deserialize(inner_type, v) }
|
511
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
512
|
+
k_type = Regexp.last_match[:k_type]
|
513
|
+
v_type = Regexp.last_match[:v_type]
|
514
|
+
{}.tap do |hash|
|
515
|
+
value.each do |k, v|
|
516
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
517
|
+
end
|
518
|
+
end
|
519
|
+
else # model
|
520
|
+
temp_model = CloudmersiveConvertApiClient.const_get(type).new
|
521
|
+
temp_model.build_from_hash(value)
|
522
|
+
end
|
523
|
+
end
|
524
|
+
|
525
|
+
# Returns the string representation of the object
|
526
|
+
# @return [String] String presentation of the object
|
527
|
+
def to_s
|
528
|
+
to_hash.to_s
|
529
|
+
end
|
530
|
+
|
531
|
+
# to_body is an alias to to_hash (backward compatibility)
|
532
|
+
# @return [Hash] Returns the object in the form of hash
|
533
|
+
def to_body
|
534
|
+
to_hash
|
535
|
+
end
|
536
|
+
|
537
|
+
# Returns the object in the form of hash
|
538
|
+
# @return [Hash] Returns the object in the form of hash
|
539
|
+
def to_hash
|
540
|
+
hash = {}
|
541
|
+
self.class.attribute_map.each_pair do |attr, param|
|
542
|
+
value = self.send(attr)
|
543
|
+
next if value.nil?
|
544
|
+
hash[param] = _to_hash(value)
|
545
|
+
end
|
546
|
+
hash
|
547
|
+
end
|
548
|
+
|
549
|
+
# Outputs non-array value in the form of hash
|
550
|
+
# For object, use to_hash. Otherwise, just return the value
|
551
|
+
# @param [Object] value Any valid value
|
552
|
+
# @return [Hash] Returns the value in the form of hash
|
553
|
+
def _to_hash(value)
|
554
|
+
if value.is_a?(Array)
|
555
|
+
value.compact.map { |v| _to_hash(v) }
|
556
|
+
elsif value.is_a?(Hash)
|
557
|
+
{}.tap do |hash|
|
558
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
559
|
+
end
|
560
|
+
elsif value.respond_to? :to_hash
|
561
|
+
value.to_hash
|
562
|
+
else
|
563
|
+
value
|
564
|
+
end
|
565
|
+
end
|
566
|
+
|
567
|
+
end
|
568
|
+
end
|