groupdocs_annotation_cloud 21.6 → 23.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/lib/groupdocs_annotation_cloud/api/annotate_api.rb +5 -5
  3. data/lib/groupdocs_annotation_cloud/api/file_api.rb +6 -6
  4. data/lib/groupdocs_annotation_cloud/api/folder_api.rb +6 -6
  5. data/lib/groupdocs_annotation_cloud/api/info_api.rb +2 -2
  6. data/lib/groupdocs_annotation_cloud/api/license_api.rb +169 -0
  7. data/lib/groupdocs_annotation_cloud/api/preview_api.rb +3 -3
  8. data/lib/groupdocs_annotation_cloud/api/storage_api.rb +5 -5
  9. data/lib/groupdocs_annotation_cloud/api_client.rb +1 -1
  10. data/lib/groupdocs_annotation_cloud/api_error.rb +1 -1
  11. data/lib/groupdocs_annotation_cloud/configuration.rb +1 -1
  12. data/lib/groupdocs_annotation_cloud/models/annotate_options.rb +1 -1
  13. data/lib/groupdocs_annotation_cloud/models/annotation_api_link.rb +1 -1
  14. data/lib/groupdocs_annotation_cloud/models/annotation_info.rb +32 -7
  15. data/lib/groupdocs_annotation_cloud/models/annotation_reply_info.rb +1 -1
  16. data/lib/groupdocs_annotation_cloud/models/consumption_result.rb +234 -0
  17. data/lib/groupdocs_annotation_cloud/models/disc_usage.rb +1 -1
  18. data/lib/groupdocs_annotation_cloud/models/document_info.rb +1 -1
  19. data/lib/groupdocs_annotation_cloud/models/error.rb +1 -1
  20. data/lib/groupdocs_annotation_cloud/models/error_details.rb +1 -1
  21. data/lib/groupdocs_annotation_cloud/models/file_info.rb +1 -1
  22. data/lib/groupdocs_annotation_cloud/models/file_version.rb +1 -1
  23. data/lib/groupdocs_annotation_cloud/models/file_versions.rb +1 -1
  24. data/lib/groupdocs_annotation_cloud/models/files_list.rb +1 -1
  25. data/lib/groupdocs_annotation_cloud/models/files_upload_result.rb +1 -1
  26. data/lib/groupdocs_annotation_cloud/models/format.rb +1 -1
  27. data/lib/groupdocs_annotation_cloud/models/formats_result.rb +1 -1
  28. data/lib/groupdocs_annotation_cloud/models/link.rb +1 -1
  29. data/lib/groupdocs_annotation_cloud/models/link_element.rb +1 -1
  30. data/lib/groupdocs_annotation_cloud/models/object_exist.rb +1 -1
  31. data/lib/groupdocs_annotation_cloud/models/page_image.rb +1 -1
  32. data/lib/groupdocs_annotation_cloud/models/page_images.rb +1 -1
  33. data/lib/groupdocs_annotation_cloud/models/page_info.rb +1 -1
  34. data/lib/groupdocs_annotation_cloud/models/point.rb +1 -1
  35. data/lib/groupdocs_annotation_cloud/models/preview_options.rb +1 -1
  36. data/lib/groupdocs_annotation_cloud/models/rectangle.rb +1 -1
  37. data/lib/groupdocs_annotation_cloud/models/remove_options.rb +1 -1
  38. data/lib/groupdocs_annotation_cloud/models/storage_exist.rb +1 -1
  39. data/lib/groupdocs_annotation_cloud/models/storage_file.rb +1 -1
  40. data/lib/groupdocs_annotation_cloud/version.rb +2 -2
  41. data/lib/groupdocs_annotation_cloud.rb +3 -1
  42. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4a9956e274f0fc599d8b2feb58426edbea1b7b6b
4
- data.tar.gz: 3674ecb62ee775c97c5b19f6bffcc19e1545e577
3
+ metadata.gz: 8edeb3ab309272f20329a0b7926d6f1d0a0bcbfe
4
+ data.tar.gz: fa27df3d5bb334e1cd846e3f90d70080f88f81ea
5
5
  SHA512:
