groupdocs_comparison_cloud 18.9 → 21.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/lib/groupdocs_comparison_cloud.rb +34 -42
  3. data/lib/groupdocs_comparison_cloud/api/compare_api.rb +411 -0
  4. data/lib/groupdocs_comparison_cloud/api/file_api.rb +729 -0
  5. data/lib/groupdocs_comparison_cloud/api/folder_api.rb +694 -0
  6. data/lib/groupdocs_comparison_cloud/api/info_api.rb +266 -0
  7. data/lib/groupdocs_comparison_cloud/api/review_api.rb +314 -0
  8. data/lib/groupdocs_comparison_cloud/api/storage_api.rb +541 -0
  9. data/lib/groupdocs_comparison_cloud/api_client.rb +7 -17
  10. data/lib/groupdocs_comparison_cloud/api_error.rb +19 -4
  11. data/lib/groupdocs_comparison_cloud/configuration.rb +3 -3
  12. data/lib/groupdocs_comparison_cloud/models/{comparison_change.rb → apply_revisions_options.rb} +65 -64
  13. data/lib/groupdocs_comparison_cloud/models/change_info.rb +371 -0
  14. data/lib/groupdocs_comparison_cloud/models/comparison_options.rb +298 -0
  15. data/lib/groupdocs_comparison_cloud/models/diagram_master_setting.rb +229 -0
  16. data/lib/groupdocs_comparison_cloud/models/disc_usage.rb +234 -0
  17. data/lib/groupdocs_comparison_cloud/models/error.rb +244 -0
  18. data/lib/groupdocs_comparison_cloud/models/{comparison_file_info.rb → error_details.rb} +39 -36
  19. data/lib/groupdocs_comparison_cloud/models/{style_settings_values.rb → file_info.rb} +51 -38
  20. data/lib/groupdocs_comparison_cloud/models/file_version.rb +289 -0
  21. data/lib/groupdocs_comparison_cloud/models/{value_type.rb → file_versions.rb} +33 -13
  22. data/lib/groupdocs_comparison_cloud/models/{comparison_changes_category_dto.rb → files_list.rb} +28 -30
  23. data/lib/groupdocs_comparison_cloud/models/files_upload_result.rb +228 -0
  24. data/lib/groupdocs_comparison_cloud/models/format.rb +224 -0
  25. data/lib/groupdocs_comparison_cloud/models/{comparison_style_change.rb → formats_result.rb} +29 -19
  26. data/lib/groupdocs_comparison_cloud/models/info_result.rb +254 -0
  27. data/lib/groupdocs_comparison_cloud/models/items_style.rb +304 -0
  28. data/lib/groupdocs_comparison_cloud/models/link.rb +16 -8
  29. data/lib/groupdocs_comparison_cloud/models/{comparison_metadata_values.rb → metadata.rb} +28 -20
  30. data/lib/groupdocs_comparison_cloud/models/object_exist.rb +234 -0
  31. data/lib/groupdocs_comparison_cloud/models/{comparison_request.rb → page_info.rb} +56 -47
  32. data/lib/groupdocs_comparison_cloud/models/rectangle.rb +264 -0
  33. data/lib/groupdocs_comparison_cloud/models/revision_info.rb +322 -0
  34. data/lib/groupdocs_comparison_cloud/models/settings.rb +581 -0
  35. data/lib/groupdocs_comparison_cloud/models/size.rb +234 -0
  36. data/lib/groupdocs_comparison_cloud/models/storage_exist.rb +219 -0
  37. data/lib/groupdocs_comparison_cloud/models/storage_file.rb +264 -0
  38. data/lib/groupdocs_comparison_cloud/models/style_change_info.rb +234 -0
  39. data/lib/groupdocs_comparison_cloud/models/updates_options.rb +310 -0
  40. data/lib/groupdocs_comparison_cloud/version.rb +2 -2
  41. metadata +35 -58
  42. data/lib/groupdocs_comparison_cloud/api/changes_api.rb +0 -470
  43. data/lib/groupdocs_comparison_cloud/api/comparison_api.rb +0 -365
  44. data/lib/groupdocs_comparison_cloud/models/color.rb +0 -1404
  45. data/lib/groupdocs_comparison_cloud/models/comparison_request_settings.rb +0 -378
  46. data/lib/groupdocs_comparison_cloud/models/requests/comparison_images_request.rb +0 -49
  47. data/lib/groupdocs_comparison_cloud/models/requests/comparison_images_stream_request.rb +0 -45
  48. data/lib/groupdocs_comparison_cloud/models/requests/comparison_request.rb +0 -49
  49. data/lib/groupdocs_comparison_cloud/models/requests/comparison_stream_request.rb +0 -45
  50. data/lib/groupdocs_comparison_cloud/models/requests/post_categories_changes_request.rb +0 -49
  51. data/lib/groupdocs_comparison_cloud/models/requests/post_changes_request.rb +0 -45
  52. data/lib/groupdocs_comparison_cloud/models/requests/put_changes_document_request.rb +0 -49
  53. data/lib/groupdocs_comparison_cloud/models/requests/put_changes_document_stream_request.rb +0 -45
  54. data/lib/groupdocs_comparison_cloud/models/requests/put_changes_images_request.rb +0 -49
  55. data/lib/groupdocs_comparison_cloud/models/requests/put_changes_images_stream_request.rb +0 -45
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 031e0ebd57fdcec3da78c30ed43a52ad3b743f6c
4
- data.tar.gz: 5e004954197669c2a488d028d6959d7a26132623
3
+ metadata.gz: ffc1ae6b75e3f7394cff8e700db4bfe49d4c1eba
4
+ data.tar.gz: a556422ecb7f44edb299963e4666ccae17d746d4
5
5
  SHA512:
6
- metadata.gz: be5c9d5c448728199745f4175414855843f721ef01b2562ddc053f95a5bf3869b8eb26edf83ad75aefe5cb6b41bf843f8ac99672e19b6e88e04d728c940b69f7
7
- data.tar.gz: eb397692fa0fbceeaf6fd819a720d967491eb95995979585dee1fefc7c73b66b0f5cc16ba2ee1fcbbacdefd78af553d0275d55b2ebabf8cbcda270225e30e80a
6
+ metadata.gz: 95003f995a63c6e48a968869b23686ccc24765fa09198980048c2c8d5470ee906c689f6853c34a3a7f0a14aa1ac6187152df4f7ecbc3eec466287d3444f88d77
7
+ data.tar.gz: 050d1f54699af6d1f0f9a05e50ff0321e1db06e13f3d15ba6d4dd6bf4084bdd1038e9b80bfb764d415a6759936db4dad022a3c12347fa4f4f418fa3d74d320ee
@@ -1,6 +1,6 @@
1
1
  # ------------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="groupdocs_comparison_cloud.rb">
3
- # Copyright (c) 2003-2018 Aspose Pty Ltd
3
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -30,47 +30,39 @@ require_relative 'groupdocs_comparison_cloud/version'
30
30
  require_relative 'groupdocs_comparison_cloud/configuration'
31
31
 
32
32
  # Models
33
- require_relative 'groupdocs_comparison_cloud/models/comparison_change'
34
- require_relative 'groupdocs_comparison_cloud/models/comparison_changes_category_dto'
35
- require_relative 'groupdocs_comparison_cloud/models/comparison_file_info'
36
- require_relative 'groupdocs_comparison_cloud/models/comparison_metadata_values'
37
- require_relative 'groupdocs_comparison_cloud/models/comparison_request'
38
- require_relative 'groupdocs_comparison_cloud/models/comparison_request_settings'
39
- require_relative 'groupdocs_comparison_cloud/models/comparison_style_change'
33
+ require_relative 'groupdocs_comparison_cloud/models/apply_revisions_options'
34
+ require_relative 'groupdocs_comparison_cloud/models/change_info'
35
+ require_relative 'groupdocs_comparison_cloud/models/comparison_options'
36
+ require_relative 'groupdocs_comparison_cloud/models/diagram_master_setting'
37
+ require_relative 'groupdocs_comparison_cloud/models/disc_usage'
38
+ require_relative 'groupdocs_comparison_cloud/models/error'
39
+ require_relative 'groupdocs_comparison_cloud/models/error_details'
40
+ require_relative 'groupdocs_comparison_cloud/models/file_info'
41
+ require_relative 'groupdocs_comparison_cloud/models/file_versions'
42
+ require_relative 'groupdocs_comparison_cloud/models/files_list'
43
+ require_relative 'groupdocs_comparison_cloud/models/files_upload_result'
44
+ require_relative 'groupdocs_comparison_cloud/models/format'
45
+ require_relative 'groupdocs_comparison_cloud/models/formats_result'
46
+ require_relative 'groupdocs_comparison_cloud/models/info_result'
47
+ require_relative 'groupdocs_comparison_cloud/models/items_style'
40
48
  require_relative 'groupdocs_comparison_cloud/models/link'
