cloudmersive-convert-api-client 1.2.8 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/{client/Gemfile → Gemfile} +0 -0
- data/{client/README.md → README.md} +49 -4
- data/{client/Rakefile → Rakefile} +0 -0
- data/{client/cloudmersive-convert-api-client.gemspec → cloudmersive-convert-api-client.gemspec} +0 -0
- data/{client/docs → docs}/CompareDocumentApi.md +0 -0
- data/{client/docs → docs}/ConvertDataApi.md +0 -0
- data/{client/docs → docs}/ConvertDocumentApi.md +0 -0
- data/{client/docs → docs}/ConvertImageApi.md +113 -0
- data/{client/docs → docs}/ConvertTemplateApi.md +0 -0
- data/{client/docs → docs}/ConvertWebApi.md +0 -0
- data/{client/docs → docs}/ConvertedPngPage.md +0 -0
- data/{client/docs → docs}/DocumentValidationError.md +0 -0
- data/{client/docs → docs}/DocumentValidationResult.md +0 -0
- data/docs/DocxBody.md +10 -0
- data/docs/DocxCellStyle.md +11 -0
- data/{client/docs → docs}/DocxFooter.md +1 -0
- data/{client/docs → docs}/DocxHeader.md +1 -0
- data/docs/DocxImage.md +20 -0
- data/docs/DocxInsertImageRequest.md +14 -0
- data/{client/docs → docs}/DocxInsertImageResponse.md +0 -0
- data/{client/docs → docs}/DocxParagraph.md +1 -0
- data/docs/DocxRemoveObjectRequest.md +10 -0
- data/docs/DocxRemoveObjectResponse.md +9 -0
- data/{client/docs → docs}/DocxRun.md +1 -0
- data/{client/docs → docs}/DocxSection.md +1 -0
- data/{client/docs → docs}/DocxSetFooterRequest.md +0 -0
- data/{client/docs → docs}/DocxSetFooterResponse.md +0 -0
- data/{client/docs → docs}/DocxSetHeaderRequest.md +0 -0
- data/{client/docs → docs}/DocxSetHeaderResponse.md +0 -0
- data/{client/docs → docs}/DocxStyle.md +1 -0
- data/{client/docs → docs}/DocxTable.md +2 -1
- data/{client/docs → docs}/DocxTableCell.md +1 -0
- data/{client/docs → docs}/DocxTableRow.md +1 -0
- data/{client/docs → docs}/DocxText.md +1 -0
- data/{client/docs → docs}/EditDocumentApi.md +605 -0
- data/docs/ExifValue.md +10 -0
- data/{client/docs → docs}/FinishEditingRequest.md +0 -0
- data/docs/GetDocxBodyRequest.md +9 -0
- data/docs/GetDocxBodyResponse.md +9 -0
- data/{client/docs → docs}/GetDocxHeadersAndFootersRequest.md +0 -0
- data/{client/docs → docs}/GetDocxHeadersAndFootersResponse.md +0 -0
- data/docs/GetDocxImagesRequest.md +9 -0
- data/docs/GetDocxImagesResponse.md +9 -0
- data/docs/GetDocxSectionsRequest.md +9 -0
- data/docs/GetDocxSectionsResponse.md +9 -0
- data/{client/docs → docs}/GetDocxStylesRequest.md +0 -0
- data/{client/docs → docs}/GetDocxStylesResponse.md +0 -0
- data/{client/docs → docs}/GetDocxTablesRequest.md +0 -0
- data/{client/docs → docs}/GetDocxTablesResponse.md +0 -0
- data/docs/GetImageInfoResult.md +24 -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/GetXlsxStylesRequest.md +9 -0
- data/docs/GetXlsxStylesResponse.md +9 -0
- data/docs/GetXlsxWorksheetsRequest.md +9 -0
- data/docs/GetXlsxWorksheetsResponse.md +9 -0
- data/{client/docs → docs}/HtmlMdResult.md +0 -0
- data/{client/docs → docs}/HtmlTemplateApplicationRequest.md +0 -0
- data/{client/docs → docs}/HtmlTemplateApplicationResponse.md +0 -0
- data/{client/docs → docs}/HtmlTemplateOperation.md +0 -0
- data/{client/docs → docs}/HtmlToOfficeRequest.md +0 -0
- data/{client/docs → docs}/HtmlToPdfRequest.md +0 -0
- data/docs/InsertDocxInsertParagraphRequest.md +12 -0
- data/docs/InsertDocxInsertParagraphResponse.md +9 -0
- data/docs/InsertDocxTablesRequest.md +12 -0
- data/{client/docs → docs}/InsertDocxTablesResponse.md +0 -0
- data/docs/InsertXlsxWorksheetRequest.md +10 -0
- data/docs/InsertXlsxWorksheetResponse.md +9 -0
- data/{client/docs → docs}/MergeDocumentApi.md +0 -0
- data/{client/docs → docs}/PdfToPngResult.md +0 -0
- data/{client/docs → docs}/RemoveDocxHeadersAndFootersRequest.md +0 -0
- data/{client/docs → docs}/RemoveDocxHeadersAndFootersResponse.md +0 -0
- data/{client/docs → docs}/ReplaceStringRequest.md +0 -0
- data/{client/docs → docs}/ScreenshotRequest.md +0 -0
- data/{client/docs → docs}/ValidateDocumentApi.md +0 -0
- data/{client/docs → docs}/ViewerResponse.md +0 -0
- data/{client/docs → docs}/ViewerToolsApi.md +0 -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/XlsxWorksheet.md +9 -0
- data/{client/git_push.sh → git_push.sh} +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client.rb +32 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/compare_document_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/convert_data_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/convert_document_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/convert_image_api.rb +118 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/convert_template_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/convert_web_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/edit_document_api.rb +605 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/merge_document_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/validate_document_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api/viewer_tools_api.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api_client.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/api_error.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/configuration.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/converted_png_page.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/document_validation_error.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/document_validation_result.rb +0 -0
- data/lib/cloudmersive-convert-api-client/models/docx_body.rb +213 -0
- data/lib/cloudmersive-convert-api-client/models/docx_cell_style.rb +219 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_footer.rb +11 -1
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_header.rb +11 -1
- data/lib/cloudmersive-convert-api-client/models/docx_image.rb +309 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_insert_image_request.rb +27 -17
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_insert_image_response.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_paragraph.rb +11 -1
- data/lib/cloudmersive-convert-api-client/models/docx_remove_object_request.rb +225 -0
- data/lib/cloudmersive-convert-api-client/models/docx_remove_object_response.rb +199 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_run.rb +11 -1
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_section.rb +14 -4
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_set_footer_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_set_footer_response.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_set_header_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_set_header_response.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_style.rb +11 -1
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_table.rb +12 -2
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_table_cell.rb +11 -1
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_table_row.rb +11 -1
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/docx_text.rb +11 -1
- data/lib/cloudmersive-convert-api-client/models/exif_value.rb +206 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/finish_editing_request.rb +0 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_body_request.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_body_response.rb +199 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_response.rb +0 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_images_request.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_images_response.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_sections_request.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_sections_response.rb +201 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_styles_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_styles_response.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_tables_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/get_docx_tables_response.rb +0 -0
- data/lib/cloudmersive-convert-api-client/models/get_image_info_result.rb +350 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_columns_request.rb +225 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_columns_response.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_images_request.rb +225 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_images_response.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_rows_and_cells_request.rb +225 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_rows_and_cells_response.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_styles_request.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_styles_response.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_worksheets_request.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/get_xlsx_worksheets_response.rb +201 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_md_result.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_template_application_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_template_application_response.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_template_operation.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_to_office_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/html_to_pdf_request.rb +0 -0
- data/lib/cloudmersive-convert-api-client/models/insert_docx_insert_paragraph_request.rb +245 -0
- data/lib/cloudmersive-convert-api-client/models/insert_docx_insert_paragraph_response.rb +199 -0
- data/lib/cloudmersive-convert-api-client/models/insert_docx_tables_request.rb +245 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/insert_docx_tables_response.rb +0 -0
- data/{client/lib/cloudmersive-convert-api-client/models/insert_docx_tables_request.rb → lib/cloudmersive-convert-api-client/models/insert_xlsx_worksheet_request.rb} +10 -10
- data/lib/cloudmersive-convert-api-client/models/insert_xlsx_worksheet_response.rb +199 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/pdf_to_png_result.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_response.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/replace_string_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/screenshot_request.rb +0 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/models/viewer_response.rb +0 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_image.rb +229 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_cell.rb +228 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_column.rb +199 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_spreadsheet_row.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_worksheet.rb +199 -0
- data/{client/lib → lib}/cloudmersive-convert-api-client/version.rb +1 -1
- data/{client/spec → spec}/api/compare_document_api_spec.rb +0 -0
- data/{client/spec → spec}/api/convert_data_api_spec.rb +0 -0
- data/{client/spec → spec}/api/convert_document_api_spec.rb +0 -0
- data/{client/spec → spec}/api/convert_image_api_spec.rb +25 -0
- data/{client/spec → spec}/api/convert_template_api_spec.rb +0 -0
- data/{client/spec → spec}/api/convert_web_api_spec.rb +0 -0
- data/{client/spec → spec}/api/edit_document_api_spec.rb +132 -0
- data/{client/spec → spec}/api/merge_document_api_spec.rb +0 -0
- data/{client/spec → spec}/api/validate_document_api_spec.rb +0 -0
- data/{client/spec → spec}/api/viewer_tools_api_spec.rb +0 -0
- data/{client/spec → spec}/api_client_spec.rb +0 -0
- data/{client/spec → spec}/configuration_spec.rb +0 -0
- data/{client/spec → spec}/models/converted_png_page_spec.rb +0 -0
- data/{client/spec → spec}/models/document_validation_error_spec.rb +0 -0
- data/{client/spec → spec}/models/document_validation_result_spec.rb +0 -0
- data/spec/models/docx_body_spec.rb +54 -0
- data/spec/models/docx_cell_style_spec.rb +60 -0
- data/{client/spec → spec}/models/docx_footer_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_header_spec.rb +6 -0
- data/spec/models/docx_image_spec.rb +114 -0
- data/{client/spec → spec}/models/docx_insert_image_request_spec.rb +8 -2
- data/{client/spec → spec}/models/docx_insert_image_response_spec.rb +0 -0
- data/{client/spec → spec}/models/docx_paragraph_spec.rb +6 -0
- data/spec/models/docx_remove_object_request_spec.rb +54 -0
- data/spec/models/docx_remove_object_response_spec.rb +48 -0
- data/{client/spec → spec}/models/docx_run_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_section_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_set_footer_request_spec.rb +0 -0
- data/{client/spec → spec}/models/docx_set_footer_response_spec.rb +0 -0
- data/{client/spec → spec}/models/docx_set_header_request_spec.rb +0 -0
- data/{client/spec → spec}/models/docx_set_header_response_spec.rb +0 -0
- data/{client/spec → spec}/models/docx_style_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_table_cell_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_table_row_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_table_spec.rb +6 -0
- data/{client/spec → spec}/models/docx_text_spec.rb +6 -0
- data/spec/models/exif_value_spec.rb +54 -0
- data/{client/spec → spec}/models/finish_editing_request_spec.rb +0 -0
- data/spec/models/get_docx_body_request_spec.rb +48 -0
- data/spec/models/get_docx_body_response_spec.rb +48 -0
- data/{client/spec → spec}/models/get_docx_headers_and_footers_request_spec.rb +0 -0
- data/{client/spec → spec}/models/get_docx_headers_and_footers_response_spec.rb +0 -0
- data/spec/models/get_docx_images_request_spec.rb +48 -0
- data/spec/models/get_docx_images_response_spec.rb +48 -0
- data/spec/models/get_docx_sections_request_spec.rb +48 -0
- data/spec/models/get_docx_sections_response_spec.rb +48 -0
- data/{client/spec → spec}/models/get_docx_styles_request_spec.rb +0 -0
- data/{client/spec → spec}/models/get_docx_styles_response_spec.rb +0 -0
- data/{client/spec → spec}/models/get_docx_tables_request_spec.rb +0 -0
- data/{client/spec → spec}/models/get_docx_tables_response_spec.rb +0 -0
- data/spec/models/get_image_info_result_spec.rb +138 -0
- data/spec/models/get_xlsx_columns_request_spec.rb +54 -0
- data/spec/models/get_xlsx_columns_response_spec.rb +48 -0
- data/spec/models/get_xlsx_images_request_spec.rb +54 -0
- data/spec/models/get_xlsx_images_response_spec.rb +48 -0
- data/spec/models/get_xlsx_rows_and_cells_request_spec.rb +54 -0
- data/spec/models/get_xlsx_rows_and_cells_response_spec.rb +48 -0
- data/spec/models/get_xlsx_styles_request_spec.rb +48 -0
- data/spec/models/get_xlsx_styles_response_spec.rb +48 -0
- data/spec/models/get_xlsx_worksheets_request_spec.rb +48 -0
- data/spec/models/get_xlsx_worksheets_response_spec.rb +48 -0
- data/{client/spec → spec}/models/html_md_result_spec.rb +0 -0
- data/{client/spec → spec}/models/html_template_application_request_spec.rb +0 -0
- data/{client/spec → spec}/models/html_template_application_response_spec.rb +0 -0
- data/{client/spec → spec}/models/html_template_operation_spec.rb +0 -0
- data/{client/spec → spec}/models/html_to_office_request_spec.rb +0 -0
- data/{client/spec → spec}/models/html_to_pdf_request_spec.rb +0 -0
- data/spec/models/insert_docx_insert_paragraph_request_spec.rb +66 -0
- data/spec/models/insert_docx_insert_paragraph_response_spec.rb +48 -0
- data/{client/spec → spec}/models/insert_docx_tables_request_spec.rb +12 -0
- data/{client/spec → spec}/models/insert_docx_tables_response_spec.rb +0 -0
- data/spec/models/insert_xlsx_worksheet_request_spec.rb +54 -0
- data/spec/models/insert_xlsx_worksheet_response_spec.rb +48 -0
- data/{client/spec → spec}/models/pdf_to_png_result_spec.rb +0 -0
- data/{client/spec → spec}/models/remove_docx_headers_and_footers_request_spec.rb +0 -0
- data/{client/spec → spec}/models/remove_docx_headers_and_footers_response_spec.rb +0 -0
- data/{client/spec → spec}/models/replace_string_request_spec.rb +0 -0
- data/{client/spec → spec}/models/screenshot_request_spec.rb +0 -0
- data/{client/spec → spec}/models/viewer_response_spec.rb +0 -0
- data/spec/models/xlsx_image_spec.rb +66 -0
- data/spec/models/xlsx_spreadsheet_cell_spec.rb +66 -0
- data/spec/models/xlsx_spreadsheet_column_spec.rb +48 -0
- data/spec/models/xlsx_spreadsheet_row_spec.rb +48 -0
- data/spec/models/xlsx_worksheet_spec.rb +48 -0
- data/{client/spec → spec}/spec_helper.rb +0 -0
- metadata +261 -171
- data/LICENSE +0 -201
- data/build.ps1 +0 -12
- data/client/docs/DocxInsertImageRequest.md +0 -13
- data/client/docs/InsertDocxTablesRequest.md +0 -10
- data/cloudmersiveConvertApiClient-1.2.6.gem +0 -0
- data/cloudmersiveConvertApiClient-1.2.7.gem +0 -0
- data/packageconfig.json +0 -11
- data/swagger-codegen-cli.jar +0 -0
@@ -0,0 +1,245 @@
|
|
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: unset
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module CloudmersiveConvertApiClient
|
16
|
+
# Input to a Insert Tables request
|
17
|
+
class InsertDocxTablesRequest
|
18
|
+
# Optional: Bytes of the input file to operate on
|
19
|
+
attr_accessor :input_file_bytes
|
20
|
+
|
21
|
+
# Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public).
|
22
|
+
attr_accessor :input_file_url
|
23
|
+
|
24
|
+
# Table you would like to insert
|
25
|
+
attr_accessor :table_to_insert
|
26
|
+
|
27
|
+
# Optional; default is DocumentEnd. Placement Type of the insert; possible values are: DocumentStart (very beginning of the document), DocumentEnd (very end of the document), BeforeExistingObject (right before an existing object - fill in the InsertPath field using the Path value from an existing object), AfterExistingObject (right after an existing object - fill in the InsertPath field using the Path value from an existing object)
|
28
|
+
attr_accessor :insert_placement
|
29
|
+
|
30
|
+
# Optional; location within the document to insert the object; fill in the InsertPath field using the Path value from an existing object. Used with InsertPlacement of BeforeExistingObject or AfterExistingObject
|
31
|
+
attr_accessor :insert_path
|
32
|
+
|
33
|
+
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
35
|
+
def self.attribute_map
|
36
|
+
{
|
37
|
+
:'input_file_bytes' => :'InputFileBytes',
|
38
|
+
:'input_file_url' => :'InputFileUrl',
|
39
|
+
:'table_to_insert' => :'TableToInsert',
|
40
|
+
:'insert_placement' => :'InsertPlacement',
|
41
|
+
:'insert_path' => :'InsertPath'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
def self.swagger_types
|
47
|
+
{
|
48
|
+
:'input_file_bytes' => :'String',
|
49
|
+
:'input_file_url' => :'String',
|
50
|
+
:'table_to_insert' => :'DocxTable',
|
51
|
+
:'insert_placement' => :'String',
|
52
|
+
:'insert_path' => :'String'
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
# Initializes the object
|
57
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
58
|
+
def initialize(attributes = {})
|
59
|
+
return unless attributes.is_a?(Hash)
|
60
|
+
|
61
|
+
# convert string to symbol for hash key
|
62
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
63
|
+
|
64
|
+
if attributes.has_key?(:'InputFileBytes')
|
65
|
+
self.input_file_bytes = attributes[:'InputFileBytes']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.has_key?(:'InputFileUrl')
|
69
|
+
self.input_file_url = attributes[:'InputFileUrl']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.has_key?(:'TableToInsert')
|
73
|
+
self.table_to_insert = attributes[:'TableToInsert']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.has_key?(:'InsertPlacement')
|
77
|
+
self.insert_placement = attributes[:'InsertPlacement']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.has_key?(:'InsertPath')
|
81
|
+
self.insert_path = attributes[:'InsertPath']
|
82
|
+
end
|
83
|
+
|
84
|
+
end
|
85
|
+
|
86
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
87
|
+
# @return Array for valid properties with the reasons
|
88
|
+
def list_invalid_properties
|
89
|
+
invalid_properties = Array.new
|
90
|
+
if !@input_file_bytes.nil? && @input_file_bytes !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
|
91
|
+
invalid_properties.push("invalid value for 'input_file_bytes', must conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.")
|
92
|
+
end
|
93
|
+
|
94
|
+
return invalid_properties
|
95
|
+
end
|
96
|
+
|
97
|
+
# Check to see if the all the properties in the model are valid
|
98
|
+
# @return true if the model is valid
|
99
|
+
def valid?
|
100
|
+
return false if !@input_file_bytes.nil? && @input_file_bytes !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
|
101
|
+
return true
|
102
|
+
end
|
103
|
+
|
104
|
+
# Custom attribute writer method with validation
|
105
|
+
# @param [Object] input_file_bytes Value to be assigned
|
106
|
+
def input_file_bytes=(input_file_bytes)
|
107
|
+
|
108
|
+
if !input_file_bytes.nil? && input_file_bytes !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
|
109
|
+
fail ArgumentError, "invalid value for 'input_file_bytes', must conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/."
|
110
|
+
end
|
111
|
+
|
112
|
+
@input_file_bytes = input_file_bytes
|
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
|
+
input_file_bytes == o.input_file_bytes &&
|
121
|
+
input_file_url == o.input_file_url &&
|
122
|
+
table_to_insert == o.table_to_insert &&
|
123
|
+
insert_placement == o.insert_placement &&
|
124
|
+
insert_path == o.insert_path
|
125
|
+
end
|
126
|
+
|
127
|
+
# @see the `==` method
|
128
|
+
# @param [Object] Object to be compared
|
129
|
+
def eql?(o)
|
130
|
+
self == o
|
131
|
+
end
|
132
|
+
|
133
|
+
# Calculates hash code according to all attributes.
|
134
|
+
# @return [Fixnum] Hash code
|
135
|
+
def hash
|
136
|
+
[input_file_bytes, input_file_url, table_to_insert, insert_placement, insert_path].hash
|
137
|
+
end
|
138
|
+
|
139
|
+
# Builds the object from hash
|
140
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
141
|
+
# @return [Object] Returns the model itself
|
142
|
+
def build_from_hash(attributes)
|
143
|
+
return nil unless attributes.is_a?(Hash)
|
144
|
+
self.class.swagger_types.each_pair do |key, type|
|
145
|
+
if type =~ /\AArray<(.*)>/i
|
146
|
+
# check to ensure the input is an array given that the the attribute
|
147
|
+
# is documented as an array but the input is not
|
148
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
149
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
150
|
+
end
|
151
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
152
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
153
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
154
|
+
end
|
155
|
+
|
156
|
+
self
|
157
|
+
end
|
158
|
+
|
159
|
+
# Deserializes the data based on type
|
160
|
+
# @param string type Data type
|
161
|
+
# @param string value Value to be deserialized
|
162
|
+
# @return [Object] Deserialized data
|
163
|
+
def _deserialize(type, value)
|
164
|
+
case type.to_sym
|
165
|
+
when :DateTime
|
166
|
+
DateTime.parse(value)
|
167
|
+
when :Date
|
168
|
+
Date.parse(value)
|
169
|
+
when :String
|
170
|
+
value.to_s
|
171
|
+
when :Integer
|
172
|
+
value.to_i
|
173
|
+
when :Float
|
174
|
+
value.to_f
|
175
|
+
when :BOOLEAN
|
176
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
177
|
+
true
|
178
|
+
else
|
179
|
+
false
|
180
|
+
end
|
181
|
+
when :Object
|
182
|
+
# generic object (usually a Hash), return directly
|
183
|
+
value
|
184
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
185
|
+
inner_type = Regexp.last_match[:inner_type]
|
186
|
+
value.map { |v| _deserialize(inner_type, v) }
|
187
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
188
|
+
k_type = Regexp.last_match[:k_type]
|
189
|
+
v_type = Regexp.last_match[:v_type]
|
190
|
+
{}.tap do |hash|
|
191
|
+
value.each do |k, v|
|
192
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
else # model
|
196
|
+
temp_model = CloudmersiveConvertApiClient.const_get(type).new
|
197
|
+
temp_model.build_from_hash(value)
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
# Returns the string representation of the object
|
202
|
+
# @return [String] String presentation of the object
|
203
|
+
def to_s
|
204
|
+
to_hash.to_s
|
205
|
+
end
|
206
|
+
|
207
|
+
# to_body is an alias to to_hash (backward compatibility)
|
208
|
+
# @return [Hash] Returns the object in the form of hash
|
209
|
+
def to_body
|
210
|
+
to_hash
|
211
|
+
end
|
212
|
+
|
213
|
+
# Returns the object in the form of hash
|
214
|
+
# @return [Hash] Returns the object in the form of hash
|
215
|
+
def to_hash
|
216
|
+
hash = {}
|
217
|
+
self.class.attribute_map.each_pair do |attr, param|
|
218
|
+
value = self.send(attr)
|
219
|
+
next if value.nil?
|
220
|
+
hash[param] = _to_hash(value)
|
221
|
+
end
|
222
|
+
hash
|
223
|
+
end
|
224
|
+
|
225
|
+
# Outputs non-array value in the form of hash
|
226
|
+
# For object, use to_hash. Otherwise, just return the value
|
227
|
+
# @param [Object] value Any valid value
|
228
|
+
# @return [Hash] Returns the value in the form of hash
|
229
|
+
def _to_hash(value)
|
230
|
+
if value.is_a?(Array)
|
231
|
+
value.compact.map{ |v| _to_hash(v) }
|
232
|
+
elsif value.is_a?(Hash)
|
233
|
+
{}.tap do |hash|
|
234
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
235
|
+
end
|
236
|
+
elsif value.respond_to? :to_hash
|
237
|
+
value.to_hash
|
238
|
+
else
|
239
|
+
value
|
240
|
+
end
|
241
|
+
end
|
242
|
+
|
243
|
+
end
|
244
|
+
|
245
|
+
end
|
data/{client/lib → lib}/cloudmersive-convert-api-client/models/insert_docx_tables_response.rb
RENAMED
File without changes
|
@@ -13,16 +13,16 @@ Swagger Codegen version: unset
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module CloudmersiveConvertApiClient
|
16
|
-
# Input to a
|
17
|
-
class
|
16
|
+
# Input to a Get Worksheets request
|
17
|
+
class InsertXlsxWorksheetRequest
|
18
18
|
# Optional: Bytes of the input file to operate on
|
19
19
|
attr_accessor :input_file_bytes
|
20
20
|
|
21
21
|
# Optional: URL of a file to operate on as input. This can be a public URL, or you can also use the begin-editing API to upload a document and pass in the secure URL result from that operation as the URL here (this URL is not public).
|
22
22
|
attr_accessor :input_file_url
|
23
23
|
|
24
|
-
#
|
25
|
-
attr_accessor :
|
24
|
+
# Workersheet to insert
|
25
|
+
attr_accessor :worksheet_to_insert
|
26
26
|
|
27
27
|
|
28
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -30,7 +30,7 @@ module CloudmersiveConvertApiClient
|
|
30
30
|
{
|
31
31
|
:'input_file_bytes' => :'InputFileBytes',
|
32
32
|
:'input_file_url' => :'InputFileUrl',
|
33
|
-
:'
|
33
|
+
:'worksheet_to_insert' => :'WorksheetToInsert'
|
34
34
|
}
|
35
35
|
end
|
36
36
|
|
@@ -39,7 +39,7 @@ module CloudmersiveConvertApiClient
|
|
39
39
|
{
|
40
40
|
:'input_file_bytes' => :'String',
|
41
41
|
:'input_file_url' => :'String',
|
42
|
-
:'
|
42
|
+
:'worksheet_to_insert' => :'XlsxWorksheet'
|
43
43
|
}
|
44
44
|
end
|
45
45
|
|
@@ -59,8 +59,8 @@ module CloudmersiveConvertApiClient
|
|
59
59
|
self.input_file_url = attributes[:'InputFileUrl']
|
60
60
|
end
|
61
61
|
|
62
|
-
if attributes.has_key?(:'
|
63
|
-
self.
|
62
|
+
if attributes.has_key?(:'WorksheetToInsert')
|
63
|
+
self.worksheet_to_insert = attributes[:'WorksheetToInsert']
|
64
64
|
end
|
65
65
|
|
66
66
|
end
|
@@ -101,7 +101,7 @@ module CloudmersiveConvertApiClient
|
|
101
101
|
self.class == o.class &&
|
102
102
|
input_file_bytes == o.input_file_bytes &&
|
103
103
|
input_file_url == o.input_file_url &&
|
104
|
-
|
104
|
+
worksheet_to_insert == o.worksheet_to_insert
|
105
105
|
end
|
106
106
|
|
107
107
|
# @see the `==` method
|
@@ -113,7 +113,7 @@ module CloudmersiveConvertApiClient
|
|
113
113
|
# Calculates hash code according to all attributes.
|
114
114
|
# @return [Fixnum] Hash code
|
115
115
|
def hash
|
116
|
-
[input_file_bytes, input_file_url,
|
116
|
+
[input_file_bytes, input_file_url, worksheet_to_insert].hash
|
117
117
|
end
|
118
118
|
|
119
119
|
# Builds the object from hash
|
@@ -0,0 +1,199 @@
|
|
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: unset
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module CloudmersiveConvertApiClient
|
16
|
+
# Result of running a Get-Worksheets command
|
17
|
+
class InsertXlsxWorksheetResponse
|
18
|
+
# True if successful, false otherwise
|
19
|
+
attr_accessor :successful
|
20
|
+
|
21
|
+
# URL to the edited XLSX file; file is stored in an in-memory cache and will be deleted. Call Finish-Editing to get the result document contents.
|
22
|
+
attr_accessor :edited_document_url
|
23
|
+
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'successful' => :'Successful',
|
29
|
+
:'edited_document_url' => :'EditedDocumentURL'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# Attribute type mapping.
|
34
|
+
def self.swagger_types
|
35
|
+
{
|
36
|
+
:'successful' => :'BOOLEAN',
|
37
|
+
:'edited_document_url' => :'String'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Initializes the object
|
42
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
43
|
+
def initialize(attributes = {})
|
44
|
+
return unless attributes.is_a?(Hash)
|
45
|
+
|
46
|
+
# convert string to symbol for hash key
|
47
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
48
|
+
|
49
|
+
if attributes.has_key?(:'Successful')
|
50
|
+
self.successful = attributes[:'Successful']
|
51
|
+
end
|
52
|
+
|
53
|
+
if attributes.has_key?(:'EditedDocumentURL')
|
54
|
+
self.edited_document_url = attributes[:'EditedDocumentURL']
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
58
|
+
|
59
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
60
|
+
# @return Array for valid properties with the reasons
|
61
|
+
def list_invalid_properties
|
62
|
+
invalid_properties = Array.new
|
63
|
+
return invalid_properties
|
64
|
+
end
|
65
|
+
|
66
|
+
# Check to see if the all the properties in the model are valid
|
67
|
+
# @return true if the model is valid
|
68
|
+
def valid?
|
69
|
+
return true
|
70
|
+
end
|
71
|
+
|
72
|
+
# Checks equality by comparing each attribute.
|
73
|
+
# @param [Object] Object to be compared
|
74
|
+
def ==(o)
|
75
|
+
return true if self.equal?(o)
|
76
|
+
self.class == o.class &&
|
77
|
+
successful == o.successful &&
|
78
|
+
edited_document_url == o.edited_document_url
|
79
|
+
end
|
80
|
+
|
81
|
+
# @see the `==` method
|
82
|
+
# @param [Object] Object to be compared
|
83
|
+
def eql?(o)
|
84
|
+
self == o
|
85
|
+
end
|
86
|
+
|
87
|
+
# Calculates hash code according to all attributes.
|
88
|
+
# @return [Fixnum] Hash code
|
89
|
+
def hash
|
90
|
+
[successful, edited_document_url].hash
|
91
|
+
end
|
92
|
+
|
93
|
+
# Builds the object from hash
|
94
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
95
|
+
# @return [Object] Returns the model itself
|
96
|
+
def build_from_hash(attributes)
|
97
|
+
return nil unless attributes.is_a?(Hash)
|
98
|
+
self.class.swagger_types.each_pair do |key, type|
|
99
|
+
if type =~ /\AArray<(.*)>/i
|
100
|
+
# check to ensure the input is an array given that the the attribute
|
101
|
+
# is documented as an array but the input is not
|
102
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
103
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
104
|
+
end
|
105
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
106
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
107
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
108
|
+
end
|
109
|
+
|
110
|
+
self
|
111
|
+
end
|
112
|
+
|
113
|
+
# Deserializes the data based on type
|
114
|
+
# @param string type Data type
|
115
|
+
# @param string value Value to be deserialized
|
116
|
+
# @return [Object] Deserialized data
|
117
|
+
def _deserialize(type, value)
|
118
|
+
case type.to_sym
|
119
|
+
when :DateTime
|
120
|
+
DateTime.parse(value)
|
121
|
+
when :Date
|
122
|
+
Date.parse(value)
|
123
|
+
when :String
|
124
|
+
value.to_s
|
125
|
+
when :Integer
|
126
|
+
value.to_i
|
127
|
+
when :Float
|
128
|
+
value.to_f
|
129
|
+
when :BOOLEAN
|
130
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
131
|
+
true
|
132
|
+
else
|
133
|
+
false
|
134
|
+
end
|
135
|
+
when :Object
|
136
|
+
# generic object (usually a Hash), return directly
|
137
|
+
value
|
138
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
139
|
+
inner_type = Regexp.last_match[:inner_type]
|
140
|
+
value.map { |v| _deserialize(inner_type, v) }
|
141
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
142
|
+
k_type = Regexp.last_match[:k_type]
|
143
|
+
v_type = Regexp.last_match[:v_type]
|
144
|
+
{}.tap do |hash|
|
145
|
+
value.each do |k, v|
|
146
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
147
|
+
end
|
148
|
+
end
|
149
|
+
else # model
|
150
|
+
temp_model = CloudmersiveConvertApiClient.const_get(type).new
|
151
|
+
temp_model.build_from_hash(value)
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
# Returns the string representation of the object
|
156
|
+
# @return [String] String presentation of the object
|
157
|
+
def to_s
|
158
|
+
to_hash.to_s
|
159
|
+
end
|
160
|
+
|
161
|
+
# to_body is an alias to to_hash (backward compatibility)
|
162
|
+
# @return [Hash] Returns the object in the form of hash
|
163
|
+
def to_body
|
164
|
+
to_hash
|
165
|
+
end
|
166
|
+
|
167
|
+
# Returns the object in the form of hash
|
168
|
+
# @return [Hash] Returns the object in the form of hash
|
169
|
+
def to_hash
|
170
|
+
hash = {}
|
171
|
+
self.class.attribute_map.each_pair do |attr, param|
|
172
|
+
value = self.send(attr)
|
173
|
+
next if value.nil?
|
174
|
+
hash[param] = _to_hash(value)
|
175
|
+
end
|
176
|
+
hash
|
177
|
+
end
|
178
|
+
|
179
|
+
# Outputs non-array value in the form of hash
|
180
|
+
# For object, use to_hash. Otherwise, just return the value
|
181
|
+
# @param [Object] value Any valid value
|
182
|
+
# @return [Hash] Returns the value in the form of hash
|
183
|
+
def _to_hash(value)
|
184
|
+
if value.is_a?(Array)
|
185
|
+
value.compact.map{ |v| _to_hash(v) }
|
186
|
+
elsif value.is_a?(Hash)
|
187
|
+
{}.tap do |hash|
|
188
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
189
|
+
end
|
190
|
+
elsif value.respond_to? :to_hash
|
191
|
+
value.to_hash
|
192
|
+
else
|
193
|
+
value
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
end
|
198
|
+
|
199
|
+
end
|