6
- metadata.gz: d4773c1b711085fa304503e62c7dc427316d0857aaff6aa9ccfa30a769e6e885dbc89dae46ab23e46ee1550d338313e46875053ce7d5b704a8302657f67eb023
7
- data.tar.gz: 146ca64356f5b2f2ce01fa659337abb8722270c677fdcb122936d3f748491fd4383db09df2be7be151133b94d9a7f6e54058e1e2fbc14ac28d65f60b1c29af47
6
+ metadata.gz: 9679cee1c56bfe94e5141dbbbb252fbe704943fe596605908c57dc93567223f6aab5a267b9b57ffaad053c1b4db42c34bf669775bf5e28b3422db1ff14e4640b
7
+ data.tar.gz: 8c9dd4987b1b4b61daeff6e01e0c32eedff62917738c6be41e73f69d961651ec4762803d06ca901eba2b2043202c5198f46752d8c45ffc1053da45040824745e
@@ -1,6 +1,6 @@
1
1
  # -----------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="annotate.rb">
3
- # Copyright (c) 2003-2021 Aspose Pty Ltd
3
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -329,7 +329,7 @@ end
329
329
  #
330
330
  # --------------------------------------------------------------------------------------------------------------------
331
331
  # <copyright company="Aspose Pty Ltd" file="annotate_request.rb">
332
- # Copyright (c) 2003-2021 Aspose Pty Ltd
332
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
333
333
  # </copyright>
334
334
  # <summary>
335
335
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -374,7 +374,7 @@ end
374
374
  #
375
375
  # --------------------------------------------------------------------------------------------------------------------
376
376
  # <copyright company="Aspose Pty Ltd" file="annotate_direct_request.rb">
377
- # Copyright (c) 2003-2021 Aspose Pty Ltd
377
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
378
378
  # </copyright>
379
379
  # <summary>
380
380
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -419,7 +419,7 @@ end
419
419
  #
420
420
  # --------------------------------------------------------------------------------------------------------------------
421
421
  # <copyright company="Aspose Pty Ltd" file="extract_request.rb">
422
- # Copyright (c) 2003-2021 Aspose Pty Ltd
422
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
423
423
  # </copyright>
424
424
  # <summary>
425
425
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -464,7 +464,7 @@ end
464
464
  #
465
465
  # --------------------------------------------------------------------------------------------------------------------
466
466
  # <copyright company="Aspose Pty Ltd" file="remove_annotations_request.rb">
467
- # Copyright (c) 2003-2021 Aspose Pty Ltd
467
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
468
468
  # </copyright>
469
469
  # <summary>
470
470
  # 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="file.rb">
3
- # Copyright (c) 2003-2021 Aspose Pty Ltd
3
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -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-2021 Aspose Pty Ltd
452
+ # Copyright (c) 2003-2023 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-2021 Aspose Pty Ltd
513
+ # Copyright (c) 2003-2023 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-2021 Aspose Pty Ltd
566
+ # Copyright (c) 2003-2023 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-2021 Aspose Pty Ltd
619
+ # Copyright (c) 2003-2023 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-2021 Aspose Pty Ltd
680
+ # Copyright (c) 2003-2023 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-2021 Aspose Pty Ltd
3
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -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-2021 Aspose Pty Ltd
433
+ # Copyright (c) 2003-2023 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-2021 Aspose Pty Ltd
490
+ # Copyright (c) 2003-2023 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-2021 Aspose Pty Ltd
539
+ # Copyright (c) 2003-2023 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-2021 Aspose Pty Ltd
592
+ # Copyright (c) 2003-2023 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-2021 Aspose Pty Ltd
641
+ # Copyright (c) 2003-2023 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-2021 Aspose Pty Ltd
3
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -222,7 +222,7 @@ end
222
222
  #
223
223
  # --------------------------------------------------------------------------------------------------------------------
224
224
  # <copyright company="Aspose Pty Ltd" file="get_info_request.rb">
225
- # Copyright (c) 2003-2021 Aspose Pty Ltd
225
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
226
226
  # </copyright>
227
227
  # <summary>
