groupdocs_metadata_cloud 26.1

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.
Files changed (49) hide show
  1. checksums.yaml +7 -0
  2. data/lib/groupdocs_metadata_cloud/api/file_api.rb +729 -0
  3. data/lib/groupdocs_metadata_cloud/api/folder_api.rb +694 -0
  4. data/lib/groupdocs_metadata_cloud/api/info_api.rb +363 -0
  5. data/lib/groupdocs_metadata_cloud/api/metadata_api.rb +508 -0
  6. data/lib/groupdocs_metadata_cloud/api/storage_api.rb +541 -0
  7. data/lib/groupdocs_metadata_cloud/api_client.rb +379 -0
  8. data/lib/groupdocs_metadata_cloud/api_client_error.rb +71 -0
  9. data/lib/groupdocs_metadata_cloud/configuration.rb +95 -0
  10. data/lib/groupdocs_metadata_cloud/models/add_options.rb +236 -0
  11. data/lib/groupdocs_metadata_cloud/models/add_property.rb +234 -0
  12. data/lib/groupdocs_metadata_cloud/models/add_result.rb +239 -0
  13. data/lib/groupdocs_metadata_cloud/models/disc_usage.rb +234 -0
  14. data/lib/groupdocs_metadata_cloud/models/error.rb +244 -0
  15. data/lib/groupdocs_metadata_cloud/models/error_details.rb +229 -0
  16. data/lib/groupdocs_metadata_cloud/models/extract_options.rb +224 -0
  17. data/lib/groupdocs_metadata_cloud/models/extract_result.rb +226 -0
  18. data/lib/groupdocs_metadata_cloud/models/file_info.rb +224 -0
  19. data/lib/groupdocs_metadata_cloud/models/file_type.rb +234 -0
  20. data/lib/groupdocs_metadata_cloud/models/file_version.rb +289 -0
  21. data/lib/groupdocs_metadata_cloud/models/file_versions.rb +216 -0
  22. data/lib/groupdocs_metadata_cloud/models/files_list.rb +216 -0
  23. data/lib/groupdocs_metadata_cloud/models/files_upload_result.rb +228 -0
  24. data/lib/groupdocs_metadata_cloud/models/format.rb +224 -0
  25. data/lib/groupdocs_metadata_cloud/models/formats_result.rb +216 -0
  26. data/lib/groupdocs_metadata_cloud/models/info_options.rb +214 -0
  27. data/lib/groupdocs_metadata_cloud/models/info_result.rb +259 -0
  28. data/lib/groupdocs_metadata_cloud/models/match_options.rb +234 -0
  29. data/lib/groupdocs_metadata_cloud/models/metadata_package.rb +238 -0
  30. data/lib/groupdocs_metadata_cloud/models/metadata_property.rb +256 -0
  31. data/lib/groupdocs_metadata_cloud/models/name_options.rb +224 -0
  32. data/lib/groupdocs_metadata_cloud/models/object_exist.rb +234 -0
  33. data/lib/groupdocs_metadata_cloud/models/remove_options.rb +234 -0
  34. data/lib/groupdocs_metadata_cloud/models/remove_result.rb +239 -0
  35. data/lib/groupdocs_metadata_cloud/models/search_criteria.rb +234 -0
  36. data/lib/groupdocs_metadata_cloud/models/search_criteria_without_value.rb +224 -0
  37. data/lib/groupdocs_metadata_cloud/models/set_options.rb +236 -0
  38. data/lib/groupdocs_metadata_cloud/models/set_property.rb +234 -0
  39. data/lib/groupdocs_metadata_cloud/models/set_result.rb +239 -0
  40. data/lib/groupdocs_metadata_cloud/models/storage_exist.rb +219 -0
  41. data/lib/groupdocs_metadata_cloud/models/storage_file.rb +264 -0
  42. data/lib/groupdocs_metadata_cloud/models/tag.rb +224 -0
  43. data/lib/groupdocs_metadata_cloud/models/tag_options.rb +224 -0
  44. data/lib/groupdocs_metadata_cloud/models/tags_options.rb +214 -0
  45. data/lib/groupdocs_metadata_cloud/models/tags_result.rb +214 -0
  46. data/lib/groupdocs_metadata_cloud/models/value_options.rb +224 -0
  47. data/lib/groupdocs_metadata_cloud/version.rb +29 -0
  48. data/lib/groupdocs_metadata_cloud.rb +76 -0
  49. metadata +144 -0
