groupdocs_comparison_cloud 19.5 → 20.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/groupdocs_comparison_cloud.rb +6 -3
- data/lib/groupdocs_comparison_cloud/api/compare_api.rb +11 -11
- data/lib/groupdocs_comparison_cloud/api/file_api.rb +7 -7
- data/lib/groupdocs_comparison_cloud/api/folder_api.rb +7 -7
- data/lib/groupdocs_comparison_cloud/api/info_api.rb +98 -1
- data/lib/groupdocs_comparison_cloud/api/storage_api.rb +5 -5
- data/lib/groupdocs_comparison_cloud/api_client.rb +1 -1
- data/lib/groupdocs_comparison_cloud/api_error.rb +7 -4
- data/lib/groupdocs_comparison_cloud/configuration.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/change_info.rb +109 -11
- data/lib/groupdocs_comparison_cloud/models/comparison_options.rb +298 -0
- data/lib/groupdocs_comparison_cloud/models/diagram_master_setting.rb +5 -35
- data/lib/groupdocs_comparison_cloud/models/disc_usage.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/error.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/error_details.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/file_info.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/file_version.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/file_versions.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/files_list.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/files_upload_result.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/format.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/formats_result.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/info_result.rb +254 -0
- data/lib/groupdocs_comparison_cloud/models/items_style.rb +21 -6
- data/lib/groupdocs_comparison_cloud/models/link.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/metadata.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/object_exist.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/{options.rb → page_info.rb} +41 -38
- data/lib/groupdocs_comparison_cloud/models/rectangle.rb +264 -0
- data/lib/groupdocs_comparison_cloud/models/settings.rb +203 -28
- data/lib/groupdocs_comparison_cloud/models/{original_size.rb → size.rb} +6 -6
- data/lib/groupdocs_comparison_cloud/models/storage_exist.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/storage_file.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/style_change_info.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/updates_options.rb +55 -3
- data/lib/groupdocs_comparison_cloud/version.rb +2 -2
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3d15eabf7059b1c257df768dcb17aa069e68f9f
|
4
|
+
data.tar.gz: de9e909270ad4e0c21476478d56872d3d32b1599
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f19f56eeac4f06e1a2e9b847198d6591a3dc3d375b225e12ae974747f1e0c14e45fece664f23dd5685c49abf059212fd7bf718165b5fd3991d4a46ba1e29b3ca
|
7
|
+
data.tar.gz: f37f83a710b3119d466af1e39b541aa195c19dbfdc4d13eb1baeef544cb9f62d27836ea3173deaff549fd8a4e3946f90569ecc8ec4d9a9d0970d613766d96e91
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ------------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="groupdocs_comparison_cloud.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -31,6 +31,7 @@ require_relative 'groupdocs_comparison_cloud/configuration'
|
|
31
31
|
|
32
32
|
# Models
|
33
33
|
require_relative 'groupdocs_comparison_cloud/models/change_info'
|
34
|
+
require_relative 'groupdocs_comparison_cloud/models/comparison_options'
|
34
35
|
require_relative 'groupdocs_comparison_cloud/models/diagram_master_setting'
|
35
36
|
require_relative 'groupdocs_comparison_cloud/models/disc_usage'
|
36
37
|
require_relative 'groupdocs_comparison_cloud/models/error'
|
@@ -41,13 +42,15 @@ require_relative 'groupdocs_comparison_cloud/models/files_list'
|
|
41
42
|
require_relative 'groupdocs_comparison_cloud/models/files_upload_result'
|
42
43
|
require_relative 'groupdocs_comparison_cloud/models/format'
|
43
44
|
require_relative 'groupdocs_comparison_cloud/models/formats_result'
|
45
|
+
require_relative 'groupdocs_comparison_cloud/models/info_result'
|
44
46
|
require_relative 'groupdocs_comparison_cloud/models/items_style'
|
45
47
|
require_relative 'groupdocs_comparison_cloud/models/link'
|
46
48
|
require_relative 'groupdocs_comparison_cloud/models/metadata'
|
47
49
|
require_relative 'groupdocs_comparison_cloud/models/object_exist'
|
48
|
-
require_relative 'groupdocs_comparison_cloud/models/
|
49
|
-
require_relative 'groupdocs_comparison_cloud/models/
|
50
|
+
require_relative 'groupdocs_comparison_cloud/models/page_info'
|
51
|
+
require_relative 'groupdocs_comparison_cloud/models/rectangle'
|
50
52
|
require_relative 'groupdocs_comparison_cloud/models/settings'
|
53
|
+
require_relative 'groupdocs_comparison_cloud/models/size'
|
51
54
|
require_relative 'groupdocs_comparison_cloud/models/storage_exist'
|
52
55
|
require_relative 'groupdocs_comparison_cloud/models/storage_file'
|
53
56
|
require_relative 'groupdocs_comparison_cloud/models/style_change_info'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="compare.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -186,8 +186,8 @@ module GroupDocsComparisonCloud
|
|
186
186
|
raise ArgumentError, 'Incorrect request type' unless request.is_a? PutChangesDocumentRequest
|
187
187
|
|
188
188
|
@api_client.config.logger.debug 'Calling API: CompareApi.put_changes_document ...' if @api_client.config.debugging
|
189
|
-
# verify the required parameter '
|
190
|
-
raise ArgumentError, 'Missing the required parameter
|
189
|
+
# verify the required parameter 'updates_options' is set
|
190
|
+
raise ArgumentError, 'Missing the required parameter updates_options when calling CompareApi.put_changes_document' if @api_client.config.client_side_validation && request.updates_options.nil?
|
191
191
|
# resource path
|
192
192
|
local_var_path = '/comparison/updates'
|
193
193
|
|
@@ -205,7 +205,7 @@ module GroupDocsComparisonCloud
|
|
205
205
|
form_params = {}
|
206
206
|
|
207
207
|
# http body (model)
|
208
|
-
post_body = @api_client.object_to_http_body(request.
|
208
|
+
post_body = @api_client.object_to_http_body(request.updates_options)
|
209
209
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
210
210
|
header_params: header_params,
|
211
211
|
query_params: query_params,
|
@@ -277,7 +277,7 @@ end
|
|
277
277
|
#
|
278
278
|
# --------------------------------------------------------------------------------------------------------------------
|
279
279
|
# <copyright company="Aspose Pty Ltd" file="comparisons_request.rb">
|
280
|
-
# Copyright (c) 2003-
|
280
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
281
281
|
# </copyright>
|
282
282
|
# <summary>
|
283
283
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -322,7 +322,7 @@ end
|
|
322
322
|
#
|
323
323
|
# --------------------------------------------------------------------------------------------------------------------
|
324
324
|
# <copyright company="Aspose Pty Ltd" file="post_changes_request.rb">
|
325
|
-
# Copyright (c) 2003-
|
325
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
326
326
|
# </copyright>
|
327
327
|
# <summary>
|
328
328
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -367,7 +367,7 @@ end
|
|
367
367
|
#
|
368
368
|
# --------------------------------------------------------------------------------------------------------------------
|
369
369
|
# <copyright company="Aspose Pty Ltd" file="put_changes_document_request.rb">
|
370
|
-
# Copyright (c) 2003-
|
370
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
371
371
|
# </copyright>
|
372
372
|
# <summary>
|
373
373
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -399,13 +399,13 @@ module GroupDocsComparisonCloud
|
|
399
399
|
class PutChangesDocumentRequest
|
400
400
|
|
401
401
|
# Comparison options
|
402
|
-
attr_accessor :
|
402
|
+
attr_accessor :updates_options
|
403
403
|
|
404
404
|
#
|
405
405
|
# Initializes a new instance.
|
406
|
-
# @param
|
407
|
-
def initialize(
|
408
|
-
self.
|
406
|
+
# @param updates_options Comparison options
|
407
|
+
def initialize(updates_options)
|
408
|
+
self.updates_options = updates_options
|
409
409
|
end
|
410
410
|
end
|
411
411
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="file.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -378,7 +378,7 @@ module GroupDocsComparisonCloud
|
|
378
378
|
|
379
379
|
# http body (model)
|
380
380
|
post_body = nil
|
381
|
-
data, status_code, headers = @api_client.call_api(:
|
381
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
382
382
|
header_params: header_params,
|
383
383
|
query_params: query_params,
|
384
384
|
form_params: form_params,
|
@@ -449,7 +449,7 @@ end
|
|
449
449
|
#
|
450
450
|
# --------------------------------------------------------------------------------------------------------------------
|
451
451
|
# <copyright company="Aspose Pty Ltd" file="copy_file_request.rb">
|
452
|
-
# Copyright (c) 2003-
|
452
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
453
453
|
# </copyright>
|
454
454
|
# <summary>
|
455
455
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -510,7 +510,7 @@ end
|
|
510
510
|
#
|
511
511
|
# --------------------------------------------------------------------------------------------------------------------
|
512
512
|
# <copyright company="Aspose Pty Ltd" file="delete_file_request.rb">
|
513
|
-
# Copyright (c) 2003-
|
513
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
514
514
|
# </copyright>
|
515
515
|
# <summary>
|
516
516
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -563,7 +563,7 @@ end
|
|
563
563
|
#
|
564
564
|
# --------------------------------------------------------------------------------------------------------------------
|
565
565
|
# <copyright company="Aspose Pty Ltd" file="download_file_request.rb">
|
566
|
-
# Copyright (c) 2003-
|
566
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
567
567
|
# </copyright>
|
568
568
|
# <summary>
|
569
569
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -616,7 +616,7 @@ end
|
|
616
616
|
#
|
617
617
|
# --------------------------------------------------------------------------------------------------------------------
|
618
618
|
# <copyright company="Aspose Pty Ltd" file="move_file_request.rb">
|
619
|
-
# Copyright (c) 2003-
|
619
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
620
620
|
# </copyright>
|
621
621
|
# <summary>
|
622
622
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -677,7 +677,7 @@ end
|
|
677
677
|
#
|
678
678
|
# --------------------------------------------------------------------------------------------------------------------
|
679
679
|
# <copyright company="Aspose Pty Ltd" file="upload_file_request.rb">
|
680
|
-
# Copyright (c) 2003-
|
680
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
681
681
|
# </copyright>
|
682
682
|
# <summary>
|
683
683
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="folder.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -174,7 +174,7 @@ module GroupDocsComparisonCloud
|
|
174
174
|
|
175
175
|
# http body (model)
|
176
176
|
post_body = nil
|
177
|
-
data, status_code, headers = @api_client.call_api(:
|
177
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
178
178
|
header_params: header_params,
|
179
179
|
query_params: query_params,
|
180
180
|
form_params: form_params,
|
@@ -430,7 +430,7 @@ end
|
|
430
430
|
#
|
431
431
|
# --------------------------------------------------------------------------------------------------------------------
|
432
432
|
# <copyright company="Aspose Pty Ltd" file="copy_folder_request.rb">
|
433
|
-
# Copyright (c) 2003-
|
433
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
434
434
|
# </copyright>
|
435
435
|
# <summary>
|
436
436
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -487,7 +487,7 @@ end
|
|
487
487
|
#
|
488
488
|
# --------------------------------------------------------------------------------------------------------------------
|
489
489
|
# <copyright company="Aspose Pty Ltd" file="create_folder_request.rb">
|
490
|
-
# Copyright (c) 2003-
|
490
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
491
491
|
# </copyright>
|
492
492
|
# <summary>
|
493
493
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -536,7 +536,7 @@ end
|
|
536
536
|
#
|
537
537
|
# --------------------------------------------------------------------------------------------------------------------
|
538
538
|
# <copyright company="Aspose Pty Ltd" file="delete_folder_request.rb">
|
539
|
-
# Copyright (c) 2003-
|
539
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
540
540
|
# </copyright>
|
541
541
|
# <summary>
|
542
542
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -589,7 +589,7 @@ end
|
|
589
589
|
#
|
590
590
|
# --------------------------------------------------------------------------------------------------------------------
|
591
591
|
# <copyright company="Aspose Pty Ltd" file="get_files_list_request.rb">
|
592
|
-
# Copyright (c) 2003-
|
592
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
593
593
|
# </copyright>
|
594
594
|
# <summary>
|
595
595
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -638,7 +638,7 @@ end
|
|
638
638
|
#
|
639
639
|
# --------------------------------------------------------------------------------------------------------------------
|
640
640
|
# <copyright company="Aspose Pty Ltd" file="move_folder_request.rb">
|
641
|
-
# Copyright (c) 2003-
|
641
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
642
642
|
# </copyright>
|
643
643
|
# <summary>
|
644
644
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="info.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -64,6 +64,58 @@ module GroupDocsComparisonCloud
|
|
64
64
|
return new(config)
|
65
65
|
end
|
66
66
|
|
67
|
+
# Gets document information
|
68
|
+
#
|
69
|
+
# @param request get_document_info_request
|
70
|
+
# @return [InfoResult]
|
71
|
+
def get_document_info(request)
|
72
|
+
data, _status_code, _headers = get_document_info_with_http_info(request)
|
73
|
+
data
|
74
|
+
end
|
75
|
+
|
76
|
+
# Gets document information
|
77
|
+
#
|
78
|
+
# @param request get_document_info_request
|
79
|
+
# @return [Array<(InfoResult, Fixnum, Hash)>]
|
80
|
+
# InfoResult data, response status code and response headers
|
81
|
+
def get_document_info_with_http_info(request)
|
82
|
+
raise ArgumentError, 'Incorrect request type' unless request.is_a? GetDocumentInfoRequest
|
83
|
+
|
84
|
+
@api_client.config.logger.debug 'Calling API: InfoApi.get_document_info ...' if @api_client.config.debugging
|
85
|
+
# verify the required parameter 'file_info' is set
|
86
|
+
raise ArgumentError, 'Missing the required parameter file_info when calling InfoApi.get_document_info' if @api_client.config.client_side_validation && request.file_info.nil?
|
87
|
+
# resource path
|
88
|
+
local_var_path = '/comparison/info'
|
89
|
+
|
90
|
+
# query parameters
|
91
|
+
query_params = {}
|
92
|
+
|
93
|
+
# header parameters
|
94
|
+
header_params = {}
|
95
|
+
# HTTP header 'Accept' (if needed)
|
96
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
97
|
+
# HTTP header 'Content-Type'
|
98
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
99
|
+
|
100
|
+
# form parameters
|
101
|
+
form_params = {}
|
102
|
+
|
103
|
+
# http body (model)
|
104
|
+
post_body = @api_client.object_to_http_body(request.file_info)
|
105
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
106
|
+
header_params: header_params,
|
107
|
+
query_params: query_params,
|
108
|
+
form_params: form_params,
|
109
|
+
body: post_body,
|
110
|
+
access_token: get_access_token,
|
111
|
+
return_type: 'InfoResult')
|
112
|
+
if @api_client.config.debugging
|
113
|
+
@api_client.config.logger.debug "API called:
|
114
|
+
InfoApi#get_document_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
115
|
+
end
|
116
|
+
[data, status_code, headers]
|
117
|
+
end
|
118
|
+
|
67
119
|
# Retrieves supported file formats list
|
68
120
|
#
|
69
121
|
# @return [FormatsResult]
|
@@ -167,3 +219,48 @@ module GroupDocsComparisonCloud
|
|
167
219
|
end
|
168
220
|
end
|
169
221
|
end
|
222
|
+
#
|
223
|
+
# --------------------------------------------------------------------------------------------------------------------
|
224
|
+
# <copyright company="Aspose Pty Ltd" file="get_document_info_request.rb">
|
225
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
226
|
+
# </copyright>
|
227
|
+
# <summary>
|
228
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
229
|
+
# of this software and associated documentation files (the "Software"), to deal
|
230
|
+
# in the Software without restriction, including without limitation the rights
|
231
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
232
|
+
# copies of the Software, and to permit persons to whom the Software is
|
233
|
+
# furnished to do so, subject to the following conditions:
|
234
|
+
#
|
235
|
+
# The above copyright notice and this permission notice shall be included in all
|
236
|
+
# copies or substantial portions of the Software.
|
237
|
+
#
|
238
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
239
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
240
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
241
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
242
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
243
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
244
|
+
# SOFTWARE.
|
245
|
+
# </summary>
|
246
|
+
# --------------------------------------------------------------------------------------------------------------------
|
247
|
+
#
|
248
|
+
|
249
|
+
module GroupDocsComparisonCloud
|
250
|
+
|
251
|
+
#
|
252
|
+
# Request model for get_document_info operation.
|
253
|
+
#
|
254
|
+
class GetDocumentInfoRequest
|
255
|
+
|
256
|
+
# Gets or sets file_info
|
257
|
+
attr_accessor :file_info
|
258
|
+
|
259
|
+
#
|
260
|
+
# Initializes a new instance.
|
261
|
+
# @param file_info
|
262
|
+
def initialize(file_info)
|
263
|
+
self.file_info = file_info
|
264
|
+
end
|
265
|
+
end
|
266
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="storage.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -350,7 +350,7 @@ end
|
|
350
350
|
#
|
351
351
|
# --------------------------------------------------------------------------------------------------------------------
|
352
352
|
# <copyright company="Aspose Pty Ltd" file="get_disc_usage_request.rb">
|
353
|
-
# Copyright (c) 2003-
|
353
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
354
354
|
# </copyright>
|
355
355
|
# <summary>
|
356
356
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -395,7 +395,7 @@ end
|
|
395
395
|
#
|
396
396
|
# --------------------------------------------------------------------------------------------------------------------
|
397
397
|
# <copyright company="Aspose Pty Ltd" file="get_file_versions_request.rb">
|
398
|
-
# Copyright (c) 2003-
|
398
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
399
399
|
# </copyright>
|
400
400
|
# <summary>
|
401
401
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -444,7 +444,7 @@ end
|
|
444
444
|
#
|
445
445
|
# --------------------------------------------------------------------------------------------------------------------
|
446
446
|
# <copyright company="Aspose Pty Ltd" file="object_exists_request.rb">
|
447
|
-
# Copyright (c) 2003-
|
447
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
448
448
|
# </copyright>
|
449
449
|
# <summary>
|
450
450
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -497,7 +497,7 @@ end
|
|
497
497
|
#
|
498
498
|
# --------------------------------------------------------------------------------------------------------------------
|
499
499
|
# <copyright company="Aspose Pty Ltd" file="storage_exists_request.rb">
|
500
|
-
# Copyright (c) 2003-
|
500
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
501
501
|
# </copyright>
|
502
502
|
# <summary>
|
503
503
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="api_client.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="api_error.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -40,9 +40,12 @@ module GroupDocsComparisonCloud
|
|
40
40
|
if arg.key?(:response_body) then
|
41
41
|
data = JSON.parse(arg[:response_body], :symbolize_names => true)
|
42
42
|
if !data.nil? && !data[:error].nil? then
|
43
|
-
|
44
|
-
|
45
|
-
|
43
|
+
error = data[:error]
|
44
|
+
if error.kind_of?(String) then
|
45
|
+
@message = error
|
46
|
+
else
|
47
|
+
@message = error[:message]
|
48
|
+
end
|
46
49
|
end
|
47
50
|
end
|
48
51
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ------------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="configuration.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="change_info.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -38,26 +38,59 @@ module GroupDocsComparisonCloud
|
|
38
38
|
attr_accessor :comparison_action
|
39
39
|
|
40
40
|
# Type of change (Inserted, Deleted or StyleChanged)
|
41
|
-
attr_accessor :
|
41
|
+
attr_accessor :type
|
42
42
|
|
43
43
|
# Text of changed element
|
44
44
|
attr_accessor :text
|
45
45
|
|
46
|
+
# Changed text of target doc
|
47
|
+
attr_accessor :target_text
|
48
|
+
|
46
49
|
# Array of authors who made this change (used for multi comparison)
|
47
50
|
attr_accessor :authors
|
48
51
|
|
49
52
|
# Array of style changes
|
50
53
|
attr_accessor :style_change_info
|
51
54
|
|
55
|
+
# Page where current change is placed
|
56
|
+
attr_accessor :page_info
|
57
|
+
|
58
|
+
# Coordinates of changed element
|
59
|
+
attr_accessor :box
|
60
|
+
class EnumAttributeValidator
|
61
|
+
attr_reader :datatype
|
62
|
+
attr_reader :allowable_values
|
63
|
+
|
64
|
+
def initialize(datatype, allowable_values)
|
65
|
+
@allowable_values = allowable_values.map do |value|
|
66
|
+
case datatype.to_s
|
67
|
+
when /Integer/i
|
68
|
+
value.to_i
|
69
|
+
when /Float/i
|
70
|
+
value.to_f
|
71
|
+
else
|
72
|
+
value
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
def valid?(value)
|
78
|
+
!value || allowable_values.include?(value)
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
52
82
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
83
|
def self.attribute_map
|
54
84
|
{
|
55
85
|
:'id' => :'Id',
|
56
86
|
:'comparison_action' => :'ComparisonAction',
|
57
|
-
:'
|
87
|
+
:'type' => :'Type',
|
58
88
|
:'text' => :'Text',
|
89
|
+
:'target_text' => :'TargetText',
|
59
90
|
:'authors' => :'Authors',
|
60
|
-
:'style_change_info' => :'StyleChangeInfo'
|
91
|
+
:'style_change_info' => :'StyleChangeInfo',
|
92
|
+
:'page_info' => :'PageInfo',
|
93
|
+
:'box' => :'Box'
|
61
94
|
}
|
62
95
|
end
|
63
96
|
|
@@ -66,10 +99,13 @@ module GroupDocsComparisonCloud
|
|
66
99
|
{
|
67
100
|
:'id' => :'Integer',
|
68
101
|
:'comparison_action' => :'String',
|
69
|
-
:'
|
102
|
+
:'type' => :'String',
|
70
103
|
:'text' => :'String',
|
104
|
+
:'target_text' => :'String',
|
71
105
|
:'authors' => :'Array<String>',
|
72
|
-
:'style_change_info' => :'Array<StyleChangeInfo>'
|
106
|
+
:'style_change_info' => :'Array<StyleChangeInfo>',
|
107
|
+
:'page_info' => :'PageInfo',
|
108
|
+
:'box' => :'Rectangle'
|
73
109
|
}
|
74
110
|
end
|
75
111
|
|
@@ -89,14 +125,18 @@ module GroupDocsComparisonCloud
|
|
89
125
|
self.comparison_action = attributes[:'ComparisonAction']
|
90
126
|
end
|
91
127
|
|
92
|
-
if attributes.key?(:'
|
93
|
-
self.
|
128
|
+
if attributes.key?(:'Type')
|
129
|
+
self.type = attributes[:'Type']
|
94
130
|
end
|
95
131
|
|
96
132
|
if attributes.key?(:'Text')
|
97
133
|
self.text = attributes[:'Text']
|
98
134
|
end
|
99
135
|
|
136
|
+
if attributes.key?(:'TargetText')
|
137
|
+
self.target_text = attributes[:'TargetText']
|
138
|
+
end
|
139
|
+
|
100
140
|
if attributes.key?(:'Authors')
|
101
141
|
if (value = attributes[:'Authors']).is_a?(Array)
|
102
142
|
self.authors = value
|
@@ -109,6 +149,14 @@ module GroupDocsComparisonCloud
|
|
109
149
|
end
|
110
150
|
end
|
111
151
|
|
152
|
+
if attributes.key?(:'PageInfo')
|
153
|
+
self.page_info = attributes[:'PageInfo']
|
154
|
+
end
|
155
|
+
|
156
|
+
if attributes.key?(:'Box')
|
157
|
+
self.box = attributes[:'Box']
|
158
|
+
end
|
159
|
+
|
112
160
|
end
|
113
161
|
|
114
162
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -119,6 +167,18 @@ module GroupDocsComparisonCloud
|
|
119
167
|
invalid_properties.push("invalid value for 'id', id cannot be nil.")
|
120
168
|
end
|
121
169
|
|
170
|
+
if @comparison_action.nil?
|
171
|
+
invalid_properties.push("invalid value for 'comparison_action', comparison_action cannot be nil.")
|
172
|
+
end
|
173
|
+
|
174
|
+
if @type.nil?
|
175
|
+
invalid_properties.push("invalid value for 'type', type cannot be nil.")
|
176
|
+
end
|
177
|
+
|
178
|
+
if @box.nil?
|
179
|
+
invalid_properties.push("invalid value for 'box', box cannot be nil.")
|
180
|
+
end
|
181
|
+
|
122
182
|
return invalid_properties
|
123
183
|
end
|
124
184
|
|
@@ -126,9 +186,44 @@ module GroupDocsComparisonCloud
|
|
126
186
|
# @return true if the model is valid
|
127
187
|
def valid?
|
128
188
|
return false if @id.nil?
|
189
|
+
return false if @comparison_action.nil?
|
190
|
+
comparison_action_validator = EnumAttributeValidator.new('String', ["None", "Accept", "Reject"])
|
191
|
+
return false unless comparison_action_validator.valid?(@comparison_action)
|
192
|
+
return false if @type.nil?
|
193
|
+
type_validator = EnumAttributeValidator.new('String', ["None", "Modified", "Inserted", "Deleted", "Added", "NotModified", "StyleChanged", "Resized", "Moved", "MovedAndResized", "ShiftedAndResized"])
|
194
|
+
return false unless type_validator.valid?(@type)
|
195
|
+
return false if @box.nil?
|
129
196
|
return true
|
130
197
|
end
|
131
198
|
|
199
|
+
# Custom attribute writer method checking allowed values (enum).
|
200
|
+
# @param [Object] comparison_action Object to be assigned
|
201
|
+
def comparison_action=(comparison_action)
|
202
|
+
validator = EnumAttributeValidator.new('String', ["None", "Accept", "Reject"])
|
203
|
+
if comparison_action.to_i == 0
|
204
|
+
unless validator.valid?(comparison_action)
|
205
|
+
raise ArgumentError, "invalid value for 'comparison_action', must be one of #{validator.allowable_values}."
|
206
|
+
end
|
207
|
+
@comparison_action = comparison_action
|
208
|
+
else
|
209
|
+
@comparison_action = validator.allowable_values[comparison_action.to_i]
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
# Custom attribute writer method checking allowed values (enum).
|
214
|
+
# @param [Object] type Object to be assigned
|
215
|
+
def type=(type)
|
216
|
+
validator = EnumAttributeValidator.new('String', ["None", "Modified", "Inserted", "Deleted", "Added", "NotModified", "StyleChanged", "Resized", "Moved", "MovedAndResized", "ShiftedAndResized"])
|
217
|
+
if type.to_i == 0
|
218
|
+
unless validator.valid?(type)
|
219
|
+
raise ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}."
|
220
|
+
end
|
221
|
+
@type = type
|
222
|
+
else
|
223
|
+
@type = validator.allowable_values[type.to_i]
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
132
227
|
# Checks equality by comparing each attribute.
|
133
228
|
# @param [Object] Object to be compared
|
134
229
|
def ==(other)
|
@@ -136,10 +231,13 @@ module GroupDocsComparisonCloud
|
|
136
231
|
self.class == other.class &&
|
137
232
|
id == other.id &&
|
138
233
|
comparison_action == other.comparison_action &&
|
139
|
-
|
234
|
+
type == other.type &&
|
140
235
|
text == other.text &&
|
236
|
+
target_text == other.target_text &&
|
141
237
|
authors == other.authors &&
|
142
|
-
style_change_info == other.style_change_info
|
238
|
+
style_change_info == other.style_change_info &&
|
239
|
+
page_info == other.page_info &&
|
240
|
+
box == other.box
|
143
241
|
end
|
144
242
|
|
145
243
|
# @see the `==` method
|
@@ -151,7 +249,7 @@ module GroupDocsComparisonCloud
|
|
151
249
|
# Calculates hash code according to all attributes.
|
152
250
|
# @return [Fixnum] Hash code
|
153
251
|
def hash
|
154
|
-
[id, comparison_action,
|
252
|
+
[id, comparison_action, type, text, target_text, authors, style_change_info, page_info, box].hash
|
155
253
|
end
|
156
254
|
|
157
255
|
# Downcases first letter.
|