228
228
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -0,0 +1,169 @@
1
+ # -----------------------------------------------------------------------------------
2
+ # <copyright company="Aspose Pty Ltd" file="license.rb">
3
+ # Copyright (c) 2003-2023 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 GroupDocsAnnotationCloud
30
+ #
31
+ # GroupDocs.Annotation Cloud API
32
+ #
33
+ class LicenseApi
34
+ attr_accessor :config
35
+
36
+ #make LicenseApi.new private
37
+ private_class_method :new
38
+
39
+ # Initializes new instance of LicenseApi
40
+ #
41
+ # @param [config] Configuration
42
+ # @return [LicenseApi] New instance of LicenseApi
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 LicenseApi
50
+ #
51
+ # @param [app_sid] Application identifier (App SID)
52
+ # @param [app_key] Application private key (App Key)
53
+ # @return [LicenseApi] New instance of LicenseApi
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 LicenseApi
60
+ #
61
+ # @param [config] Configuration
62
+ # @return [LicenseApi] New instance of LicenseApi
63
+ def self.from_config(config)
64
+ return new(config)
65
+ end
66
+
67
+ # Get license consumption
68
+ #
69
+ # @return [ConsumptionResult]
70
+ def get_consumption_credit()
71
+ data, _status_code, _headers = get_consumption_credit_with_http_info()
72
+ data
73
+ end
74
+
75
+ # Get license consumption
76
+ #
77
+
78
+ # @return [Array<(ConsumptionResult, Fixnum, Hash)>]
79
+ # ConsumptionResult data, response status code and response headers
80
+ def get_consumption_credit_with_http_info()
81
+
82
+
83
+ @api_client.config.logger.debug 'Calling API: LicenseApi.get_consumption_credit ...' if @api_client.config.debugging
84
+ # resource path
85
+ local_var_path = '/annotation/consumption'
86
+
87
+ # query parameters
88
+ query_params = {}
89
+
90
+ # header parameters
91
+ header_params = {}
92
+ # HTTP header 'Accept' (if needed)
93
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
94
+ # HTTP header 'Content-Type'
95
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
96
+
97
+ # form parameters
98
+ form_params = {}
99
+
100
+ # http body (model)
101
+ post_body = nil
102
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
103
+ header_params: header_params,
104
+ query_params: query_params,
105
+ form_params: form_params,
106
+ body: post_body,
107
+ access_token: get_access_token,
108
+ return_type: 'ConsumptionResult')
109
+ if @api_client.config.debugging
110
+ @api_client.config.logger.debug "API called:
111
+ LicenseApi#get_consumption_credit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
112
+ end
113
+ [data, status_code, headers]
114
+ end
115
+
116
+ #
117
+ # Helper method to convert first letter to downcase
118
+ #
119
+ private def downcase_first_letter(str)
120
+ value = str[0].downcase + str[1..-1]
121
+ value
122
+ end
123
+
124
+ #
125
+ # Retrieves access token
126
+ #
127
+ private def get_access_token
128
+ if @access_token.nil? then
129
+ request_access_token
130
+ end
131
+
132
+ @access_token
133
+ end
134
+
135
+ #
136
+ # Gets a access token from server
137
+ #
138
+ private def request_access_token
139
+ auth_config = Configuration.new(@config.app_sid, @config.app_key)
140
+ auth_config.api_base_url = @config.api_base_url
141
+ auth_config.debugging = @config.debugging
142
+ auth_config.logger = @config.logger
143
+ auth_config.temp_folder_path = @config.temp_folder_path
144
+ auth_config.client_side_validation = @config.client_side_validation
145
+ auth_config.api_version = ''
146
+
147
+ auth_api_client = ApiClient.new(auth_config)
148
+
149
+ request_url = "/connect/token"
150
+ post_data = "grant_type=client_credentials&client_id=#{@config.app_sid}&client_secret=#{@config.app_key}"
151
+
152
+ data, _status_code, _header = auth_api_client.call_api(:POST, request_url, :body => post_data, :return_type => 'Object')
153
+
154
+ @access_token = data[:access_token]
155
+
156
+ expires_in_seconds = data[:expires_in].to_i - 5 * 60
157
+ expires_in_days = Rational(expires_in_seconds, 60 * 60 * 24)
158
+ @access_token_expires_at = DateTime.now + expires_in_days
159
+ end
160
+
161
+ # requires all files inside a directory from current dir
162
+ # @param _dir can be relative path like '/lib' or "../lib"
163
+ private def require_all(_dir)
164
+ Dir[File.expand_path(File.join(File.dirname(File.absolute_path(__FILE__)), _dir)) + "/*.rb"].each do |file|
165
+ require file
166
+ end
167
+ end
168
+ end
169
+ end
@@ -1,6 +1,6 @@
1
1
  # -----------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="preview.rb">