@@ -0,0 +1,508 @@
1
+ # -----------------------------------------------------------------------------------
2
+ # <copyright company="Aspose Pty Ltd" file="metadata.rb">
3
+ # Copyright (c) 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 GroupDocsMetadataCloud
30
+ #
31
+ # GroupDocs.Metadata Cloud API
32
+ #
33
+ class MetadataApi
34
+ attr_accessor :config
35
+
36
+ #make MetadataApi.new private
37
+ private_class_method :new
38
+
39
+ # Initializes new instance of MetadataApi
40
+ #
41
+ # @param [config] Configuration
42
+ # @return [MetadataApi] New instance of MetadataApi
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 MetadataApi
50
+ #
51
+ # @param [app_sid] Application identifier (App SID)
52
+ # @param [app_key] Application private key (App Key)
53
+ # @return [MetadataApi] New instance of MetadataApi
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 MetadataApi
60
+ #
61
+ # @param [config] Configuration
62
+ # @return [MetadataApi] New instance of MetadataApi
63
+ def self.from_config(config)
64
+ return new(config)
65
+ end
66
+
67
+ # Add new metadata fields to a file.
68
+ #
69
+ # @param request add_request
70
+ # @return [AddResult]
71
+ def add(request)
72
+ data, _status_code, _headers = add_with_http_info(request)
73
+ data
74
+ end
75
+
76
+ # Add new metadata fields to a file.
77
+ #
78
+ # @param request add_request
79
+ # @return [Array<(AddResult, Fixnum, Hash)>]
80
+ # AddResult data, response status code and response headers
81
+ def add_with_http_info(request)
82
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? AddRequest
83
+
84
+ @api_client.config.logger.debug 'Calling API: MetadataApi.add ...' if @api_client.config.debugging
85
+ # verify the required parameter 'options' is set
86
+ raise ArgumentError, 'Missing the required parameter options when calling MetadataApi.add' if @api_client.config.client_side_validation && request.options.nil?
87
+ # resource path
88
+ local_var_path = '/metadata/add'
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.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: 'AddResult')
112
+ if @api_client.config.debugging
113
+ @api_client.config.logger.debug "API called:
114
+ MetadataApi#add\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
115
+ end
116
+ [data, status_code, headers]
117
+ end
118
+
119
+ # Retrieve document metadata.
120
+ #
121
+ # @param request extract_request
122
+ # @return [ExtractResult]
123
+ def extract(request)
124
+ data, _status_code, _headers = extract_with_http_info(request)
125
+ data
126
+ end
127
+
128
+ # Retrieve document metadata.
129
+ #
130
+ # @param request extract_request
131
+ # @return [Array<(ExtractResult, Fixnum, Hash)>]
132
+ # ExtractResult data, response status code and response headers
133
+ def extract_with_http_info(request)
134
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? ExtractRequest
135
+
136
+ @api_client.config.logger.debug 'Calling API: MetadataApi.extract ...' if @api_client.config.debugging
137
+ # verify the required parameter 'options' is set
138
+ raise ArgumentError, 'Missing the required parameter options when calling MetadataApi.extract' if @api_client.config.client_side_validation && request.options.nil?
139
+ # resource path
140
+ local_var_path = '/metadata'
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.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: 'ExtractResult')
164
+ if @api_client.config.debugging
165
+ @api_client.config.logger.debug "API called:
166
+ MetadataApi#extract\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
167
+ end
168
+ [data, status_code, headers]
169
+ end
170
+
171
+ # Remove metadata from document using search criteria.
172
+ #
173
+ # @param request remove_request
174
+ # @return [RemoveResult]
175
+ def remove(request)
176
+ data, _status_code, _headers = remove_with_http_info(request)
177
+ data
178
+ end
179
+
180
+ # Remove metadata from document using search criteria.
181
+ #
182
+ # @param request remove_request
183
+ # @return [Array<(RemoveResult, Fixnum, Hash)>]
184
+ # RemoveResult data, response status code and response headers
185
+ def remove_with_http_info(request)
186
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? RemoveRequest
187
+
188
+ @api_client.config.logger.debug 'Calling API: MetadataApi.remove ...' if @api_client.config.debugging
189
+ # verify the required parameter 'options' is set
190
+ raise ArgumentError, 'Missing the required parameter options when calling MetadataApi.remove' if @api_client.config.client_side_validation && request.options.nil?
191
+ # resource path
192
+ local_var_path = '/metadata/remove'
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.options)
209
+ data, status_code, headers = @api_client.call_api(:POST, 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: 'RemoveResult')
216
+ if @api_client.config.debugging
217
+ @api_client.config.logger.debug "API called:
218
+ MetadataApi#remove\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
219
+ end
220
+ [data, status_code, headers]
221
+ end
222
+
223
+ # Set existing metadata fields with new values.
224
+ #
225
+ # @param request set_request
226
+ # @return [SetResult]
227
+ def set(request)
228
+ data, _status_code, _headers = set_with_http_info(request)
229
+ data
230
+ end
231
+
232
+ # Set existing metadata fields with new values.
233
+ #
234
+ # @param request set_request
235
+ # @return [Array<(SetResult, Fixnum, Hash)>]
236
+ # SetResult data, response status code and response headers
237
+ def set_with_http_info(request)
238
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? SetRequest
239
+
240
+ @api_client.config.logger.debug 'Calling API: MetadataApi.set ...' if @api_client.config.debugging
241
+ # verify the required parameter 'options' is set
242
+ raise ArgumentError, 'Missing the required parameter options when calling MetadataApi.set' if @api_client.config.client_side_validation && request.options.nil?
243
+ # resource path
244
+ local_var_path = '/metadata/set'
245
+
246
+ # query parameters
247
+ query_params = {}
248
+
249
+ # header parameters
250
+ header_params = {}
251
+ # HTTP header 'Accept' (if needed)
252
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
253
+ # HTTP header 'Content-Type'
254
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
255
+
256
+ # form parameters
257
+ form_params = {}
258
+
259
+ # http body (model)
260
+ post_body = @api_client.object_to_http_body(request.options)
261
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
262
+ header_params: header_params,
263
+ query_params: query_params,
264
+ form_params: form_params,
265
+ body: post_body,
266
+ access_token: get_access_token,
267
+ return_type: 'SetResult')
268
+ if @api_client.config.debugging
269
+ @api_client.config.logger.debug "API called:
270
+ MetadataApi#set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
271
+ end
272
+ [data, status_code, headers]
273
+ end
274
+
275
+ #
276
+ # Helper method to convert first letter to downcase
277
+ #
278
+ private def downcase_first_letter(str)
279
+ value = str[0].downcase + str[1..-1]
280
+ value
281
+ end
282
+
283
+ #
284
+ # Retrieves access token
285
+ #
286
+ private def get_access_token
287
+ if @access_token.nil? then
288
+ request_access_token
289
+ end
290
+
291
+ @access_token
292
+ end
293
+
294
+ #
295
+ # Gets a access token from server
296
+ #
297
+ private def request_access_token
298
+ auth_config = Configuration.new(@config.app_sid, @config.app_key)
299
+ auth_config.api_base_url = @config.api_base_url
300
+ auth_config.debugging = @config.debugging
301
+ auth_config.logger = @config.logger
302
+ auth_config.temp_folder_path = @config.temp_folder_path
303
+ auth_config.client_side_validation = @config.client_side_validation
304
+ auth_config.api_version = ''
305
+
306
+ auth_api_client = ApiClient.new(auth_config)
307
+
308
+ request_url = "/connect/token"
309
+ post_data = "grant_type=client_credentials&client_id=#{@config.app_sid}&client_secret=#{@config.app_key}"
310
+
311
+ data, _status_code, _header = auth_api_client.call_api(:POST, request_url, :body => post_data, :return_type => 'Object')
312
+
313
+ @access_token = data[:access_token]
314
+
315
+ expires_in_seconds = data[:expires_in].to_i - 5 * 60
316
+ expires_in_days = Rational(expires_in_seconds, 60 * 60 * 24)
317
+ @access_token_expires_at = DateTime.now + expires_in_days
318
+ end
319
+
320
+ # requires all files inside a directory from current dir
321
+ # @param _dir can be relative path like '/lib' or "../lib"
322
+ private def require_all(_dir)
323
+ Dir[File.expand_path(File.join(File.dirname(File.absolute_path(__FILE__)), _dir)) + "/*.rb"].each do |file|
324
+ require file
325
+ end
326
+ end
327
+ end
328
+ end
329
+ #
330
+ # --------------------------------------------------------------------------------------------------------------------
331
+ # <copyright company="Aspose Pty Ltd" file="add_request.rb">
332
+ # Copyright (c) Aspose Pty Ltd
333
+ # </copyright>
334
+ # <summary>
335
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
336
+ # of this software and associated documentation files (the "Software"), to deal
337
+ # in the Software without restriction, including without limitation the rights
338
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
339
+ # copies of the Software, and to permit persons to whom the Software is
340
+ # furnished to do so, subject to the following conditions:
341
+ #
342
+ # The above copyright notice and this permission notice shall be included in all
343
+ # copies or substantial portions of the Software.
344
+ #
345
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
346
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
347
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
348
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
349
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
350
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
351
+ # SOFTWARE.
352
+ # </summary>
353
+ # --------------------------------------------------------------------------------------------------------------------
354
+ #
355
+
356
+ module GroupDocsMetadataCloud
357
+
358
+ #
359
+ # Request model for add operation.
360
+ #
361
+ class AddRequest
362
+
363
+ # Add options.
364
+ attr_accessor :options
365
+
366
+ #
367
+ # Initializes a new instance.
368
+ # @param options Add options.
369
+ def initialize(options)
370
+ self.options = options
371
+ end
372
+ end
373
+ end
374
+ #
375
+ # --------------------------------------------------------------------------------------------------------------------
376
+ # <copyright company="Aspose Pty Ltd" file="extract_request.rb">
377
+ # Copyright (c) Aspose Pty Ltd
378
+ # </copyright>
379
+ # <summary>
380
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
381
+ # of this software and associated documentation files (the "Software"), to deal
382
+ # in the Software without restriction, including without limitation the rights
383
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
384
+ # copies of the Software, and to permit persons to whom the Software is
385
+ # furnished to do so, subject to the following conditions:
386
+ #
387
+ # The above copyright notice and this permission notice shall be included in all
388
+ # copies or substantial portions of the Software.
389
+ #
390
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
391
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
392
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
393
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
394
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
395
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
396
+ # SOFTWARE.
397
+ # </summary>
398
+ # --------------------------------------------------------------------------------------------------------------------
399
+ #
400
+
401
+ module GroupDocsMetadataCloud
402
+
403
+ #
404
+ # Request model for extract operation.
405
+ #
406
+ class ExtractRequest
407
+
408
+ # Extract options.
409
+ attr_accessor :options
410
+
411
+ #
412
+ # Initializes a new instance.
413
+ # @param options Extract options.
414
+ def initialize(options)
415
+ self.options = options
416
+ end
417
+ end
418
+ end
419
+ #
420
+ # --------------------------------------------------------------------------------------------------------------------
421
+ # <copyright company="Aspose Pty Ltd" file="remove_request.rb">
422
+ # Copyright (c) Aspose Pty Ltd
423
+ # </copyright>
424
+ # <summary>
425
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
426
+ # of this software and associated documentation files (the "Software"), to deal
427
+ # in the Software without restriction, including without limitation the rights
428
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
429
+ # copies of the Software, and to permit persons to whom the Software is
430
+ # furnished to do so, subject to the following conditions:
431
+ #
432
+ # The above copyright notice and this permission notice shall be included in all
433
+ # copies or substantial portions of the Software.
434
+ #
435
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
436
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
437
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
438
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
439
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
440
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
441
+ # SOFTWARE.
442
+ # </summary>
443
+ # --------------------------------------------------------------------------------------------------------------------
444
+ #
445
+
446
+ module GroupDocsMetadataCloud
447
+
448
+ #
449
+ # Request model for remove operation.
450
+ #
451
+ class RemoveRequest
452
+
453
+ # Remove options.
454
+ attr_accessor :options
455
+
456
+ #
457
+ # Initializes a new instance.
458
+ # @param options Remove options.
459
+ def initialize(options)
460
+ self.options = options
461
+ end
462
+ end
463
+ end
464
+ #
465
+ # --------------------------------------------------------------------------------------------------------------------
466
+ # <copyright company="Aspose Pty Ltd" file="set_request.rb">
467
+ # Copyright (c) Aspose Pty Ltd
468
+ # </copyright>
469
+ # <summary>
470
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
471
+ # of this software and associated documentation files (the "Software"), to deal
472
+ # in the Software without restriction, including without limitation the rights
473
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
474
+ # copies of the Software, and to permit persons to whom the Software is
475
+ # furnished to do so, subject to the following conditions:
476
+ #
477
+ # The above copyright notice and this permission notice shall be included in all
478
+ # copies or substantial portions of the Software.
479
+ #
480
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
481
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
482
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
483
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
484
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
485
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
486
+ # SOFTWARE.
487
+ # </summary>
488
+ # --------------------------------------------------------------------------------------------------------------------
489
+ #
490
+
491
+ module GroupDocsMetadataCloud
492
+
493
+ #
494
+ # Request model for set operation.
495
+ #
496
+ class SetRequest
497
+
498
+ # Set options.
499
+ attr_accessor :options
500
+
501
+ #
502
+ # Initializes a new instance.
503
+ # @param options Set options.
504
+ def initialize(options)
505
+ self.options = options
506
+ end
507
+ end
508
+ end