cloudmersive-convert-api-client 1.2.3 → 1.2.8
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/LICENSE +201 -0
- data/build.ps1 +12 -0
- data/client/Gemfile +7 -0
- data/client/README.md +184 -0
- data/client/Rakefile +8 -0
- data/client/cloudmersive-convert-api-client.gemspec +45 -0
- data/client/docs/CompareDocumentApi.md +66 -0
- data/client/docs/ConvertDataApi.md +118 -0
- data/client/docs/ConvertDocumentApi.md +723 -0
- data/client/docs/ConvertImageApi.md +69 -0
- data/client/docs/ConvertTemplateApi.md +63 -0
- data/client/docs/ConvertWebApi.md +283 -0
- data/client/docs/ConvertedPngPage.md +9 -0
- data/client/docs/DocumentValidationError.md +11 -0
- data/client/docs/DocumentValidationResult.md +11 -0
- data/client/docs/DocxFooter.md +9 -0
- data/client/docs/DocxHeader.md +9 -0
- data/client/docs/DocxInsertImageRequest.md +13 -0
- data/client/docs/DocxInsertImageResponse.md +9 -0
- data/client/docs/DocxParagraph.md +10 -0
- data/client/docs/DocxRun.md +14 -0
- data/client/docs/DocxSection.md +8 -0
- data/client/docs/DocxSetFooterRequest.md +10 -0
- data/client/docs/DocxSetFooterResponse.md +9 -0
- data/client/docs/DocxSetHeaderRequest.md +10 -0
- data/client/docs/DocxSetHeaderResponse.md +9 -0
- data/client/docs/DocxStyle.md +13 -0
- data/client/docs/DocxTable.md +45 -0
- data/client/docs/DocxTableCell.md +14 -0
- data/client/docs/DocxTableRow.md +9 -0
- data/client/docs/DocxText.md +9 -0
- data/client/docs/EditDocumentApi.md +668 -0
- data/client/docs/FinishEditingRequest.md +8 -0
- data/client/docs/GetDocxHeadersAndFootersRequest.md +9 -0
- data/client/docs/GetDocxHeadersAndFootersResponse.md +10 -0
- data/client/docs/GetDocxStylesRequest.md +9 -0
- data/client/docs/GetDocxStylesResponse.md +9 -0
- data/client/docs/GetDocxTablesRequest.md +9 -0
- data/client/docs/GetDocxTablesResponse.md +9 -0
- data/client/docs/HtmlMdResult.md +9 -0
- data/client/docs/HtmlTemplateApplicationRequest.md +10 -0
- data/client/docs/HtmlTemplateApplicationResponse.md +9 -0
- data/client/docs/HtmlTemplateOperation.md +10 -0
- data/client/docs/HtmlToOfficeRequest.md +8 -0
- data/client/docs/HtmlToPdfRequest.md +9 -0
- data/client/docs/InsertDocxTablesRequest.md +10 -0
- data/client/docs/InsertDocxTablesResponse.md +9 -0
- data/client/docs/MergeDocumentApi.md +182 -0
- data/client/docs/PdfToPngResult.md +9 -0
- data/client/docs/RemoveDocxHeadersAndFootersRequest.md +11 -0
- data/client/docs/RemoveDocxHeadersAndFootersResponse.md +9 -0
- data/client/docs/ReplaceStringRequest.md +12 -0
- data/client/docs/ScreenshotRequest.md +9 -0
- data/client/docs/ValidateDocumentApi.md +173 -0
- data/client/docs/ViewerResponse.md +9 -0
- data/client/docs/ViewerToolsApi.md +63 -0
- data/client/git_push.sh +55 -0
- data/client/lib/cloudmersive-convert-api-client.rb +89 -0
- data/client/lib/cloudmersive-convert-api-client/api/compare_document_api.rb +86 -0
- data/client/lib/cloudmersive-convert-api-client/api/convert_data_api.rb +135 -0
- data/client/lib/cloudmersive-convert-api-client/api/convert_document_api.rb +751 -0
- data/client/lib/cloudmersive-convert-api-client/api/convert_image_api.rb +91 -0
- data/client/lib/cloudmersive-convert-api-client/api/convert_template_api.rb +78 -0
- data/client/lib/cloudmersive-convert-api-client/api/convert_web_api.rb +299 -0
- data/client/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +684 -0
- data/client/lib/cloudmersive-convert-api-client/api/merge_document_api.rb +212 -0
- data/client/lib/cloudmersive-convert-api-client/api/validate_document_api.rb +191 -0
- data/client/lib/cloudmersive-convert-api-client/api/viewer_tools_api.rb +79 -0
- data/client/lib/cloudmersive-convert-api-client/api_client.rb +389 -0
- data/client/lib/cloudmersive-convert-api-client/api_error.rb +38 -0
- data/client/lib/cloudmersive-convert-api-client/configuration.rb +209 -0
- data/client/lib/cloudmersive-convert-api-client/models/converted_png_page.rb +199 -0
- data/client/lib/cloudmersive-convert-api-client/models/document_validation_error.rb +219 -0
- data/client/lib/cloudmersive-convert-api-client/models/document_validation_result.rb +221 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_footer.rb +203 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_header.rb +203 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_insert_image_request.rb +271 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_insert_image_response.rb +199 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_paragraph.rb +211 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_run.rb +251 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_section.rb +191 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_set_footer_request.rb +225 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_set_footer_response.rb +199 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_set_header_request.rb +225 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_set_header_response.rb +199 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_style.rb +239 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_table.rb +561 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_table_cell.rb +251 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_table_row.rb +201 -0
- data/client/lib/cloudmersive-convert-api-client/models/docx_text.rb +199 -0
- data/client/lib/cloudmersive-convert-api-client/models/finish_editing_request.rb +189 -0
- data/client/lib/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_request.rb +215 -0
- data/client/lib/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_response.rb +211 -0
- data/client/lib/cloudmersive-convert-api-client/models/get_docx_styles_request.rb +215 -0
- data/client/lib/cloudmersive-convert-api-client/models/get_docx_styles_response.rb +201 -0
- data/client/lib/cloudmersive-convert-api-client/models/get_docx_tables_request.rb +215 -0
- data/client/lib/cloudmersive-convert-api-client/models/get_docx_tables_response.rb +201 -0
- data/client/lib/cloudmersive-convert-api-client/models/html_md_result.rb +199 -0
- data/client/lib/cloudmersive-convert-api-client/models/html_template_application_request.rb +208 -0
- data/client/lib/cloudmersive-convert-api-client/models/html_template_application_response.rb +197 -0
- data/client/lib/cloudmersive-convert-api-client/models/html_template_operation.rb +239 -0
- data/client/lib/cloudmersive-convert-api-client/models/html_to_office_request.rb +188 -0
- data/client/lib/cloudmersive-convert-api-client/models/html_to_pdf_request.rb +197 -0
- data/client/lib/cloudmersive-convert-api-client/models/insert_docx_tables_request.rb +225 -0
- data/client/lib/cloudmersive-convert-api-client/models/insert_docx_tables_response.rb +199 -0
- data/client/lib/cloudmersive-convert-api-client/models/pdf_to_png_result.rb +201 -0
- data/client/lib/cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_request.rb +235 -0
- data/client/lib/cloudmersive-convert-api-client/models/remove_docx_headers_and_footers_response.rb +199 -0
- data/client/lib/cloudmersive-convert-api-client/models/replace_string_request.rb +245 -0
- data/client/lib/cloudmersive-convert-api-client/models/screenshot_request.rb +197 -0
- data/client/lib/cloudmersive-convert-api-client/models/viewer_response.rb +197 -0
- data/client/lib/cloudmersive-convert-api-client/version.rb +15 -0
- data/client/spec/api/compare_document_api_spec.rb +48 -0
- data/client/spec/api/convert_data_api_spec.rb +59 -0
- data/client/spec/api/convert_document_api_spec.rb +191 -0
- data/client/spec/api/convert_image_api_spec.rb +49 -0
- data/client/spec/api/convert_template_api_spec.rb +47 -0
- data/client/spec/api/convert_web_api_spec.rb +95 -0
- data/client/spec/api/edit_document_api_spec.rb +179 -0
- data/client/spec/api/merge_document_api_spec.rb +74 -0
- data/client/spec/api/validate_document_api_spec.rb +71 -0
- data/client/spec/api/viewer_tools_api_spec.rb +47 -0
- data/client/spec/api_client_spec.rb +226 -0
- data/client/spec/configuration_spec.rb +42 -0
- data/client/spec/models/converted_png_page_spec.rb +48 -0
- data/client/spec/models/document_validation_error_spec.rb +60 -0
- data/client/spec/models/document_validation_result_spec.rb +60 -0
- data/client/spec/models/docx_footer_spec.rb +48 -0
- data/client/spec/models/docx_header_spec.rb +48 -0
- data/client/spec/models/docx_insert_image_request_spec.rb +72 -0
- data/client/spec/models/docx_insert_image_response_spec.rb +48 -0
- data/client/spec/models/docx_paragraph_spec.rb +54 -0
- data/client/spec/models/docx_run_spec.rb +78 -0
- data/client/spec/models/docx_section_spec.rb +42 -0
- data/client/spec/models/docx_set_footer_request_spec.rb +54 -0
- data/client/spec/models/docx_set_footer_response_spec.rb +48 -0
- data/client/spec/models/docx_set_header_request_spec.rb +54 -0
- data/client/spec/models/docx_set_header_response_spec.rb +48 -0
- data/client/spec/models/docx_style_spec.rb +72 -0
- data/client/spec/models/docx_table_cell_spec.rb +78 -0
- data/client/spec/models/docx_table_row_spec.rb +48 -0
- data/client/spec/models/docx_table_spec.rb +264 -0
- data/client/spec/models/docx_text_spec.rb +48 -0
- data/client/spec/models/finish_editing_request_spec.rb +42 -0
- data/client/spec/models/get_docx_headers_and_footers_request_spec.rb +48 -0
- data/client/spec/models/get_docx_headers_and_footers_response_spec.rb +54 -0
- data/client/spec/models/get_docx_styles_request_spec.rb +48 -0
- data/client/spec/models/get_docx_styles_response_spec.rb +48 -0
- data/client/spec/models/get_docx_tables_request_spec.rb +48 -0
- data/client/spec/models/get_docx_tables_response_spec.rb +48 -0
- data/client/spec/models/html_md_result_spec.rb +48 -0
- data/client/spec/models/html_template_application_request_spec.rb +54 -0
- data/client/spec/models/html_template_application_response_spec.rb +48 -0
- data/client/spec/models/html_template_operation_spec.rb +58 -0
- data/client/spec/models/html_to_office_request_spec.rb +42 -0
- data/client/spec/models/html_to_pdf_request_spec.rb +48 -0
- data/client/spec/models/insert_docx_tables_request_spec.rb +54 -0
- data/client/spec/models/insert_docx_tables_response_spec.rb +48 -0
- data/client/spec/models/pdf_to_png_result_spec.rb +48 -0
- data/client/spec/models/remove_docx_headers_and_footers_request_spec.rb +60 -0
- data/client/spec/models/remove_docx_headers_and_footers_response_spec.rb +48 -0
- data/client/spec/models/replace_string_request_spec.rb +66 -0
- data/client/spec/models/screenshot_request_spec.rb +48 -0
- data/client/spec/models/viewer_response_spec.rb +48 -0
- data/client/spec/spec_helper.rb +111 -0
- data/cloudmersiveConvertApiClient-1.2.6.gem +0 -0
- data/cloudmersiveConvertApiClient-1.2.7.gem +0 -0
- data/packageconfig.json +11 -0
- data/swagger-codegen-cli.jar +0 -0
- metadata +173 -3
@@ -0,0 +1,561 @@
|
|
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
|
+
# A table in a Word Document (DOCX) file
|
17
|
+
class DocxTable
|
18
|
+
# The ID of the table
|
19
|
+
attr_accessor :table_id
|
20
|
+
|
21
|
+
# The Width of the table, or 0 if not specified
|
22
|
+
attr_accessor :width
|
23
|
+
|
24
|
+
# The Width configuration type of the table
|
25
|
+
attr_accessor :width_type
|
26
|
+
|
27
|
+
# Rows in the table; this is where the contents is located
|
28
|
+
attr_accessor :table_rows
|
29
|
+
|
30
|
+
# 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
|
31
|
+
attr_accessor :top_border_type
|
32
|
+
|
33
|
+
# Width of the border in points (1/72nd of an inch)
|
34
|
+
attr_accessor :top_border_size
|
35
|
+
|
36
|
+
# Spacing around the border in points (1/72nd of an inch)
|
37
|
+
attr_accessor :top_border_space
|
38
|
+
|
39
|
+
# HTML-style color hex value (do not include a #)
|
40
|
+
attr_accessor :top_border_color
|
41
|
+
|
42
|
+
# 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
|
43
|
+
attr_accessor :bottom_border_type
|
44
|
+
|
45
|
+
# Width of the border in points (1/72nd of an inch)
|
46
|
+
attr_accessor :bottom_border_size
|
47
|
+
|
48
|
+
# Spacing around the border in points (1/72nd of an inch)
|
49
|
+
attr_accessor :bottom_border_space
|
50
|
+
|
51
|
+
# HTML-style color hex value (do not include a #)
|
52
|
+
attr_accessor :bottom_border_color
|
53
|
+
|
54
|
+
# 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
|
55
|
+
attr_accessor :left_border_type
|
56
|
+
|
57
|
+
# Width of the border in points (1/72nd of an inch)
|
58
|
+
attr_accessor :left_border_size
|
59
|
+
|
60
|
+
# Spacing around the border in points (1/72nd of an inch)
|
61
|
+
attr_accessor :left_border_space
|
62
|
+
|
63
|
+
# HTML-style color hex value (do not include a #)
|
64
|
+
attr_accessor :left_border_color
|
65
|
+
|
66
|
+
# 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
|
67
|
+
attr_accessor :right_border_type
|
68
|
+
|
69
|
+
# Width of the border in points (1/72nd of an inch)
|
70
|
+
attr_accessor :right_border_size
|
71
|
+
|
72
|
+
# Spacing around the border in points (1/72nd of an inch)
|
73
|
+
attr_accessor :right_border_space
|
74
|
+
|
75
|
+
# HTML-style color hex value (do not include a #)
|
76
|
+
attr_accessor :right_border_color
|
77
|
+
|
78
|
+
# 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
|
79
|
+
attr_accessor :cell_horizontal_border_type
|
80
|
+
|
81
|
+
# Width of the border in points (1/72nd of an inch)
|
82
|
+
attr_accessor :cell_horizontal_border_size
|
83
|
+
|
84
|
+
# Spacing around the border in points (1/72nd of an inch)
|
85
|
+
attr_accessor :cell_horizontal_border_space
|
86
|
+
|
87
|
+
# HTML-style color hex value (do not include a #)
|
88
|
+
attr_accessor :cell_horizontal_border_color
|
89
|
+
|
90
|
+
# 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
|
91
|
+
attr_accessor :cell_vertical_border_type
|
92
|
+
|
93
|
+
# Width of the border in points (1/72nd of an inch)
|
94
|
+
attr_accessor :cell_vertical_border_size
|
95
|
+
|
96
|
+
# Spacing around the border in points (1/72nd of an inch)
|
97
|
+
attr_accessor :cell_vertical_border_space
|
98
|
+
|
99
|
+
# HTML-style color hex value (do not include a #)
|
100
|
+
attr_accessor :cell_vertical_border_color
|
101
|
+
|
102
|
+
# 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
|
103
|
+
attr_accessor :start_border_type
|
104
|
+
|
105
|
+
# Width of the border in points (1/72nd of an inch)
|
106
|
+
attr_accessor :start_border_size
|
107
|
+
|
108
|
+
# Spacing around the border in points (1/72nd of an inch)
|
109
|
+
attr_accessor :start_border_space
|
110
|
+
|
111
|
+
# HTML-style color hex value (do not include a #)
|
112
|
+
attr_accessor :start_border_color
|
113
|
+
|
114
|
+
# 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
|
115
|
+
attr_accessor :end_border_type
|
116
|
+
|
117
|
+
# Width of the border in points (1/72nd of an inch)
|
118
|
+
attr_accessor :end_border_size
|
119
|
+
|
120
|
+
# Spacing around the border in points (1/72nd of an inch)
|
121
|
+
attr_accessor :end_border_space
|
122
|
+
|
123
|
+
# HTML-style color hex value (do not include a #)
|
124
|
+
attr_accessor :end_border_color
|
125
|
+
|
126
|
+
# Table indentation type
|
127
|
+
attr_accessor :table_indentation_mode
|
128
|
+
|
129
|
+
# Table indentation width
|
130
|
+
attr_accessor :table_indentation_width
|
131
|
+
|
132
|
+
|
133
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
134
|
+
def self.attribute_map
|
135
|
+
{
|
136
|
+
:'table_id' => :'TableID',
|
137
|
+
:'width' => :'Width',
|
138
|
+
:'width_type' => :'WidthType',
|
139
|
+
:'table_rows' => :'TableRows',
|
140
|
+
:'top_border_type' => :'TopBorderType',
|
141
|
+
:'top_border_size' => :'TopBorderSize',
|
142
|
+
:'top_border_space' => :'TopBorderSpace',
|
143
|
+
:'top_border_color' => :'TopBorderColor',
|
144
|
+
:'bottom_border_type' => :'BottomBorderType',
|
145
|
+
:'bottom_border_size' => :'BottomBorderSize',
|
146
|
+
:'bottom_border_space' => :'BottomBorderSpace',
|
147
|
+
:'bottom_border_color' => :'BottomBorderColor',
|
148
|
+
:'left_border_type' => :'LeftBorderType',
|
149
|
+
:'left_border_size' => :'LeftBorderSize',
|
150
|
+
:'left_border_space' => :'LeftBorderSpace',
|
151
|
+
:'left_border_color' => :'LeftBorderColor',
|
152
|
+
:'right_border_type' => :'RightBorderType',
|
153
|
+
:'right_border_size' => :'RightBorderSize',
|
154
|
+
:'right_border_space' => :'RightBorderSpace',
|
155
|
+
:'right_border_color' => :'RightBorderColor',
|
156
|
+
:'cell_horizontal_border_type' => :'CellHorizontalBorderType',
|
157
|
+
:'cell_horizontal_border_size' => :'CellHorizontalBorderSize',
|
158
|
+
:'cell_horizontal_border_space' => :'CellHorizontalBorderSpace',
|
159
|
+
:'cell_horizontal_border_color' => :'CellHorizontalBorderColor',
|
160
|
+
:'cell_vertical_border_type' => :'CellVerticalBorderType',
|
161
|
+
:'cell_vertical_border_size' => :'CellVerticalBorderSize',
|
162
|
+
:'cell_vertical_border_space' => :'CellVerticalBorderSpace',
|
163
|
+
:'cell_vertical_border_color' => :'CellVerticalBorderColor',
|
164
|
+
:'start_border_type' => :'StartBorderType',
|
165
|
+
:'start_border_size' => :'StartBorderSize',
|
166
|
+
:'start_border_space' => :'StartBorderSpace',
|
167
|
+
:'start_border_color' => :'StartBorderColor',
|
168
|
+
:'end_border_type' => :'EndBorderType',
|
169
|
+
:'end_border_size' => :'EndBorderSize',
|
170
|
+
:'end_border_space' => :'EndBorderSpace',
|
171
|
+
:'end_border_color' => :'EndBorderColor',
|
172
|
+
:'table_indentation_mode' => :'TableIndentationMode',
|
173
|
+
:'table_indentation_width' => :'TableIndentationWidth'
|
174
|
+
}
|
175
|
+
end
|
176
|
+
|
177
|
+
# Attribute type mapping.
|
178
|
+
def self.swagger_types
|
179
|
+
{
|
180
|
+
:'table_id' => :'String',
|
181
|
+
:'width' => :'String',
|
182
|
+
:'width_type' => :'String',
|
183
|
+
:'table_rows' => :'Array<DocxTableRow>',
|
184
|
+
:'top_border_type' => :'String',
|
185
|
+
:'top_border_size' => :'Integer',
|
186
|
+
:'top_border_space' => :'Integer',
|
187
|
+
:'top_border_color' => :'String',
|
188
|
+
:'bottom_border_type' => :'String',
|
189
|
+
:'bottom_border_size' => :'Integer',
|
190
|
+
:'bottom_border_space' => :'Integer',
|
191
|
+
:'bottom_border_color' => :'String',
|
192
|
+
:'left_border_type' => :'String',
|
193
|
+
:'left_border_size' => :'Integer',
|
194
|
+
:'left_border_space' => :'Integer',
|
195
|
+
:'left_border_color' => :'String',
|
196
|
+
:'right_border_type' => :'String',
|
197
|
+
:'right_border_size' => :'Integer',
|
198
|
+
:'right_border_space' => :'Integer',
|
199
|
+
:'right_border_color' => :'String',
|
200
|
+
:'cell_horizontal_border_type' => :'String',
|
201
|
+
:'cell_horizontal_border_size' => :'Integer',
|
202
|
+
:'cell_horizontal_border_space' => :'Integer',
|
203
|
+
:'cell_horizontal_border_color' => :'String',
|
204
|
+
:'cell_vertical_border_type' => :'String',
|
205
|
+
:'cell_vertical_border_size' => :'Integer',
|
206
|
+
:'cell_vertical_border_space' => :'Integer',
|
207
|
+
:'cell_vertical_border_color' => :'String',
|
208
|
+
:'start_border_type' => :'String',
|
209
|
+
:'start_border_size' => :'Integer',
|
210
|
+
:'start_border_space' => :'Integer',
|
211
|
+
:'start_border_color' => :'String',
|
212
|
+
:'end_border_type' => :'String',
|
213
|
+
:'end_border_size' => :'Integer',
|
214
|
+
:'end_border_space' => :'Integer',
|
215
|
+
:'end_border_color' => :'String',
|
216
|
+
:'table_indentation_mode' => :'String',
|
217
|
+
:'table_indentation_width' => :'Integer'
|
218
|
+
}
|
219
|
+
end
|
220
|
+
|
221
|
+
# Initializes the object
|
222
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
223
|
+
def initialize(attributes = {})
|
224
|
+
return unless attributes.is_a?(Hash)
|
225
|
+
|
226
|
+
# convert string to symbol for hash key
|
227
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
228
|
+
|
229
|
+
if attributes.has_key?(:'TableID')
|
230
|
+
self.table_id = attributes[:'TableID']
|
231
|
+
end
|
232
|
+
|
233
|
+
if attributes.has_key?(:'Width')
|
234
|
+
self.width = attributes[:'Width']
|
235
|
+
end
|
236
|
+
|
237
|
+
if attributes.has_key?(:'WidthType')
|
238
|
+
self.width_type = attributes[:'WidthType']
|
239
|
+
end
|
240
|
+
|
241
|
+
if attributes.has_key?(:'TableRows')
|
242
|
+
if (value = attributes[:'TableRows']).is_a?(Array)
|
243
|
+
self.table_rows = value
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
247
|
+
if attributes.has_key?(:'TopBorderType')
|
248
|
+
self.top_border_type = attributes[:'TopBorderType']
|
249
|
+
end
|
250
|
+
|
251
|
+
if attributes.has_key?(:'TopBorderSize')
|
252
|
+
self.top_border_size = attributes[:'TopBorderSize']
|
253
|
+
end
|
254
|
+
|
255
|
+
if attributes.has_key?(:'TopBorderSpace')
|
256
|
+
self.top_border_space = attributes[:'TopBorderSpace']
|
257
|
+
end
|
258
|
+
|
259
|
+
if attributes.has_key?(:'TopBorderColor')
|
260
|
+
self.top_border_color = attributes[:'TopBorderColor']
|
261
|
+
end
|
262
|
+
|
263
|
+
if attributes.has_key?(:'BottomBorderType')
|
264
|
+
self.bottom_border_type = attributes[:'BottomBorderType']
|
265
|
+
end
|
266
|
+
|
267
|
+
if attributes.has_key?(:'BottomBorderSize')
|
268
|
+
self.bottom_border_size = attributes[:'BottomBorderSize']
|
269
|
+
end
|
270
|
+
|
271
|
+
if attributes.has_key?(:'BottomBorderSpace')
|
272
|
+
self.bottom_border_space = attributes[:'BottomBorderSpace']
|
273
|
+
end
|
274
|
+
|
275
|
+
if attributes.has_key?(:'BottomBorderColor')
|
276
|
+
self.bottom_border_color = attributes[:'BottomBorderColor']
|
277
|
+
end
|
278
|
+
|
279
|
+
if attributes.has_key?(:'LeftBorderType')
|
280
|
+
self.left_border_type = attributes[:'LeftBorderType']
|
281
|
+
end
|
282
|
+
|
283
|
+
if attributes.has_key?(:'LeftBorderSize')
|
284
|
+
self.left_border_size = attributes[:'LeftBorderSize']
|
285
|
+
end
|
286
|
+
|
287
|
+
if attributes.has_key?(:'LeftBorderSpace')
|
288
|
+
self.left_border_space = attributes[:'LeftBorderSpace']
|
289
|
+
end
|
290
|
+
|
291
|
+
if attributes.has_key?(:'LeftBorderColor')
|
292
|
+
self.left_border_color = attributes[:'LeftBorderColor']
|
293
|
+
end
|
294
|
+
|
295
|
+
if attributes.has_key?(:'RightBorderType')
|
296
|
+
self.right_border_type = attributes[:'RightBorderType']
|
297
|
+
end
|
298
|
+
|
299
|
+
if attributes.has_key?(:'RightBorderSize')
|
300
|
+
self.right_border_size = attributes[:'RightBorderSize']
|
301
|
+
end
|
302
|
+
|
303
|
+
if attributes.has_key?(:'RightBorderSpace')
|
304
|
+
self.right_border_space = attributes[:'RightBorderSpace']
|
305
|
+
end
|
306
|
+
|
307
|
+
if attributes.has_key?(:'RightBorderColor')
|
308
|
+
self.right_border_color = attributes[:'RightBorderColor']
|
309
|
+
end
|
310
|
+
|
311
|
+
if attributes.has_key?(:'CellHorizontalBorderType')
|
312
|
+
self.cell_horizontal_border_type = attributes[:'CellHorizontalBorderType']
|
313
|
+
end
|
314
|
+
|
315
|
+
if attributes.has_key?(:'CellHorizontalBorderSize')
|
316
|
+
self.cell_horizontal_border_size = attributes[:'CellHorizontalBorderSize']
|
317
|
+
end
|
318
|
+
|
319
|
+
if attributes.has_key?(:'CellHorizontalBorderSpace')
|
320
|
+
self.cell_horizontal_border_space = attributes[:'CellHorizontalBorderSpace']
|
321
|
+
end
|
322
|
+
|
323
|
+
if attributes.has_key?(:'CellHorizontalBorderColor')
|
324
|
+
self.cell_horizontal_border_color = attributes[:'CellHorizontalBorderColor']
|
325
|
+
end
|
326
|
+
|
327
|
+
if attributes.has_key?(:'CellVerticalBorderType')
|
328
|
+
self.cell_vertical_border_type = attributes[:'CellVerticalBorderType']
|
329
|
+
end
|
330
|
+
|
331
|
+
if attributes.has_key?(:'CellVerticalBorderSize')
|
332
|
+
self.cell_vertical_border_size = attributes[:'CellVerticalBorderSize']
|
333
|
+
end
|
334
|
+
|
335
|
+
if attributes.has_key?(:'CellVerticalBorderSpace')
|
336
|
+
self.cell_vertical_border_space = attributes[:'CellVerticalBorderSpace']
|
337
|
+
end
|
338
|
+
|
339
|
+
if attributes.has_key?(:'CellVerticalBorderColor')
|
340
|
+
self.cell_vertical_border_color = attributes[:'CellVerticalBorderColor']
|
341
|
+
end
|
342
|
+
|
343
|
+
if attributes.has_key?(:'StartBorderType')
|
344
|
+
self.start_border_type = attributes[:'StartBorderType']
|
345
|
+
end
|
346
|
+
|
347
|
+
if attributes.has_key?(:'StartBorderSize')
|
348
|
+
self.start_border_size = attributes[:'StartBorderSize']
|
349
|
+
end
|
350
|
+
|
351
|
+
if attributes.has_key?(:'StartBorderSpace')
|
352
|
+
self.start_border_space = attributes[:'StartBorderSpace']
|
353
|
+
end
|
354
|
+
|
355
|
+
if attributes.has_key?(:'StartBorderColor')
|
356
|
+
self.start_border_color = attributes[:'StartBorderColor']
|
357
|
+
end
|
358
|
+
|
359
|
+
if attributes.has_key?(:'EndBorderType')
|
360
|
+
self.end_border_type = attributes[:'EndBorderType']
|
361
|
+
end
|
362
|
+
|
363
|
+
if attributes.has_key?(:'EndBorderSize')
|
364
|
+
self.end_border_size = attributes[:'EndBorderSize']
|
365
|
+
end
|
366
|
+
|
367
|
+
if attributes.has_key?(:'EndBorderSpace')
|
368
|
+
self.end_border_space = attributes[:'EndBorderSpace']
|
369
|
+
end
|
370
|
+
|
371
|
+
if attributes.has_key?(:'EndBorderColor')
|
372
|
+
self.end_border_color = attributes[:'EndBorderColor']
|
373
|
+
end
|
374
|
+
|
375
|
+
if attributes.has_key?(:'TableIndentationMode')
|
376
|
+
self.table_indentation_mode = attributes[:'TableIndentationMode']
|
377
|
+
end
|
378
|
+
|
379
|
+
if attributes.has_key?(:'TableIndentationWidth')
|
380
|
+
self.table_indentation_width = attributes[:'TableIndentationWidth']
|
381
|
+
end
|
382
|
+
|
383
|
+
end
|
384
|
+
|
385
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
386
|
+
# @return Array for valid properties with the reasons
|
387
|
+
def list_invalid_properties
|
388
|
+
invalid_properties = Array.new
|
389
|
+
return invalid_properties
|
390
|
+
end
|
391
|
+
|
392
|
+
# Check to see if the all the properties in the model are valid
|
393
|
+
# @return true if the model is valid
|
394
|
+
def valid?
|
395
|
+
return true
|
396
|
+
end
|
397
|
+
|
398
|
+
# Checks equality by comparing each attribute.
|
399
|
+
# @param [Object] Object to be compared
|
400
|
+
def ==(o)
|
401
|
+
return true if self.equal?(o)
|
402
|
+
self.class == o.class &&
|
403
|
+
table_id == o.table_id &&
|
404
|
+
width == o.width &&
|
405
|
+
width_type == o.width_type &&
|
406
|
+
table_rows == o.table_rows &&
|
407
|
+
top_border_type == o.top_border_type &&
|
408
|
+
top_border_size == o.top_border_size &&
|
409
|
+
top_border_space == o.top_border_space &&
|
410
|
+
top_border_color == o.top_border_color &&
|
411
|
+
bottom_border_type == o.bottom_border_type &&
|
412
|
+
bottom_border_size == o.bottom_border_size &&
|
413
|
+
bottom_border_space == o.bottom_border_space &&
|
414
|
+
bottom_border_color == o.bottom_border_color &&
|
415
|
+
left_border_type == o.left_border_type &&
|
416
|
+
left_border_size == o.left_border_size &&
|
417
|
+
left_border_space == o.left_border_space &&
|
418
|
+
left_border_color == o.left_border_color &&
|
419
|
+
right_border_type == o.right_border_type &&
|
420
|
+
right_border_size == o.right_border_size &&
|
421
|
+
right_border_space == o.right_border_space &&
|
422
|
+
right_border_color == o.right_border_color &&
|
423
|
+
cell_horizontal_border_type == o.cell_horizontal_border_type &&
|
424
|
+
cell_horizontal_border_size == o.cell_horizontal_border_size &&
|
425
|
+
cell_horizontal_border_space == o.cell_horizontal_border_space &&
|
426
|
+
cell_horizontal_border_color == o.cell_horizontal_border_color &&
|
427
|
+
cell_vertical_border_type == o.cell_vertical_border_type &&
|
428
|
+
cell_vertical_border_size == o.cell_vertical_border_size &&
|
429
|
+
cell_vertical_border_space == o.cell_vertical_border_space &&
|
430
|
+
cell_vertical_border_color == o.cell_vertical_border_color &&
|
431
|
+
start_border_type == o.start_border_type &&
|
432
|
+
start_border_size == o.start_border_size &&
|
433
|
+
start_border_space == o.start_border_space &&
|
434
|
+
start_border_color == o.start_border_color &&
|
435
|
+
end_border_type == o.end_border_type &&
|
436
|
+
end_border_size == o.end_border_size &&
|
437
|
+
end_border_space == o.end_border_space &&
|
438
|
+
end_border_color == o.end_border_color &&
|
439
|
+
table_indentation_mode == o.table_indentation_mode &&
|
440
|
+
table_indentation_width == o.table_indentation_width
|
441
|
+
end
|
442
|
+
|
443
|
+
# @see the `==` method
|
444
|
+
# @param [Object] Object to be compared
|
445
|
+
def eql?(o)
|
446
|
+
self == o
|
447
|
+
end
|
448
|
+
|
449
|
+
# Calculates hash code according to all attributes.
|
450
|
+
# @return [Fixnum] Hash code
|
451
|
+
def hash
|
452
|
+
[table_id, 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
|
453
|
+
end
|
454
|
+
|
455
|
+
# Builds the object from hash
|
456
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
457
|
+
# @return [Object] Returns the model itself
|
458
|
+
def build_from_hash(attributes)
|
459
|
+
return nil unless attributes.is_a?(Hash)
|
460
|
+
self.class.swagger_types.each_pair do |key, type|
|
461
|
+
if type =~ /\AArray<(.*)>/i
|
462
|
+
# check to ensure the input is an array given that the the attribute
|
463
|
+
# is documented as an array but the input is not
|
464
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
465
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
466
|
+
end
|
467
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
468
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
469
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
470
|
+
end
|
471
|
+
|
472
|
+
self
|
473
|
+
end
|
474
|
+
|
475
|
+
# Deserializes the data based on type
|
476
|
+
# @param string type Data type
|
477
|
+
# @param string value Value to be deserialized
|
478
|
+
# @return [Object] Deserialized data
|
479
|
+
def _deserialize(type, value)
|
480
|
+
case type.to_sym
|
481
|
+
when :DateTime
|
482
|
+
DateTime.parse(value)
|
483
|
+
when :Date
|
484
|
+
Date.parse(value)
|
485
|
+
when :String
|
486
|
+
value.to_s
|
487
|
+
when :Integer
|
488
|
+
value.to_i
|
489
|
+
when :Float
|
490
|
+
value.to_f
|
491
|
+
when :BOOLEAN
|
492
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
493
|
+
true
|
494
|
+
else
|
495
|
+
false
|
496
|
+
end
|
497
|
+
when :Object
|
498
|
+
# generic object (usually a Hash), return directly
|
499
|
+
value
|
500
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
501
|
+
inner_type = Regexp.last_match[:inner_type]
|
502
|
+
value.map { |v| _deserialize(inner_type, v) }
|
503
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
504
|
+
k_type = Regexp.last_match[:k_type]
|
505
|
+
v_type = Regexp.last_match[:v_type]
|
506
|
+
{}.tap do |hash|
|
507
|
+
value.each do |k, v|
|
508
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
509
|
+
end
|
510
|
+
end
|
511
|
+
else # model
|
512
|
+
temp_model = CloudmersiveConvertApiClient.const_get(type).new
|
513
|
+
temp_model.build_from_hash(value)
|
514
|
+
end
|
515
|
+
end
|
516
|
+
|
517
|
+
# Returns the string representation of the object
|
518
|
+
# @return [String] String presentation of the object
|
519
|
+
def to_s
|
520
|
+
to_hash.to_s
|
521
|
+
end
|
522
|
+
|
523
|
+
# to_body is an alias to to_hash (backward compatibility)
|
524
|
+
# @return [Hash] Returns the object in the form of hash
|
525
|
+
def to_body
|
526
|
+
to_hash
|
527
|
+
end
|
528
|
+
|
529
|
+
# Returns the object in the form of hash
|
530
|
+
# @return [Hash] Returns the object in the form of hash
|
531
|
+
def to_hash
|
532
|
+
hash = {}
|
533
|
+
self.class.attribute_map.each_pair do |attr, param|
|
534
|
+
value = self.send(attr)
|
535
|
+
next if value.nil?
|
536
|
+
hash[param] = _to_hash(value)
|
537
|
+
end
|
538
|
+
hash
|
539
|
+
end
|
540
|
+
|
541
|
+
# Outputs non-array value in the form of hash
|
542
|
+
# For object, use to_hash. Otherwise, just return the value
|
543
|
+
# @param [Object] value Any valid value
|
544
|
+
# @return [Hash] Returns the value in the form of hash
|
545
|
+
def _to_hash(value)
|
546
|
+
if value.is_a?(Array)
|
547
|
+
value.compact.map{ |v| _to_hash(v) }
|
548
|
+
elsif value.is_a?(Hash)
|
549
|
+
{}.tap do |hash|
|
550
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
551
|
+
end
|
552
|
+
elsif value.respond_to? :to_hash
|
553
|
+
value.to_hash
|
554
|
+
else
|
555
|
+
value
|
556
|
+
end
|
557
|
+
end
|
558
|
+
|
559
|
+
end
|
560
|
+
|
561
|
+
end
|