3
- # Copyright (c) 2003-2021 Aspose Pty Ltd
3
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -224,7 +224,7 @@ end
224
224
  #
225
225
  # --------------------------------------------------------------------------------------------------------------------
226
226
  # <copyright company="Aspose Pty Ltd" file="delete_pages_request.rb">
227
- # Copyright (c) 2003-2021 Aspose Pty Ltd
227
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
228
228
  # </copyright>
229
229
  # <summary>
230
230
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -269,7 +269,7 @@ end
269
269
  #
270
270
  # --------------------------------------------------------------------------------------------------------------------
271
271
  # <copyright company="Aspose Pty Ltd" file="get_pages_request.rb">
272
- # Copyright (c) 2003-2021 Aspose Pty Ltd
272
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
273
273
  # </copyright>
274
274
  # <summary>
275
275
  # 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="storage.rb">
3
- # Copyright (c) 2003-2021 Aspose Pty Ltd
3
+ # Copyright (c) 2003-2023 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-2021 Aspose Pty Ltd
353
+ # Copyright (c) 2003-2023 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-2021 Aspose Pty Ltd
398
+ # Copyright (c) 2003-2023 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-2021 Aspose Pty Ltd
447
+ # Copyright (c) 2003-2023 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-2021 Aspose Pty Ltd
500
+ # Copyright (c) 2003-2023 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-2021 Aspose Pty Ltd
3
+ # Copyright (c) 2003-2023 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-2021 Aspose Pty Ltd
3
+ # Copyright (c) 2003-2023 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="configuration.rb">
3
- # Copyright (c) 2003-2021 Aspose Pty Ltd
3
+ # Copyright (c) 2003-2023 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="annotate_options.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # 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="annotation_api_link.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # 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="annotation_info.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -94,6 +94,9 @@ module GroupDocsAnnotationCloud
94
94
  # Gets or sets the annotation's background color
95
95
  attr_accessor :background_color
96
96
 
97
+ # Gets or sets annotation color
98
+ attr_accessor :squiggly_color
99
+
97
100
  # Gets or sets the annotation's font family
98
101
  attr_accessor :font_family
99
102
 
@@ -114,6 +117,9 @@ module GroupDocsAnnotationCloud
114
117
 
115
118
  # Gets or sets image file path in cloud storage, for Image annotations
116
119
  attr_accessor :image_path
120
+
121
+ # Sets auto scale for watermark annotation
122
+ attr_accessor :auto_scale
117
123
  class EnumAttributeValidator
118
124
  attr_reader :datatype
119
125
  attr_reader :allowable_values
@@ -160,13 +166,15 @@ module GroupDocsAnnotationCloud
160
166
  :'pen_width' => :'PenWidth',
161
167
  :'pen_style' => :'PenStyle',
162
168
  :'background_color' => :'BackgroundColor',
169
+ :'squiggly_color' => :'SquigglyColor',
163
170
  :'font_family' => :'FontFamily',
164
171
  :'font_size' => :'FontSize',
165
172
  :'opacity' => :'Opacity',
166
173
  :'angle' => :'Angle',
167
174
  :'z_index' => :'ZIndex',
168
175
  :'url' => :'Url',
169
- :'image_path' => :'ImagePath'
176
+ :'image_path' => :'ImagePath',
177
+ :'auto_scale' => :'AutoScale'
170
178
  }
171
179
  end
172
180
 
@@ -194,13 +202,15 @@ module GroupDocsAnnotationCloud
194
202
  :'pen_width' => :'Integer',
195
203
  :'pen_style' => :'String',
196
204
  :'background_color' => :'Integer',
205
+ :'squiggly_color' => :'Integer',
197
206
  :'font_family' => :'String',
198
207
  :'font_size' => :'Float',
199
208
  :'opacity' => :'Float',
200
209
  :'angle' => :'Float',
