aspose_words_cloud 23.4.0 → 23.6.0
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/lib/aspose_words_cloud/api/words_api.rb +85 -1
- data/lib/aspose_words_cloud/api_client.rb +1 -1
- data/lib/aspose_words_cloud/models/bmp_save_options_data.rb +11 -11
- data/lib/aspose_words_cloud/models/comment.rb +39 -39
- data/lib/aspose_words_cloud/models/comment_insert.rb +21 -21
- data/lib/aspose_words_cloud/models/comment_update.rb +21 -21
- data/lib/aspose_words_cloud/models/custom_xml_part.rb +14 -14
- data/lib/aspose_words_cloud/models/custom_xml_part_insert.rb +14 -14
- data/lib/aspose_words_cloud/models/custom_xml_part_update.rb +14 -14
- data/lib/aspose_words_cloud/models/doc_save_options_data.rb +10 -10
- data/lib/aspose_words_cloud/models/document.rb +13 -13
- data/lib/aspose_words_cloud/models/document_entry.rb +41 -0
- data/lib/aspose_words_cloud/models/document_property.rb +15 -15
- data/lib/aspose_words_cloud/models/document_stat_data.rb +16 -16
- data/lib/aspose_words_cloud/models/drawing_object.rb +41 -41
- data/lib/aspose_words_cloud/models/emf_save_options_data.rb +11 -11
- data/lib/aspose_words_cloud/models/footnote.rb +21 -21
- data/lib/aspose_words_cloud/models/form_field.rb +46 -46
- data/lib/aspose_words_cloud/models/form_field_checkbox.rb +59 -59
- data/lib/aspose_words_cloud/models/form_field_drop_down.rb +46 -46
- data/lib/aspose_words_cloud/models/form_field_text_input.rb +66 -66
- data/lib/aspose_words_cloud/models/gif_save_options_data.rb +11 -11
- data/lib/aspose_words_cloud/models/header_footer.rb +14 -14
- data/lib/aspose_words_cloud/models/html_fixed_save_options_data.rb +10 -10
- data/lib/aspose_words_cloud/models/html_save_options_data.rb +10 -10
- data/lib/aspose_words_cloud/models/jpeg_save_options_data.rb +11 -11
- data/lib/aspose_words_cloud/models/list_format.rb +15 -15
- data/lib/aspose_words_cloud/models/list_info.rb +35 -35
- data/lib/aspose_words_cloud/models/list_level.rb +76 -76
- data/lib/aspose_words_cloud/models/load_web_document_data.rb +14 -14
- data/lib/aspose_words_cloud/models/markdown_save_options_data.rb +10 -10
- data/lib/aspose_words_cloud/models/page_stat_data.rb +14 -14
- data/lib/aspose_words_cloud/models/paragraph_format.rb +21 -21
- data/lib/aspose_words_cloud/models/paragraph_format_base.rb +14 -14
- data/lib/aspose_words_cloud/models/paragraph_format_update.rb +14 -14
- data/lib/aspose_words_cloud/models/pdf_save_options_data.rb +10 -10
- data/lib/aspose_words_cloud/models/png_save_options_data.rb +11 -11
- data/lib/aspose_words_cloud/models/ps_save_options_data.rb +10 -10
- data/lib/aspose_words_cloud/models/requests/create_document_request.rb +9 -3
- data/lib/aspose_words_cloud/models/requests/insert_section_online_request.rb +204 -0
- data/lib/aspose_words_cloud/models/requests/insert_section_request.rb +203 -0
- data/lib/aspose_words_cloud/models/rtf_save_options_data.rb +10 -10
- data/lib/aspose_words_cloud/models/save_result.rb +16 -16
- data/lib/aspose_words_cloud/models/search_result.rb +14 -14
- data/lib/aspose_words_cloud/models/section.rb +15 -15
- data/lib/aspose_words_cloud/models/split_document_result.rb +16 -16
- data/lib/aspose_words_cloud/models/structured_document_tag.rb +142 -142
- data/lib/aspose_words_cloud/models/structured_document_tag_insert.rb +142 -142
- data/lib/aspose_words_cloud/models/structured_document_tag_update.rb +142 -142
- data/lib/aspose_words_cloud/models/style.rb +71 -71
- data/lib/aspose_words_cloud/models/svg_save_options_data.rb +10 -10
- data/lib/aspose_words_cloud/models/table.rb +14 -14
- data/lib/aspose_words_cloud/models/table_row.rb +14 -14
- data/lib/aspose_words_cloud/models/table_row_format.rb +24 -24
- data/lib/aspose_words_cloud/models/text_save_options_data.rb +10 -10
- data/lib/aspose_words_cloud/models/tiff_save_options_data.rb +19 -19
- data/lib/aspose_words_cloud/models/xps_save_options_data.rb +10 -10
- data/lib/aspose_words_cloud/version.rb +1 -1
- data/lib/aspose_words_cloud.rb +2 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a4e9c35233feafd53c8c0a57f154e166cc2040e17b57a2f1700ac1084c849cc
|
4
|
+
data.tar.gz: 6fc1d95e44e97a9532580676b944c7a9f5a7a61f5ceb2b0a177dd010eee4b8eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa4d7355495f2d115e083f620d0f82917e73eaec05f4a149fdac1d56e181e17a9042837798047b35390a5edf9062a6e32b841bbe6f25b2df126dcb80dd31225b
|
7
|
+
data.tar.gz: 82ca6c93339b34d186b01a28fdcd53e8ef72f0cc05a8f9ce6d3fccafb1338e9dec672621d733cae4087943dfeaba89a367925080ec96c1cd9c9ca37209aad42a
|
@@ -9907,6 +9907,90 @@ module AsposeWordsCloud
|
|
9907
9907
|
[mp_data, status_code, headers]
|
9908
9908
|
end
|
9909
9909
|
|
9910
|
+
# Inserts a section to the document.
|
9911
|
+
# @param request InsertSectionRequest
|
9912
|
+
# @return [nil]
|
9913
|
+
def insert_section(request)
|
9914
|
+
begin
|
9915
|
+
data, _status_code, _headers = insert_section_with_http_info(request)
|
9916
|
+
rescue ApiError => e
|
9917
|
+
if e.code == 401
|
9918
|
+
request_token
|
9919
|
+
data, _status_code, _headers = insert_section_with_http_info(request)
|
9920
|
+
else
|
9921
|
+
raise
|
9922
|
+
end
|
9923
|
+
end
|
9924
|
+
nil
|
9925
|
+
end
|
9926
|
+
|
9927
|
+
# Inserts a section to the document.
|
9928
|
+
# @param request InsertSectionRequest
|
9929
|
+
# @return [Array<(nil, Fixnum, Hash)>]
|
9930
|
+
# nil, response status code and response headers
|
9931
|
+
private def insert_section_with_http_info(request)
|
9932
|
+
raise ArgumentError, 'Incorrect request type' unless request.is_a? InsertSectionRequest
|
9933
|
+
|
9934
|
+
@api_client.config.logger.debug 'Calling API: WordsApi.insert_section ...' if @api_client.config.debugging
|
9935
|
+
request_data = request.create_http_request(@api_client)
|
9936
|
+
|
9937
|
+
data, status_code, headers = @api_client.call_api(
|
9938
|
+
request_data[:'method'],
|
9939
|
+
request_data[:'path'],
|
9940
|
+
header_params: request_data[:'header_params'],
|
9941
|
+
query_params: request_data[:'query_params'],
|
9942
|
+
body: request_data[:'body'])
|
9943
|
+
if @api_client.config.debugging
|
9944
|
+
@api_client.config.logger.debug "API called:
|
9945
|
+
WordsApi#insert_section\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
9946
|
+
end
|
9947
|
+
|
9948
|
+
[data, status_code, headers]
|
9949
|
+
end
|
9950
|
+
|
9951
|
+
# Inserts a section to the document.
|
9952
|
+
# @param request InsertSectionOnlineRequest
|
9953
|
+
# @return [FILES_COLLECTION]
|
9954
|
+
def insert_section_online(request)
|
9955
|
+
begin
|
9956
|
+
data, _status_code, _headers = insert_section_online_with_http_info(request)
|
9957
|
+
rescue ApiError => e
|
9958
|
+
if e.code == 401
|
9959
|
+
request_token
|
9960
|
+
data, _status_code, _headers = insert_section_online_with_http_info(request)
|
9961
|
+
else
|
9962
|
+
raise
|
9963
|
+
end
|
9964
|
+
end
|
9965
|
+
data
|
9966
|
+
end
|
9967
|
+
|
9968
|
+
# Inserts a section to the document.
|
9969
|
+
# @param request InsertSectionOnlineRequest
|
9970
|
+
# @return [Array<(FILES_COLLECTION, Fixnum, Hash)>]
|
9971
|
+
# FILES_COLLECTION, response status code and response headers
|
9972
|
+
private def insert_section_online_with_http_info(request)
|
9973
|
+
raise ArgumentError, 'Incorrect request type' unless request.is_a? InsertSectionOnlineRequest
|
9974
|
+
|
9975
|
+
@api_client.config.logger.debug 'Calling API: WordsApi.insert_section_online ...' if @api_client.config.debugging
|
9976
|
+
request_data = request.create_http_request(@api_client)
|
9977
|
+
|
9978
|
+
data, status_code, headers = @api_client.call_api(
|
9979
|
+
request_data[:'method'],
|
9980
|
+
request_data[:'path'],
|
9981
|
+
header_params: request_data[:'header_params'],
|
9982
|
+
query_params: request_data[:'query_params'],
|
9983
|
+
body: request_data[:'body'],
|
9984
|
+
return_type: 'FILES_COLLECTION')
|
9985
|
+
if @api_client.config.debugging
|
9986
|
+
@api_client.config.logger.debug "API called:
|
9987
|
+
WordsApi#insert_section_online\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
9988
|
+
end
|
9989
|
+
|
9990
|
+
# FILES_COLLECTION #
|
9991
|
+
[data, status_code, headers]
|
9992
|
+
end
|
9993
|
+
|
9910
9994
|
# Inserts a new StructuredDocumentTag (SDT) to the document node.
|
9911
9995
|
# @param request InsertStructuredDocumentTagRequest
|
9912
9996
|
# @return [StructuredDocumentTagResponse]
|
@@ -14125,7 +14209,7 @@ module AsposeWordsCloud
|
|
14125
14209
|
#
|
14126
14210
|
private def request_token
|
14127
14211
|
config = @api_client.config
|
14128
|
-
request_url = "/connect/token"
|
14212
|
+
request_url = "/v4.0/words/connect/token"
|
14129
14213
|
post_data = "grant_type=client_credentials" + "&client_id=" + config.client_data['ClientId'] + "&client_secret=" + config.client_data['ClientSecret']
|
14130
14214
|
data, status_code, header = @api_client.call_api(:POST, request_url, :body => post_data, :return_type => 'Object', :header_params => {'Content-Type': 'application/x-www-form-urlencoded'})
|
14131
14215
|
@api_client.config.access_token = data[:access_token]
|
@@ -390,7 +390,7 @@ module AsposeWordsCloud
|
|
390
390
|
def build_request_url(path)
|
391
391
|
# remove empty path parameter artifacts
|
392
392
|
path = path.gsub(/\/+/, '/')
|
393
|
-
return @config.getFullUrl(path, path == "/connect/token")
|
393
|
+
return @config.getFullUrl(path, path == "/v4.0/words/connect/token")
|
394
394
|
end
|
395
395
|
|
396
396
|
# Builds the HTTP request body
|
@@ -126,9 +126,6 @@ module AsposeWordsCloud
|
|
126
126
|
# Gets or sets a value indicating whether to use anti-aliasing for rendering.
|
127
127
|
attr_accessor :use_anti_aliasing
|
128
128
|
|
129
|
-
# Gets or sets a value indicating whether to use GDI+ or Aspose.Words metafile renderer when saving to EMF.
|
130
|
-
attr_accessor :use_gdi_emf_renderer
|
131
|
-
|
132
129
|
# Gets or sets a value indicating whether to use high quality (i.e. slow) rendering algorithms.
|
133
130
|
attr_accessor :use_high_quality_rendering
|
134
131
|
|
@@ -137,6 +134,9 @@ module AsposeWordsCloud
|
|
137
134
|
# The default value is 96.
|
138
135
|
attr_accessor :vertical_resolution
|
139
136
|
|
137
|
+
# Gets or sets a value indicating whether to use GDI+ or Aspose.Words metafile renderer when saving to EMF.
|
138
|
+
attr_accessor :use_gdi_emf_renderer
|
139
|
+
|
140
140
|
# Gets the format of save.
|
141
141
|
attr_accessor :save_format
|
142
142
|
|
@@ -194,9 +194,9 @@ module AsposeWordsCloud
|
|
194
194
|
:'resolution' => :'Resolution',
|
195
195
|
:'scale' => :'Scale',
|
196
196
|
:'use_anti_aliasing' => :'UseAntiAliasing',
|
197
|
-
:'use_gdi_emf_renderer' => :'UseGdiEmfRenderer',
|
198
197
|
:'use_high_quality_rendering' => :'UseHighQualityRendering',
|
199
198
|
:'vertical_resolution' => :'VerticalResolution',
|
199
|
+
:'use_gdi_emf_renderer' => :'UseGdiEmfRenderer',
|
200
200
|
:'save_format' => :'SaveFormat'
|
201
201
|
}
|
202
202
|
end
|
@@ -233,9 +233,9 @@ module AsposeWordsCloud
|
|
233
233
|
:'resolution' => :'Float',
|
234
234
|
:'scale' => :'Float',
|
235
235
|
:'use_anti_aliasing' => :'BOOLEAN',
|
236
|
-
:'use_gdi_emf_renderer' => :'BOOLEAN',
|
237
236
|
:'use_high_quality_rendering' => :'BOOLEAN',
|
238
237
|
:'vertical_resolution' => :'Float',
|
238
|
+
:'use_gdi_emf_renderer' => :'BOOLEAN',
|
239
239
|
:'save_format' => :'String'
|
240
240
|
}
|
241
241
|
end
|
@@ -366,10 +366,6 @@ module AsposeWordsCloud
|
|
366
366
|
self.use_anti_aliasing = attributes[:'UseAntiAliasing']
|
367
367
|
end
|
368
368
|
|
369
|
-
if attributes.key?(:'UseGdiEmfRenderer')
|
370
|
-
self.use_gdi_emf_renderer = attributes[:'UseGdiEmfRenderer']
|
371
|
-
end
|
372
|
-
|
373
369
|
if attributes.key?(:'UseHighQualityRendering')
|
374
370
|
self.use_high_quality_rendering = attributes[:'UseHighQualityRendering']
|
375
371
|
end
|
@@ -377,6 +373,10 @@ module AsposeWordsCloud
|
|
377
373
|
if attributes.key?(:'VerticalResolution')
|
378
374
|
self.vertical_resolution = attributes[:'VerticalResolution']
|
379
375
|
end
|
376
|
+
|
377
|
+
if attributes.key?(:'UseGdiEmfRenderer')
|
378
|
+
self.use_gdi_emf_renderer = attributes[:'UseGdiEmfRenderer']
|
379
|
+
end
|
380
380
|
end
|
381
381
|
|
382
382
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -556,9 +556,9 @@ module AsposeWordsCloud
|
|
556
556
|
resolution == other.resolution &&
|
557
557
|
scale == other.scale &&
|
558
558
|
use_anti_aliasing == other.use_anti_aliasing &&
|
559
|
-
use_gdi_emf_renderer == other.use_gdi_emf_renderer &&
|
560
559
|
use_high_quality_rendering == other.use_high_quality_rendering &&
|
561
560
|
vertical_resolution == other.vertical_resolution &&
|
561
|
+
use_gdi_emf_renderer == other.use_gdi_emf_renderer &&
|
562
562
|
save_format == other.save_format
|
563
563
|
end
|
564
564
|
|
@@ -571,7 +571,7 @@ module AsposeWordsCloud
|
|
571
571
|
# Calculates hash code according to all attributes.
|
572
572
|
# @return [Fixnum] Hash code
|
573
573
|
def hash
|
574
|
-
[allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, iml_rendering_mode, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, horizontal_resolution, image_brightness, image_color_mode, image_contrast, paper_color, pixel_format, resolution, scale, use_anti_aliasing,
|
574
|
+
[allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, iml_rendering_mode, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, horizontal_resolution, image_brightness, image_color_mode, image_contrast, paper_color, pixel_format, resolution, scale, use_anti_aliasing, use_high_quality_rendering, vertical_resolution, use_gdi_emf_renderer, save_format].hash
|
575
575
|
end
|
576
576
|
|
577
577
|
# Builds the object from hash
|
@@ -32,37 +32,37 @@ module AsposeWordsCloud
|
|
32
32
|
# Gets or sets the link to the document.
|
33
33
|
attr_accessor :link
|
34
34
|
|
35
|
-
# Gets or sets the
|
36
|
-
attr_accessor :
|
35
|
+
# Gets or sets the link to comment range start node.
|
36
|
+
attr_accessor :range_start
|
37
37
|
|
38
|
-
# Gets or sets the
|
39
|
-
attr_accessor :
|
38
|
+
# Gets or sets the link to comment range end node.
|
39
|
+
attr_accessor :range_end
|
40
40
|
|
41
|
-
# Gets or sets the
|
42
|
-
attr_accessor :
|
41
|
+
# Gets or sets the author name for a comment.
|
42
|
+
attr_accessor :author
|
43
43
|
|
44
44
|
# Gets or sets the initials of the user associated with a specific comment.
|
45
45
|
attr_accessor :initial
|
46
46
|
|
47
|
-
# Gets or sets the
|
48
|
-
attr_accessor :
|
49
|
-
|
50
|
-
# Gets or sets the link to comment range start node.
|
51
|
-
attr_accessor :range_start
|
47
|
+
# Gets or sets the date and time that the comment was made.
|
48
|
+
attr_accessor :date_time
|
52
49
|
|
53
50
|
# Gets or sets text of the comment.
|
54
51
|
attr_accessor :text
|
52
|
+
|
53
|
+
# Gets or sets the content of the comment.
|
54
|
+
attr_accessor :content
|
55
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
56
56
|
def self.attribute_map
|
57
57
|
{
|
58
58
|
:'link' => :'Link',
|
59
|
+
:'range_start' => :'RangeStart',
|
60
|
+
:'range_end' => :'RangeEnd',
|
59
61
|
:'author' => :'Author',
|
60
|
-
:'content' => :'Content',
|
61
|
-
:'date_time' => :'DateTime',
|
62
62
|
:'initial' => :'Initial',
|
63
|
-
:'
|
64
|
-
:'
|
65
|
-
:'
|
63
|
+
:'date_time' => :'DateTime',
|
64
|
+
:'text' => :'Text',
|
65
|
+
:'content' => :'Content'
|
66
66
|
}
|
67
67
|
end
|
68
68
|
|
@@ -70,13 +70,13 @@ module AsposeWordsCloud
|
|
70
70
|
def self.swagger_types
|
71
71
|
{
|
72
72
|
:'link' => :'WordsApiLink',
|
73
|
+
:'range_start' => :'DocumentPosition',
|
74
|
+
:'range_end' => :'DocumentPosition',
|
73
75
|
:'author' => :'String',
|
74
|
-
:'content' => :'StoryChildNodes',
|
75
|
-
:'date_time' => :'DateTime',
|
76
76
|
:'initial' => :'String',
|
77
|
-
:'
|
78
|
-
:'
|
79
|
-
:'
|
77
|
+
:'date_time' => :'DateTime',
|
78
|
+
:'text' => :'String',
|
79
|
+
:'content' => :'StoryChildNodes'
|
80
80
|
}
|
81
81
|
end
|
82
82
|
|
@@ -92,33 +92,33 @@ module AsposeWordsCloud
|
|
92
92
|
self.link = attributes[:'Link']
|
93
93
|
end
|
94
94
|
|
95
|
-
if attributes.key?(:'
|
96
|
-
self.
|
95
|
+
if attributes.key?(:'RangeStart')
|
96
|
+
self.range_start = attributes[:'RangeStart']
|
97
97
|
end
|
98
98
|
|
99
|
-
if attributes.key?(:'
|
100
|
-
self.
|
99
|
+
if attributes.key?(:'RangeEnd')
|
100
|
+
self.range_end = attributes[:'RangeEnd']
|
101
101
|
end
|
102
102
|
|
103
|
-
if attributes.key?(:'
|
104
|
-
self.
|
103
|
+
if attributes.key?(:'Author')
|
104
|
+
self.author = attributes[:'Author']
|
105
105
|
end
|
106
106
|
|
107
107
|
if attributes.key?(:'Initial')
|
108
108
|
self.initial = attributes[:'Initial']
|
109
109
|
end
|
110
110
|
|
111
|
-
if attributes.key?(:'
|
112
|
-
self.
|
113
|
-
end
|
114
|
-
|
115
|
-
if attributes.key?(:'RangeStart')
|
116
|
-
self.range_start = attributes[:'RangeStart']
|
111
|
+
if attributes.key?(:'DateTime')
|
112
|
+
self.date_time = attributes[:'DateTime']
|
117
113
|
end
|
118
114
|
|
119
115
|
if attributes.key?(:'Text')
|
120
116
|
self.text = attributes[:'Text']
|
121
117
|
end
|
118
|
+
|
119
|
+
if attributes.key?(:'Content')
|
120
|
+
self.content = attributes[:'Content']
|
121
|
+
end
|
122
122
|
end
|
123
123
|
|
124
124
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -140,13 +140,13 @@ module AsposeWordsCloud
|
|
140
140
|
return true if self.equal?(other)
|
141
141
|
self.class == other.class &&
|
142
142
|
link == other.link &&
|
143
|
+
range_start == other.range_start &&
|
144
|
+
range_end == other.range_end &&
|
143
145
|
author == other.author &&
|
144
|
-
content == other.content &&
|
145
|
-
date_time == other.date_time &&
|
146
146
|
initial == other.initial &&
|
147
|
-
|
148
|
-
|
149
|
-
|
147
|
+
date_time == other.date_time &&
|
148
|
+
text == other.text &&
|
149
|
+
content == other.content
|
150
150
|
end
|
151
151
|
|
152
152
|
# @see the `==` method
|
@@ -158,7 +158,7 @@ module AsposeWordsCloud
|
|
158
158
|
# Calculates hash code according to all attributes.
|
159
159
|
# @return [Fixnum] Hash code
|
160
160
|
def hash
|
161
|
-
[link,
|
161
|
+
[link, range_start, range_end, author, initial, date_time, text, content].hash
|
162
162
|
end
|
163
163
|
|
164
164
|
# Builds the object from hash
|
@@ -29,6 +29,12 @@ module AsposeWordsCloud
|
|
29
29
|
|
30
30
|
# Comment insert.
|
31
31
|
class CommentInsert
|
32
|
+
# Gets or sets the link to comment range start node.
|
33
|
+
attr_accessor :range_start
|
34
|
+
|
35
|
+
# Gets or sets the link to comment range end node.
|
36
|
+
attr_accessor :range_end
|
37
|
+
|
32
38
|
# Gets or sets the author name for a comment.
|
33
39
|
attr_accessor :author
|
34
40
|
|
@@ -38,22 +44,16 @@ module AsposeWordsCloud
|
|
38
44
|
# Gets or sets the initials of the user associated with a specific comment.
|
39
45
|
attr_accessor :initial
|
40
46
|
|
41
|
-
# Gets or sets the link to comment range end node.
|
42
|
-
attr_accessor :range_end
|
43
|
-
|
44
|
-
# Gets or sets the link to comment range start node.
|
45
|
-
attr_accessor :range_start
|
46
|
-
|
47
47
|
# Gets or sets text of the comment.
|
48
48
|
attr_accessor :text
|
49
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
50
50
|
def self.attribute_map
|
51
51
|
{
|
52
|
+
:'range_start' => :'RangeStart',
|
53
|
+
:'range_end' => :'RangeEnd',
|
52
54
|
:'author' => :'Author',
|
53
55
|
:'date_time' => :'DateTime',
|
54
56
|
:'initial' => :'Initial',
|
55
|
-
:'range_end' => :'RangeEnd',
|
56
|
-
:'range_start' => :'RangeStart',
|
57
57
|
:'text' => :'Text'
|
58
58
|
}
|
59
59
|
end
|
@@ -61,11 +61,11 @@ module AsposeWordsCloud
|
|
61
61
|
# Attribute type mapping.
|
62
62
|
def self.swagger_types
|
63
63
|
{
|
64
|
+
:'range_start' => :'NewDocumentPosition',
|
65
|
+
:'range_end' => :'NewDocumentPosition',
|
64
66
|
:'author' => :'String',
|
65
67
|
:'date_time' => :'DateTime',
|
66
68
|
:'initial' => :'String',
|
67
|
-
:'range_end' => :'NewDocumentPosition',
|
68
|
-
:'range_start' => :'NewDocumentPosition',
|
69
69
|
:'text' => :'String'
|
70
70
|
}
|
71
71
|
end
|
@@ -78,6 +78,14 @@ module AsposeWordsCloud
|
|
78
78
|
# convert string to symbol for hash key
|
79
79
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
80
80
|
|
81
|
+
if attributes.key?(:'RangeStart')
|
82
|
+
self.range_start = attributes[:'RangeStart']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.key?(:'RangeEnd')
|
86
|
+
self.range_end = attributes[:'RangeEnd']
|
87
|
+
end
|
88
|
+
|
81
89
|
if attributes.key?(:'Author')
|
82
90
|
self.author = attributes[:'Author']
|
83
91
|
end
|
@@ -90,14 +98,6 @@ module AsposeWordsCloud
|
|
90
98
|
self.initial = attributes[:'Initial']
|
91
99
|
end
|
92
100
|
|
93
|
-
if attributes.key?(:'RangeEnd')
|
94
|
-
self.range_end = attributes[:'RangeEnd']
|
95
|
-
end
|
96
|
-
|
97
|
-
if attributes.key?(:'RangeStart')
|
98
|
-
self.range_start = attributes[:'RangeStart']
|
99
|
-
end
|
100
|
-
|
101
101
|
if attributes.key?(:'Text')
|
102
102
|
self.text = attributes[:'Text']
|
103
103
|
end
|
@@ -121,11 +121,11 @@ module AsposeWordsCloud
|
|
121
121
|
def ==(other)
|
122
122
|
return true if self.equal?(other)
|
123
123
|
self.class == other.class &&
|
124
|
+
range_start == other.range_start &&
|
125
|
+
range_end == other.range_end &&
|
124
126
|
author == other.author &&
|
125
127
|
date_time == other.date_time &&
|
126
128
|
initial == other.initial &&
|
127
|
-
range_end == other.range_end &&
|
128
|
-
range_start == other.range_start &&
|
129
129
|
text == other.text
|
130
130
|
end
|
131
131
|
|
@@ -138,7 +138,7 @@ module AsposeWordsCloud
|
|
138
138
|
# Calculates hash code according to all attributes.
|
139
139
|
# @return [Fixnum] Hash code
|
140
140
|
def hash
|
141
|
-
[
|
141
|
+
[range_start, range_end, author, date_time, initial, text].hash
|
142
142
|
end
|
143
143
|
|
144
144
|
# Builds the object from hash
|
@@ -29,6 +29,12 @@ module AsposeWordsCloud
|
|
29
29
|
|
30
30
|
# Comment update.
|
31
31
|
class CommentUpdate
|
32
|
+
# Gets or sets the link to comment range start node.
|
33
|
+
attr_accessor :range_start
|
34
|
+
|
35
|
+
# Gets or sets the link to comment range end node.
|
36
|
+
attr_accessor :range_end
|
37
|
+
|
32
38
|
# Gets or sets the author name for a comment.
|
33
39
|
attr_accessor :author
|
34
40
|
|
@@ -38,22 +44,16 @@ module AsposeWordsCloud
|
|
38
44
|
# Gets or sets the initials of the user associated with a specific comment.
|
39
45
|
attr_accessor :initial
|
40
46
|
|
41
|
-
# Gets or sets the link to comment range end node.
|
42
|
-
attr_accessor :range_end
|
43
|
-
|
44
|
-
# Gets or sets the link to comment range start node.
|
45
|
-
attr_accessor :range_start
|
46
|
-
|
47
47
|
# Gets or sets text of the comment.
|
48
48
|
attr_accessor :text
|
49
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
50
50
|
def self.attribute_map
|
51
51
|
{
|
52
|
+
:'range_start' => :'RangeStart',
|
53
|
+
:'range_end' => :'RangeEnd',
|
52
54
|
:'author' => :'Author',
|
53
55
|
:'date_time' => :'DateTime',
|
54
56
|
:'initial' => :'Initial',
|
55
|
-
:'range_end' => :'RangeEnd',
|
56
|
-
:'range_start' => :'RangeStart',
|
57
57
|
:'text' => :'Text'
|
58
58
|
}
|
59
59
|
end
|
@@ -61,11 +61,11 @@ module AsposeWordsCloud
|
|
61
61
|
# Attribute type mapping.
|
62
62
|
def self.swagger_types
|
63
63
|
{
|
64
|
+
:'range_start' => :'NewDocumentPosition',
|
65
|
+
:'range_end' => :'NewDocumentPosition',
|
64
66
|
:'author' => :'String',
|
65
67
|
:'date_time' => :'DateTime',
|
66
68
|
:'initial' => :'String',
|
67
|
-
:'range_end' => :'NewDocumentPosition',
|
68
|
-
:'range_start' => :'NewDocumentPosition',
|
69
69
|
:'text' => :'String'
|
70
70
|
}
|
71
71
|
end
|
@@ -78,6 +78,14 @@ module AsposeWordsCloud
|
|
78
78
|
# convert string to symbol for hash key
|
79
79
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
80
80
|
|
81
|
+
if attributes.key?(:'RangeStart')
|
82
|
+
self.range_start = attributes[:'RangeStart']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.key?(:'RangeEnd')
|
86
|
+
self.range_end = attributes[:'RangeEnd']
|
87
|
+
end
|
88
|
+
|
81
89
|
if attributes.key?(:'Author')
|
82
90
|
self.author = attributes[:'Author']
|
83
91
|
end
|
@@ -90,14 +98,6 @@ module AsposeWordsCloud
|
|
90
98
|
self.initial = attributes[:'Initial']
|
91
99
|
end
|
92
100
|
|
93
|
-
if attributes.key?(:'RangeEnd')
|
94
|
-
self.range_end = attributes[:'RangeEnd']
|
95
|
-
end
|
96
|
-
|
97
|
-
if attributes.key?(:'RangeStart')
|
98
|
-
self.range_start = attributes[:'RangeStart']
|
99
|
-
end
|
100
|
-
|
101
101
|
if attributes.key?(:'Text')
|
102
102
|
self.text = attributes[:'Text']
|
103
103
|
end
|
@@ -121,11 +121,11 @@ module AsposeWordsCloud
|
|
121
121
|
def ==(other)
|
122
122
|
return true if self.equal?(other)
|
123
123
|
self.class == other.class &&
|
124
|
+
range_start == other.range_start &&
|
125
|
+
range_end == other.range_end &&
|
124
126
|
author == other.author &&
|
125
127
|
date_time == other.date_time &&
|
126
128
|
initial == other.initial &&
|
127
|
-
range_end == other.range_end &&
|
128
|
-
range_start == other.range_start &&
|
129
129
|
text == other.text
|
130
130
|
end
|
131
131
|
|
@@ -138,7 +138,7 @@ module AsposeWordsCloud
|
|
138
138
|
# Calculates hash code according to all attributes.
|
139
139
|
# @return [Fixnum] Hash code
|
140
140
|
def hash
|
141
|
-
[
|
141
|
+
[range_start, range_end, author, date_time, initial, text].hash
|
142
142
|
end
|
143
143
|
|
144
144
|
# Builds the object from hash
|
@@ -32,17 +32,17 @@ module AsposeWordsCloud
|
|
32
32
|
# Gets or sets the link to the document.
|
33
33
|
attr_accessor :link
|
34
34
|
|
35
|
-
# Gets or sets the custom xml part data.
|
36
|
-
attr_accessor :data
|
37
|
-
|
38
35
|
# Gets or sets the custom xml part id.
|
39
36
|
attr_accessor :id
|
37
|
+
|
38
|
+
# Gets or sets the custom xml part data.
|
39
|
+
attr_accessor :data
|
40
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
41
|
def self.attribute_map
|
42
42
|
{
|
43
43
|
:'link' => :'Link',
|
44
|
-
:'
|
45
|
-
:'
|
44
|
+
:'id' => :'Id',
|
45
|
+
:'data' => :'Data'
|
46
46
|
}
|
47
47
|
end
|
48
48
|
|
@@ -50,8 +50,8 @@ module AsposeWordsCloud
|
|
50
50
|
def self.swagger_types
|
51
51
|
{
|
52
52
|
:'link' => :'WordsApiLink',
|
53
|
-
:'
|
54
|
-
:'
|
53
|
+
:'id' => :'String',
|
54
|
+
:'data' => :'String'
|
55
55
|
}
|
56
56
|
end
|
57
57
|
|
@@ -67,13 +67,13 @@ module AsposeWordsCloud
|
|
67
67
|
self.link = attributes[:'Link']
|
68
68
|
end
|
69
69
|
|
70
|
-
if attributes.key?(:'Data')
|
71
|
-
self.data = attributes[:'Data']
|
72
|
-
end
|
73
|
-
|
74
70
|
if attributes.key?(:'Id')
|
75
71
|
self.id = attributes[:'Id']
|
76
72
|
end
|
73
|
+
|
74
|
+
if attributes.key?(:'Data')
|
75
|
+
self.data = attributes[:'Data']
|
76
|
+
end
|
77
77
|
end
|
78
78
|
|
79
79
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -95,8 +95,8 @@ module AsposeWordsCloud
|
|
95
95
|
return true if self.equal?(other)
|
96
96
|
self.class == other.class &&
|
97
97
|
link == other.link &&
|
98
|
-
|
99
|
-
|
98
|
+
id == other.id &&
|
99
|
+
data == other.data
|
100
100
|
end
|
101
101
|
|
102
102
|
# @see the `==` method
|
@@ -108,7 +108,7 @@ module AsposeWordsCloud
|
|
108
108
|
# Calculates hash code according to all attributes.
|
109
109
|
# @return [Fixnum] Hash code
|
110
110
|
def hash
|
111
|
-
[link,
|
111
|
+
[link, id, data].hash
|
112
112
|
end
|
113
113
|
|
114
114
|
# Builds the object from hash
|