41
- require_relative 'groupdocs_comparison_cloud/models/style_settings_values'
42
- require_relative 'groupdocs_comparison_cloud/models/value_type'
43
- require_relative 'groupdocs_comparison_cloud/models/color'
49
+ require_relative 'groupdocs_comparison_cloud/models/metadata'
50
+ require_relative 'groupdocs_comparison_cloud/models/object_exist'
51
+ require_relative 'groupdocs_comparison_cloud/models/page_info'
52
+ require_relative 'groupdocs_comparison_cloud/models/rectangle'
53
+ require_relative 'groupdocs_comparison_cloud/models/revision_info'
54
+ require_relative 'groupdocs_comparison_cloud/models/settings'
55
+ require_relative 'groupdocs_comparison_cloud/models/size'
56
+ require_relative 'groupdocs_comparison_cloud/models/storage_exist'
57
+ require_relative 'groupdocs_comparison_cloud/models/storage_file'
58
+ require_relative 'groupdocs_comparison_cloud/models/style_change_info'
59
+ require_relative 'groupdocs_comparison_cloud/models/file_version'
60
+ require_relative 'groupdocs_comparison_cloud/models/updates_options'
44
61
 
45
62
  # APIs
46
- require_relative 'groupdocs_comparison_cloud/api/changes_api'
47
- require_relative 'groupdocs_comparison_cloud/api/comparison_api'
48
-
49
- module GroupDocsComparisonCloud
50
- # Main module
51
- class << self
52
- # Initialize SDK with API keys.
53
- #
54
- # app_sid = "xxx"
55
- # app_key = "xxx"
56
- #
57
- # GroupDocsComparisonCloud.from_keys(app_sid, app_key)
58
- def from_keys(app_sid, app_key)
59
- ComparisonApi.from_keys(app_sid, app_key)
60
- end
61
-
62
- # Initialize SDK with Configuration.
63
- #
64
- # app_sid = "xxx"
65
- # app_key = "xxx"
66
- #
67
- # config = GroupDocsComparisonCloud::Configuration.new(app_sid, app_key)
68
- # config.debugging = true
69
- # config.temp_folder_path = "./temp"
70
- #
71
- # GroupDocsComparisonCloud.from_config(config)
72
- def from_config(config)
73
- ComparisonApi.from_config(config)
74
- end
75
- end
76
- end
63
+ require_relative 'groupdocs_comparison_cloud/api/compare_api'
64
+ require_relative 'groupdocs_comparison_cloud/api/file_api'
65
+ require_relative 'groupdocs_comparison_cloud/api/folder_api'
66
+ require_relative 'groupdocs_comparison_cloud/api/info_api'
67
+ require_relative 'groupdocs_comparison_cloud/api/review_api'
68
+ require_relative 'groupdocs_comparison_cloud/api/storage_api'
@@ -0,0 +1,411 @@
1
+ # -----------------------------------------------------------------------------------
2
+ # <copyright company="Aspose Pty Ltd" file="compare.rb">
3
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # </copyright>
5
+ # <summary>
6
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ # of this software and associated documentation files (the "Software"), to deal
8
+ # in the Software without restriction, including without limitation the rights
9
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ # copies of the Software, and to permit persons to whom the Software is
11
+ # furnished to do so, subject to the following conditions:
12
+ #
13
+ # The above copyright notice and this permission notice shall be included in all
14
+ # copies or substantial portions of the Software.
15
+ #
16
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ # SOFTWARE.
23
+ # </summary>
24
+ # -----------------------------------------------------------------------------------
25
+
26
+ require 'uri'
27
+ require 'date'
28
+
29
+ module GroupDocsComparisonCloud
30
+ #
31
+ # GroupDocs.Comparison Cloud API
32
+ #
33
+ class CompareApi
34
+ attr_accessor :config
35
+
36
+ #make CompareApi.new private
37
+ private_class_method :new
38
+
39
+ # Initializes new instance of CompareApi
40
+ #
41
+ # @param [config] Configuration
42
+ # @return [CompareApi] New instance of CompareApi
43
+ def initialize(config)
44
+ @config = config
45
+ @api_client = ApiClient.new(config)
46
+ @access_token = nil
47
+ end
48
+
49
+ # Initializes new instance of CompareApi
50
+ #
51
+ # @param [app_sid] Application identifier (App SID)
52
+ # @param [app_key] Application private key (App Key)
53
+ # @return [CompareApi] New instance of CompareApi
54
+ def self.from_keys(app_sid, app_key)
55
+ config = Configuration.new(app_sid, app_key)
56
+ return new(config)
57
+ end
58
+
59
+ # Initializes new instance of CompareApi
60
+ #
61
+ # @param [config] Configuration
62
+ # @return [CompareApi] New instance of CompareApi
63
+ def self.from_config(config)
64
+ return new(config)
65
+ end
66
+
67
+ # Compares source and target documents and returns a link to saved result
68
+ #
69
+ # @param request comparisons_request
70
+ # @return [Link]
71
+ def comparisons(request)
72
+ data, _status_code, _headers = comparisons_with_http_info(request)
73
+ data
74
+ end
75
+
76
+ # Compares source and target documents and returns a link to saved result
77
+ #
78
+ # @param request comparisons_request
79
+ # @return [Array<(Link, Fixnum, Hash)>]
80
+ # Link data, response status code and response headers
81
+ def comparisons_with_http_info(request)
82
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? ComparisonsRequest
83
+
84
+ @api_client.config.logger.debug 'Calling API: CompareApi.comparisons ...' if @api_client.config.debugging
85
+ # verify the required parameter 'comparison_options' is set
86
+ raise ArgumentError, 'Missing the required parameter comparison_options when calling CompareApi.comparisons' if @api_client.config.client_side_validation && request.comparison_options.nil?
87
+ # resource path
88
+ local_var_path = '/comparison/comparisons'
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.comparison_options)
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: 'Link')
112
+ if @api_client.config.debugging
113
+ @api_client.config.logger.debug "API called:
114
+ CompareApi#comparisons\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
115
+ end
116
+ [data, status_code, headers]
117
+ end
118
+
119
+ # Retrieves a list of changes between source and target documents
120
+ #
121
+ # @param request post_changes_request
122
+ # @return [Array<ChangeInfo>]
123
+ def post_changes(request)
124
+ data, _status_code, _headers = post_changes_with_http_info(request)
125
+ data
126
+ end
127
+
128
+ # Retrieves a list of changes between source and target documents
129
+ #
130
+ # @param request post_changes_request
131
+ # @return [Array<(Array<ChangeInfo>, Fixnum, Hash)>]
132
+ # Array<ChangeInfo> data, response status code and response headers
133
+ def post_changes_with_http_info(request)
134
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PostChangesRequest
135
+
136
+ @api_client.config.logger.debug 'Calling API: CompareApi.post_changes ...' if @api_client.config.debugging
137
+ # verify the required parameter 'comparison_options' is set
138
+ raise ArgumentError, 'Missing the required parameter comparison_options when calling CompareApi.post_changes' if @api_client.config.client_side_validation && request.comparison_options.nil?
139
+ # resource path
140
+ local_var_path = '/comparison/changes'
141
+
142
+ # query parameters
143
+ query_params = {}
144
+
145
+ # header parameters
146
+ header_params = {}
147
+ # HTTP header 'Accept' (if needed)
148
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
149
+ # HTTP header 'Content-Type'
150
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
151
+
152
+ # form parameters
153
+ form_params = {}
154
+
155
+ # http body (model)
156
+ post_body = @api_client.object_to_http_body(request.comparison_options)
157
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
158
+ header_params: header_params,
159
+ query_params: query_params,
160
+ form_params: form_params,
161
+ body: post_body,
162
+ access_token: get_access_token,
163
+ return_type: 'Array<ChangeInfo>')
164
+ if @api_client.config.debugging
165
+ @api_client.config.logger.debug "API called:
166
+ CompareApi#post_changes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
167
+ end
168
+ [data, status_code, headers]
169
+ end
170
+
171
+ # Accepts or rejects changes to the resultant document and returns a link to saved result
172
+ #
173
+ # @param request put_changes_document_request
174
+ # @return [Link]
175
+ def put_changes_document(request)
176
+ data, _status_code, _headers = put_changes_document_with_http_info(request)
177
+ data
178
+ end
179
+
180
+ # Accepts or rejects changes to the resultant document and returns a link to saved result
181
+ #
182
+ # @param request put_changes_document_request
183
+ # @return [Array<(Link, Fixnum, Hash)>]
184
+ # Link data, response status code and response headers
185
+ def put_changes_document_with_http_info(request)
186
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PutChangesDocumentRequest
187
+
188
+ @api_client.config.logger.debug 'Calling API: CompareApi.put_changes_document ...' if @api_client.config.debugging
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
+ # resource path
192
+ local_var_path = '/comparison/updates'
193
+
194
+ # query parameters
195
+ query_params = {}
196
+
197
+ # header parameters
198
+ header_params = {}
199
+ # HTTP header 'Accept' (if needed)
200
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
201
+ # HTTP header 'Content-Type'
202
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
203
+
204
+ # form parameters
205
+ form_params = {}
206
+
207
+ # http body (model)
208
+ post_body = @api_client.object_to_http_body(request.updates_options)
209
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
210
+ header_params: header_params,
211
+ query_params: query_params,
212
+ form_params: form_params,
213
+ body: post_body,
214
+ access_token: get_access_token,
215
+ return_type: 'Link')
216
+ if @api_client.config.debugging
217
+ @api_client.config.logger.debug "API called:
218
+ CompareApi#put_changes_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
219
+ end
220
+ [data, status_code, headers]
221
+ end
222
+
223
+ #
224
+ # Helper method to convert first letter to downcase
225
+ #
226
+ private def downcase_first_letter(str)
227
+ value = str[0].downcase + str[1..-1]
228
+ value
229
+ end
230
+
231
+ #
232
+ # Retrieves access token
233
+ #
234
+ private def get_access_token
235
+ if @access_token.nil? then
236
+ request_access_token
237
+ end
238
+
239
+ @access_token
240
+ end
241
+
242
+ #
243
+ # Gets a access token from server
244
+ #
245
+ private def request_access_token
246
+ auth_config = Configuration.new(@config.app_sid, @config.app_key)
247
+ auth_config.api_base_url = @config.api_base_url
248
+ auth_config.debugging = @config.debugging
249
+ auth_config.logger = @config.logger
250
+ auth_config.temp_folder_path = @config.temp_folder_path
251
+ auth_config.client_side_validation = @config.client_side_validation
252
+ auth_config.api_version = ''
253
+
254
+ auth_api_client = ApiClient.new(auth_config)
255
+
256
+ request_url = "/connect/token"
257
+ post_data = "grant_type=client_credentials&client_id=#{@config.app_sid}&client_secret=#{@config.app_key}"
258
+
259
+ data, _status_code, _header = auth_api_client.call_api(:POST, request_url, :body => post_data, :return_type => 'Object')
260
+
261
+ @access_token = data[:access_token]
262
+
263
+ expires_in_seconds = data[:expires_in].to_i - 5 * 60
264
+ expires_in_days = Rational(expires_in_seconds, 60 * 60 * 24)
265
+ @access_token_expires_at = DateTime.now + expires_in_days
266
+ end
267
+
268
+ # requires all files inside a directory from current dir
269
+ # @param _dir can be relative path like '/lib' or "../lib"
270
+ private def require_all(_dir)
271
+ Dir[File.expand_path(File.join(File.dirname(File.absolute_path(__FILE__)), _dir)) + "/*.rb"].each do |file|
272
+ require file
273
+ end
274
+ end
275
+ end
276
+ end
277
+ #
278
+ # --------------------------------------------------------------------------------------------------------------------
279
+ # <copyright company="Aspose Pty Ltd" file="comparisons_request.rb">
280
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
281
+ # </copyright>
282
+ # <summary>
283
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
284
+ # of this software and associated documentation files (the "Software"), to deal
285
+ # in the Software without restriction, including without limitation the rights
286
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
287
+ # copies of the Software, and to permit persons to whom the Software is
288
+ # furnished to do so, subject to the following conditions:
289
+ #
290
+ # The above copyright notice and this permission notice shall be included in all
291
+ # copies or substantial portions of the Software.
292
+ #
293
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
294
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
295
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
296
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
297
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
298
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
299
+ # SOFTWARE.
300
+ # </summary>
301
+ # --------------------------------------------------------------------------------------------------------------------
302
+ #
303
+
304
+ module GroupDocsComparisonCloud
305
+
306
+ #
307
+ # Request model for comparisons operation.
308
+ #
309
+ class ComparisonsRequest
310
+
311
+ # Comparison options
312
+ attr_accessor :comparison_options
313
+
314
+ #
315
+ # Initializes a new instance.
316
+ # @param comparison_options Comparison options
317
+ def initialize(comparison_options)
318
+ self.comparison_options = comparison_options
319
+ end
320
+ end
321
+ end
322
+ #
323
+ # --------------------------------------------------------------------------------------------------------------------
324
+ # <copyright company="Aspose Pty Ltd" file="post_changes_request.rb">
325
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
326
+ # </copyright>
327
+ # <summary>
328
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
329
+ # of this software and associated documentation files (the "Software"), to deal
330
+ # in the Software without restriction, including without limitation the rights
331
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
332
+ # copies of the Software, and to permit persons to whom the Software is
333
+ # furnished to do so, subject to the following conditions:
334
+ #
335
+ # The above copyright notice and this permission notice shall be included in all
336
+ # copies or substantial portions of the Software.
337
+ #
338
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
339
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
340
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
341
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
342
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
343
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
344
+ # SOFTWARE.
345
+ # </summary>
346
+ # --------------------------------------------------------------------------------------------------------------------
347
+ #
348
+
349
+ module GroupDocsComparisonCloud
350
+
351
+ #
352
+ # Request model for post_changes operation.
353
+ #
354
+ class PostChangesRequest
355
+
356
+ # Comparison options
357
+ attr_accessor :comparison_options
358
+
359
+ #
360
+ # Initializes a new instance.
361
+ # @param comparison_options Comparison options
362
+ def initialize(comparison_options)
363
+ self.comparison_options = comparison_options
364
+ end
365
+ end
366
+ end
367
+ #
368
+ # --------------------------------------------------------------------------------------------------------------------
369
+ # <copyright company="Aspose Pty Ltd" file="put_changes_document_request.rb">
370
+ # Copyright (c) 2003-2021 Aspose Pty Ltd
371
+ # </copyright>
372
+ # <summary>
373
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
374
+ # of this software and associated documentation files (the "Software"), to deal
375
+ # in the Software without restriction, including without limitation the rights
376
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
377
+ # copies of the Software, and to permit persons to whom the Software is
378
+ # furnished to do so, subject to the following conditions:
379
+ #
380
+ # The above copyright notice and this permission notice shall be included in all
381
+ # copies or substantial portions of the Software.
382
+ #
383
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
384
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
385
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
386
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
387
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
388
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
389
+ # SOFTWARE.
390
+ # </summary>
391
+ # --------------------------------------------------------------------------------------------------------------------
392
+ #
393
+
394
+ module GroupDocsComparisonCloud
395
+
396
+ #
397
+ # Request model for put_changes_document operation.
398
+ #
399
+ class PutChangesDocumentRequest
400
+
401
+ # Comparison options
402
+ attr_accessor :updates_options
403
+
404
+ #
405
+ # Initializes a new instance.
406
+ # @param updates_options Comparison options
407
+ def initialize(updates_options)
408
+ self.updates_options = updates_options
409
+ end
410
+ end
411
+ end