201
210
  :'z_index' => :'Integer',
202
211
  :'url' => :'String',
203
- :'image_path' => :'String'
212
+ :'image_path' => :'String',
213
+ :'auto_scale' => :'BOOLEAN'
204
214
  }
205
215
  end
206
216
 
@@ -300,6 +310,10 @@ module GroupDocsAnnotationCloud
300
310
  self.background_color = attributes[:'BackgroundColor']
301
311
  end
302
312
 
313
+ if attributes.key?(:'SquigglyColor')
314
+ self.squiggly_color = attributes[:'SquigglyColor']
315
+ end
316
+
303
317
  if attributes.key?(:'FontFamily')
304
318
  self.font_family = attributes[:'FontFamily']
305
319
  end
@@ -328,6 +342,10 @@ module GroupDocsAnnotationCloud
328
342
  self.image_path = attributes[:'ImagePath']
329
343
  end
330
344
 
345
+ if attributes.key?(:'AutoScale')
346
+ self.auto_scale = attributes[:'AutoScale']
347
+ end
348
+
331
349
  end
332
350
 
333
351
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -366,6 +384,10 @@ module GroupDocsAnnotationCloud
366
384
  invalid_properties.push("invalid value for 'z_index', z_index cannot be nil.")
367
385
  end
368
386
 
387
+ if @auto_scale.nil?
388
+ invalid_properties.push("invalid value for 'auto_scale', auto_scale cannot be nil.")
389
+ end
390
+
369
391
  return invalid_properties
370
392
  end
371
393
 
@@ -382,12 +404,13 @@ module GroupDocsAnnotationCloud
382
404
  return false if @creator_id.nil?
383
405
  return false if @box.nil?
384
406
  return false if @type.nil?
385
- type_validator = EnumAttributeValidator.new('String', ["None", "Area", "Arrow", "Distance", "Ellipse", "Link", "Point", "Polyline", "ResourcesRedaction", "TextField", "TextHighlight", "TextRedaction", "TextReplacement", "TextStrikeout", "TextUnderline", "Watermark", "Image"])
407
+ type_validator = EnumAttributeValidator.new('String', ["None", "Area", "Arrow", "Distance", "Ellipse", "Link", "Point", "Polyline", "ResourcesRedaction", "TextField", "TextHighlight", "TextRedaction", "TextReplacement", "TextStrikeout", "TextUnderline", "Watermark", "Image", "TextSquiggly"])
386
408
  return false unless type_validator.valid?(@type)
387
409
  return false if @created_on.nil?
388
410
  pen_style_validator = EnumAttributeValidator.new('String', ["Solid", "Dash", "DashDot", "Dot", "LongDash", "DashDotDot"])
389
411
  return false unless pen_style_validator.valid?(@pen_style)
390
412
  return false if @z_index.nil?
413
+ return false if @auto_scale.nil?
391
414
  return true
392
415
  end
393
416
 
@@ -424,7 +447,7 @@ module GroupDocsAnnotationCloud
424
447
  # Custom attribute writer method checking allowed values (enum).
425
448
  # @param [Object] type Object to be assigned
426
449
  def type=(type)
427
- validator = EnumAttributeValidator.new('String', ["None", "Area", "Arrow", "Distance", "Ellipse", "Link", "Point", "Polyline", "ResourcesRedaction", "TextField", "TextHighlight", "TextRedaction", "TextReplacement", "TextStrikeout", "TextUnderline", "Watermark", "Image"])
450
+ validator = EnumAttributeValidator.new('String', ["None", "Area", "Arrow", "Distance", "Ellipse", "Link", "Point", "Polyline", "ResourcesRedaction", "TextField", "TextHighlight", "TextRedaction", "TextReplacement", "TextStrikeout", "TextUnderline", "Watermark", "Image", "TextSquiggly"])
428
451
  if type.to_i == 0
429
452
  unless validator.valid?(type)
430
453
  # raise ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}."
@@ -477,13 +500,15 @@ module GroupDocsAnnotationCloud
477
500
  pen_width == other.pen_width &&
478
501
  pen_style == other.pen_style &&
479
502
  background_color == other.background_color &&
503
+ squiggly_color == other.squiggly_color &&
480
504
  font_family == other.font_family &&
481
505
  font_size == other.font_size &&
482
506
  opacity == other.opacity &&
483
507
  angle == other.angle &&
484
508
  z_index == other.z_index &&
485
509
  url == other.url &&
486
- image_path == other.image_path
510
+ image_path == other.image_path &&
511
+ auto_scale == other.auto_scale
487
512
  end
488
513
 
489
514
  # @see the `==` method
@@ -495,7 +520,7 @@ module GroupDocsAnnotationCloud
495
520
  # Calculates hash code according to all attributes.
496
521
  # @return [Fixnum] Hash code
497
522
  def hash
498
- [id, text, text_to_replace, horizontal_alignment, vertical_alignment, creator_id, creator_name, creator_email, box, points, page_number, annotation_position, svg_path, type, replies, created_on, font_color, pen_color, pen_width, pen_style, background_color, font_family, font_size, opacity, angle, z_index, url, image_path].hash
523
+ [id, text, text_to_replace, horizontal_alignment, vertical_alignment, creator_id, creator_name, creator_email, box, points, page_number, annotation_position, svg_path, type, replies, created_on, font_color, pen_color, pen_width, pen_style, background_color, squiggly_color, font_family, font_size, opacity, angle, z_index, url, image_path, auto_scale].hash
499
524
  end
500
525
 
501
526
  # Downcases first letter.
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="annotation_reply_info.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -0,0 +1,234 @@
1
+ #
2
+ # --------------------------------------------------------------------------------------------------------------------
3
+ # <copyright company="Aspose Pty Ltd" file="consumption_result.rb">
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
+ # </copyright>
6
+ # <summary>
7
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ # of this software and associated documentation files (the "Software"), to deal
9
+ # in the Software without restriction, including without limitation the rights
10
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ # copies of the Software, and to permit persons to whom the Software is
12
+ # furnished to do so, subject to the following conditions:
13
+ #
14
+ # The above copyright notice and this permission notice shall be included in all
15
+ # copies or substantial portions of the Software.
16
+ #
17
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ # SOFTWARE.
24
+ # </summary>
25
+ # --------------------------------------------------------------------------------------------------------------------
26
+ #
27
+
28
+ require 'date'
29
+
30
+ module GroupDocsAnnotationCloud
31
+ # Metered license consumption information
32
+ class ConsumptionResult
33
+
34
+ # Amount of used credits
35
+ attr_accessor :credit
36
+
37
+ # Amount of MBs processed
38
+ attr_accessor :quantity
39
+
40
+ # Attribute mapping from ruby-style variable name to JSON key.
41
+ def self.attribute_map
42
+ {
43
+ :'credit' => :'Credit',
44
+ :'quantity' => :'Quantity'
45
+ }
46
+ end
47
+
48
+ # Attribute type mapping.
49
+ def self.swagger_types
50
+ {
51
+ :'credit' => :'Float',
52
+ :'quantity' => :'Float'
53
+ }
54
+ end
55
+
56
+ # Initializes the object
57
+ # @param [Hash] attributes Model attributes in the form of hash
58
+ def initialize(attributes = {})
59
+ return unless attributes.is_a?(Hash)
60
+
61
+ # convert string to symbol for hash key
62
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
63
+
64
+ if attributes.key?(:'Credit')
65
+ self.credit = attributes[:'Credit']
66
+ end
67
+
68
+ if attributes.key?(:'Quantity')
69
+ self.quantity = attributes[:'Quantity']
70
+ end
71
+
72
+ end
73
+
74
+ # Show invalid properties with the reasons. Usually used together with valid?
75
+ # @return Array for valid properies with the reasons
76
+ def list_invalid_properties
77
+ invalid_properties = []
78
+ if @credit.nil?
79
+ invalid_properties.push("invalid value for 'credit', credit cannot be nil.")
80
+ end
81
+
82
+ if @quantity.nil?
83
+ invalid_properties.push("invalid value for 'quantity', quantity cannot be nil.")
84
+ end
85
+
86
+ return invalid_properties
87
+ end
88
+
89
+ # Check to see if the all the properties in the model are valid
90
+ # @return true if the model is valid
91
+ def valid?
92
+ return false if @credit.nil?
93
+ return false if @quantity.nil?
94
+ return true
95
+ end
96
+
97
+ # Checks equality by comparing each attribute.
98
+ # @param [Object] Object to be compared
99
+ def ==(other)
100
+ return true if self.equal?(other)
101
+ self.class == other.class &&
102
+ credit == other.credit &&
103
+ quantity == other.quantity
104
+ end
105
+
106
+ # @see the `==` method
107
+ # @param [Object] Object to be compared
108
+ def eql?(other)
109
+ self == other
110
+ end
111
+
112
+ # Calculates hash code according to all attributes.
113
+ # @return [Fixnum] Hash code
114
+ def hash
115
+ [credit, quantity].hash
116
+ end
117
+
118
+ # Downcases first letter.
119
+ # @return downcased string
120
+ def uncap(str)
121
+ str[0, 1].downcase + str[1..-1]
122
+ end
123
+
124
+ # Builds the object from hash
125
+ # @param [Hash] attributes Model attributes in the form of hash
126
+ # @return [Object] Returns the model itself
127
+ def build_from_hash(attributes)
128
+ return nil unless attributes.is_a?(Hash)
129
+ self.class.swagger_types.each_pair do |key, type|
130
+ pname = uncap(self.class.attribute_map[key]).intern
131
+ value = attributes[pname]
132
+ if type =~ /\AArray<(.*)>/i
133
+ # check to ensure the input is an array given that the the attribute
134
+ # is documented as an array but the input is not
135
+ if value.is_a?(Array)
136
+ self.send("#{key}=", value.map { |v| _deserialize($1, v) })
137
+ end
138
+ elsif !value.nil?
139
+ self.send("#{key}=", _deserialize(type, value))
140
+ end
141
+ # or else data not found in attributes(hash), not an issue as the data can be optional
142
+ end
143
+
144
+ self
145
+ end
146
+
147
+ # Deserializes the data based on type
148
+ # @param string type Data type
149
+ # @param string value Value to be deserialized
150
+ # @return [Object] Deserialized data
151
+ def _deserialize(type, value)
152
+ case type.to_sym
153
+ when :DateTime
154
+ Date.parse value
155
+ when :Date
156
+ Date.parse value
157
+ when :String
158
+ value.to_s
159
+ when :Integer
160
+ value.to_i
161
+ when :Float
162
+ value.to_f
163
+ when :BOOLEAN
164
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
165
+ true
166
+ else
167
+ false
168
+ end
169
+ when :Object
170
+ # generic object (usually a Hash), return directly
171
+ value
172
+ when /\AArray<(?<inner_type>.+)>\z/
173
+ inner_type = Regexp.last_match[:inner_type]
174
+ value.map { |v| _deserialize(inner_type, v) }
175
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
176
+ k_type = Regexp.last_match[:k_type]
177
+ v_type = Regexp.last_match[:v_type]
178
+ {}.tap do |hash|
179
+ value.each do |k, v|
180
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
181
+ end
182
+ end
183
+ else
184
+ # model
185
+ temp_model = GroupDocsAnnotationCloud.const_get(type).new
186
+ temp_model.build_from_hash(value)
187
+ end
188
+ end
189
+
190
+ # Returns the string representation of the object
191
+ # @return [String] String presentation of the object
192
+ def to_s
193
+ to_hash.to_s
194
+ end
195
+
196
+ # to_body is an alias to to_hash (backward compatibility)
197
+ # @return [Hash] Returns the object in the form of hash
198
+ def to_body
199
+ to_hash
200
+ end
201
+
202
+ # Returns the object in the form of hash
203
+ # @return [Hash] Returns the object in the form of hash
204
+ def to_hash
205
+ hash = {}
206
+ self.class.attribute_map.each_pair do |attr, param|
207
+ value = self.send(attr)
208
+ next if value.nil?
209
+ hash[param] = _to_hash(value)
210
+ end
211
+ hash
212
+ end
213
+
214
+ # Outputs non-array value in the form of hash
215
+ # For object, use to_hash. Otherwise, just return the value
216
+ # @param [Object] value Any valid value
217
+ # @return [Hash] Returns the value in the form of hash
218
+ def _to_hash(value)
219
+ if value.is_a?(Array)
220
+ value.compact.map { |v| _to_hash(v) }
221
+ elsif value.is_a?(Hash)
222
+ {}.tap do |hash|
223
+ value.each { |k, v| hash[k] = _to_hash(v) }
224
+ end
225
+ elsif value.respond_to? :to_hash
226
+ value.to_hash
227
+ else
228
+ value
229
+ end
230
+ end
231
+
232
+ end
233
+
234
+ end
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="disc_usage.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # 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="document_info.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # 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="error.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # 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="error_details.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # 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="file_info.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # 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="file_version.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # 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="file_versions.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # 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="files_list.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # 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="files_upload_result.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # 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="format.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # 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="formats_result.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # 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="link.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # 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="link_element.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # 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="object_exist.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # 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="page_image.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # 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="page_images.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # 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="page_info.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # 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="point.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # 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="preview_options.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # 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="rectangle.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # 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="remove_options.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # 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="storage_exist.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # 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="storage_file.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # 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="version.rb">
4
- # Copyright (c) 2003-2021 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -25,5 +25,5 @@
25
25
  # --------------------------------------------------------------------------------------------------------------------
26
26
  #
27
27
  module GroupDocsAnnotationCloud
28
- VERSION = "21.6".freeze
28
+ VERSION = "23.4".freeze
29
29
  end
@@ -1,6 +1,6 @@
1
1
  # ------------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="groupdocs_annotation_cloud.rb">
3
- # Copyright (c) 2003-2021 Aspose Pty Ltd
3
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -33,6 +33,7 @@ require_relative 'groupdocs_annotation_cloud/configuration'
33
33
  require_relative 'groupdocs_annotation_cloud/models/annotate_options'
34
34
  require_relative 'groupdocs_annotation_cloud/models/annotation_info'
35
35
  require_relative 'groupdocs_annotation_cloud/models/annotation_reply_info'
36
+ require_relative 'groupdocs_annotation_cloud/models/consumption_result'
36
37
  require_relative 'groupdocs_annotation_cloud/models/disc_usage'
37
38
  require_relative 'groupdocs_annotation_cloud/models/document_info'
38
39
  require_relative 'groupdocs_annotation_cloud/models/error'
@@ -63,5 +64,6 @@ require_relative 'groupdocs_annotation_cloud/api/annotate_api'
63
64
  require_relative 'groupdocs_annotation_cloud/api/file_api'
64
65
  require_relative 'groupdocs_annotation_cloud/api/folder_api'
65
66
  require_relative 'groupdocs_annotation_cloud/api/info_api'
67
+ require_relative 'groupdocs_annotation_cloud/api/license_api'
66
68
  require_relative 'groupdocs_annotation_cloud/api/preview_api'
67
69
  require_relative 'groupdocs_annotation_cloud/api/storage_api'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groupdocs_annotation_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: '21.6'
4
+ version: '23.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - GroupDocs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-17 00:00:00.000000000 Z
11
+ date: 2023-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -75,6 +75,7 @@ files:
75
75
  - lib/groupdocs_annotation_cloud/api/file_api.rb
76
76
  - lib/groupdocs_annotation_cloud/api/folder_api.rb
77
77
  - lib/groupdocs_annotation_cloud/api/info_api.rb
78
+ - lib/groupdocs_annotation_cloud/api/license_api.rb
78
79
  - lib/groupdocs_annotation_cloud/api/preview_api.rb
79
80
  - lib/groupdocs_annotation_cloud/api/storage_api.rb
80
81
  - lib/groupdocs_annotation_cloud/api_client.rb
@@ -84,6 +85,7 @@ files:
84
85
  - lib/groupdocs_annotation_cloud/models/annotation_api_link.rb
85
86
  - lib/groupdocs_annotation_cloud/models/annotation_info.rb
86
87
  - lib/groupdocs_annotation_cloud/models/annotation_reply_info.rb
88
+ - lib/groupdocs_annotation_cloud/models/consumption_result.rb
87
89
  - lib/groupdocs_annotation_cloud/models/disc_usage.rb
88
90
  - lib/groupdocs_annotation_cloud/models/document_info.rb
89
91
  - lib/groupdocs_annotation_cloud/models/error.rb