aspose_words_cloud 24.10.0 → 24.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 708a038afd1c817a53eb1896b0d721eb06b7372a693e853be8b31ad7a869ec93
4
- data.tar.gz: 06a7b814a3ce9154c0d3df5c4f16a761675e7281a845a5efe03fdd44e75ea867
3
+ metadata.gz: '078f1f28a146eb4c3ced693fad4e108eaf12b5286f9a344dcea8b7e098526d77'
4
+ data.tar.gz: f80d45ec932937f2dda177e9206373a25db0fa01bf87f0762d80fa2071dca0af
5
5
  SHA512:
6
- metadata.gz: a837493e2e4832579472e3b43bfb9a77b3e2e9abe2661ee6fe7b3e89dd4c7c92b637390989173c6ddbd1e87dea5e9eb2bc730329acab8e778ccfd552d8f0773d
7
- data.tar.gz: 84a10e8aec7aa8a402a6d092c8c66038b072971eeab9d294633c28bda25162ea303d2cc6c14df9c35d8a6b8ff3a43e51db15e4cedab894bab0d45ef008d36c27
6
+ metadata.gz: a8ad693649e3e444dee190f908ca674c7b6f79927b785837c2244d759f80ea1ae7bbde9fd3a3bcae5980c67b323e81fb90e675f9346a6d81e94d7d4b80a81009
7
+ data.tar.gz: b531a9ee0f959d7e4373115f96d5ef0a4fe89261367e74d64bddbd85b6c0532a4633bcb622389d8091168c7a763d700c4a0d5214b4ff8ff1c5d00dbcb01fde3a
@@ -3906,6 +3906,90 @@ module AsposeWordsCloud
3906
3906
  [data, status_code, headers]
3907
3907
  end
3908
3908
 
3909
+ # Get all information about revisions.
3910
+ # @param request GetAllRevisionsRequest
3911
+ # @return [RevisionsResponse]
3912
+ def get_all_revisions(request)
3913
+ begin
3914
+ data, _status_code, _headers = get_all_revisions_with_http_info(request)
3915
+ rescue ApiError => e
3916
+ if e.code == 401
3917
+ request_token
3918
+ data, _status_code, _headers = get_all_revisions_with_http_info(request)
3919
+ else
3920
+ raise
3921
+ end
3922
+ end
3923
+ data
3924
+ end
3925
+
3926
+ # Get all information about revisions.
3927
+ # @param request GetAllRevisionsRequest
3928
+ # @return [Array<(RevisionsResponse, Fixnum, Hash)>]
3929
+ # RevisionsResponse, response status code and response headers
3930
+ private def get_all_revisions_with_http_info(request)
3931
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? GetAllRevisionsRequest
3932
+
3933
+ @api_client.config.logger.debug 'Calling API: WordsApi.get_all_revisions ...' if @api_client.config.debugging
3934
+ request_data = request.create_http_request(@api_client)
3935
+
3936
+ data, status_code, headers = @api_client.call_api(
3937
+ request_data[:'method'],
3938
+ request_data[:'path'],
3939
+ header_params: request_data[:'header_params'],
3940
+ query_params: request_data[:'query_params'],
3941
+ body: request_data[:'body'],
3942
+ return_type: 'RevisionsResponse')
3943
+ if @api_client.config.debugging
3944
+ @api_client.config.logger.debug "API called:
3945
+ WordsApi#get_all_revisions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3946
+ end
3947
+
3948
+ [data, status_code, headers]
3949
+ end
3950
+
3951
+ # Get all information about revisions.
3952
+ # @param request GetAllRevisionsOnlineRequest
3953
+ # @return [RevisionsResponse]
3954
+ def get_all_revisions_online(request)
3955
+ begin
3956
+ data, _status_code, _headers = get_all_revisions_online_with_http_info(request)
3957
+ rescue ApiError => e
3958
+ if e.code == 401
3959
+ request_token
3960
+ data, _status_code, _headers = get_all_revisions_online_with_http_info(request)
3961
+ else
3962
+ raise
3963
+ end
3964
+ end
3965
+ data
3966
+ end
3967
+
3968
+ # Get all information about revisions.
3969
+ # @param request GetAllRevisionsOnlineRequest
3970
+ # @return [Array<(RevisionsResponse, Fixnum, Hash)>]
3971
+ # RevisionsResponse, response status code and response headers
3972
+ private def get_all_revisions_online_with_http_info(request)
3973
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? GetAllRevisionsOnlineRequest
3974
+
3975
+ @api_client.config.logger.debug 'Calling API: WordsApi.get_all_revisions_online ...' if @api_client.config.debugging
3976
+ request_data = request.create_http_request(@api_client)
3977
+
3978
+ data, status_code, headers = @api_client.call_api(
3979
+ request_data[:'method'],
3980
+ request_data[:'path'],
3981
+ header_params: request_data[:'header_params'],
3982
+ query_params: request_data[:'query_params'],
3983
+ body: request_data[:'body'],
3984
+ return_type: 'RevisionsResponse')
3985
+ if @api_client.config.debugging
3986
+ @api_client.config.logger.debug "API called:
3987
+ WordsApi#get_all_revisions_online\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3988
+ end
3989
+
3990
+ [data, status_code, headers]
3991
+ end
3992
+
3909
3993
  # Reads available fonts from the document.
3910
3994
  # @param request GetAvailableFontsRequest
3911
3995
  # @return [AvailableFontsResponse]
@@ -29,6 +29,9 @@ module AsposeWordsCloud
29
29
 
30
30
  # Represents a list of documents which will be appended to the original resource document.
31
31
  class DocumentEntryList
32
+ # Gets or sets a value indicating whether to append all documents to the same section.
33
+ attr_accessor :append_all_entries_to_one_section
34
+
32
35
  # Gets or sets a value indicating whether to apply headers and footers from base document to appending documents. The default value is true.
33
36
  attr_accessor :apply_base_document_headers_and_footers_to_appending_documents
34
37
 
@@ -37,6 +40,7 @@ module AsposeWordsCloud
37
40
  # Attribute mapping from ruby-style variable name to JSON key.
38
41
  def self.attribute_map
39
42
  {
43
+ :'append_all_entries_to_one_section' => :'AppendAllEntriesToOneSection',
40
44
  :'apply_base_document_headers_and_footers_to_appending_documents' => :'ApplyBaseDocumentHeadersAndFootersToAppendingDocuments',
41
45
  :'document_entries' => :'DocumentEntries'
42
46
  }
@@ -45,6 +49,7 @@ module AsposeWordsCloud
45
49
  # Attribute type mapping.
46
50
  def self.swagger_types
47
51
  {
52
+ :'append_all_entries_to_one_section' => :'BOOLEAN',
48
53
  :'apply_base_document_headers_and_footers_to_appending_documents' => :'BOOLEAN',
49
54
  :'document_entries' => :'Array<DocumentEntry>'
50
55
  }
@@ -58,6 +63,10 @@ module AsposeWordsCloud
58
63
  # convert string to symbol for hash key
59
64
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
60
65
 
66
+ if attributes.key?(:'AppendAllEntriesToOneSection')
67
+ self.append_all_entries_to_one_section = attributes[:'AppendAllEntriesToOneSection']
68
+ end
69
+
61
70
  if attributes.key?(:'ApplyBaseDocumentHeadersAndFootersToAppendingDocuments')
62
71
  self.apply_base_document_headers_and_footers_to_appending_documents = attributes[:'ApplyBaseDocumentHeadersAndFootersToAppendingDocuments']
63
72
  end
@@ -80,6 +89,7 @@ module AsposeWordsCloud
80
89
  def ==(other)
81
90
  return true if self.equal?(other)
82
91
  self.class == other.class &&
92
+ append_all_entries_to_one_section == other.append_all_entries_to_one_section &&
83
93
  apply_base_document_headers_and_footers_to_appending_documents == other.apply_base_document_headers_and_footers_to_appending_documents &&
84
94
  document_entries == other.document_entries
85
95
  end
@@ -93,7 +103,7 @@ module AsposeWordsCloud
93
103
  # Calculates hash code according to all attributes.
94
104
  # @return [Fixnum] Hash code
95
105
  def hash
96
- [apply_base_document_headers_and_footers_to_appending_documents, document_entries].hash
106
+ [append_all_entries_to_one_section, apply_base_document_headers_and_footers_to_appending_documents, document_entries].hash
97
107
  end
98
108
 
99
109
  # Builds the object from hash
@@ -0,0 +1,179 @@
1
+ # ------------------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="get_all_revisions_online_request.rb">
3
+ # Copyright (c) 2024 Aspose.Words for Cloud
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
+ module AsposeWordsCloud
27
+
28
+ #
29
+ # Request model for get_all_revisions_online operation.
30
+ #
31
+ class GetAllRevisionsOnlineRequest
32
+ # The document.
33
+ attr_accessor :document
34
+
35
+ # Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
36
+ attr_accessor :load_encoding
37
+
38
+ # Password of protected Word document. Use the parameter to pass a password via SDK. SDK encrypts it automatically. We don't recommend to use the parameter to pass a plain password for direct call of API.
39
+ attr_accessor :password
40
+
41
+ # Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
42
+ attr_accessor :encrypted_password
43
+
44
+ # The value indicates whether OpenType support is on.
45
+ attr_accessor :open_type_support
46
+
47
+ #
48
+ # Initializes a new instance.
49
+ # @param document The document.
50
+ # @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
51
+ # @param password Password of protected Word document. Use the parameter to pass a password via SDK. SDK encrypts it automatically. We don't recommend to use the parameter to pass a plain password for direct call of API.
52
+ # @param encrypted_password Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
53
+ # @param open_type_support The value indicates whether OpenType support is on.
54
+
55
+ def initialize(document:, load_encoding: nil, password: nil, encrypted_password: nil, open_type_support: nil)
56
+ self.document = document
57
+ self.load_encoding = load_encoding
58
+ self.password = password
59
+ self.encrypted_password = encrypted_password
60
+ self.open_type_support = open_type_support
61
+ end
62
+
63
+ # Creating batch part from request
64
+ def to_batch_part(api_client, requestId, parentRequestId = nil)
65
+ # verify the required parameter 'document' is set
66
+ raise ArgumentError, 'Missing the required parameter document when calling WordsApi.get_all_revisions_online' if api_client.config.client_side_validation && self.document.nil?
67
+
68
+ # resource path
69
+ local_var_path = '/words/online/get/revisions/getAll'[7..-1]
70
+ local_var_path = local_var_path.sub('//', '/')
71
+
72
+ # query parameters
73
+ query_params = {}
74
+ query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
75
+ query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
76
+ query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
77
+ query_params[downcase_first_letter('OpenTypeSupport')] = self.open_type_support unless self.open_type_support.nil?
78
+
79
+ if query_params
80
+ query_params.each { |key, value| local_var_path = api_client.add_param_to_query(local_var_path, key, value) }
81
+ end
82
+
83
+ header_params = {}
84
+ # header parameters
85
+ # HTTP header 'Content-Type'
86
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
87
+ header_params['RequestId'] = requestId
88
+
89
+ if parentRequestId != nil
90
+ header_params['DependsOn'] = parentRequestId
91
+ end
92
+
93
+ # form parameters
94
+ form_params = []
95
+ files_content = []
96
+ if self.document.nil?
97
+ raise "Parameter Document is required."
98
+ end
99
+ unless self.document.nil?
100
+ form_params.push({:'Name' => 'document', :'Data' => self.document, :'MimeType' =>'application/octet-stream'})
101
+ end
102
+
103
+
104
+ # http body (model)
105
+ body = api_client.build_request_body_batch(header_params, form_params, files_content)
106
+ part = ""
107
+ part.concat("PUT".force_encoding('UTF-8'))
108
+ part.concat(" ".force_encoding('UTF-8'))
109
+ part.concat(local_var_path.force_encoding('UTF-8'))
110
+ part.concat(" \r\n".force_encoding('UTF-8'))
111
+
112
+ header_params.each_pair {|key, value| part.concat(key.dup.force_encoding('UTF-8') , ": ".force_encoding('UTF-8'), value.dup.force_encoding('UTF-8'), "\r\n".force_encoding('UTF-8')) }
113
+ part.concat("\r\n".force_encoding('UTF-8'))
114
+ if body
115
+ if body.is_a?(Hash)
116
+ body.each do |key, value|
117
+ part.concat(value, "\r\n")
118
+ end
119
+ else
120
+ part.concat(body)
121
+ end
122
+ end
123
+ part
124
+ end
125
+
126
+ def create_http_request(api_client)
127
+ # verify the required parameter 'document' is set
128
+ raise ArgumentError, 'Missing the required parameter document when calling WordsApi.get_all_revisions_online' if api_client.config.client_side_validation && self.document.nil?
129
+
130
+ # resource path
131
+ local_var_path = '/words/online/get/revisions/getAll'[1..-1]
132
+ local_var_path = local_var_path.sub('//', '/')
133
+
134
+ # query parameters
135
+ query_params = {}
136
+ query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
137
+ query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
138
+ query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
139
+ query_params[downcase_first_letter('OpenTypeSupport')] = self.open_type_support unless self.open_type_support.nil?
140
+
141
+ # header parameters
142
+ header_params = {}
143
+ # HTTP header 'Content-Type'
144
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
145
+
146
+ # form parameters
147
+ form_params = []
148
+ files_content = []
149
+ if self.document.nil?
150
+ raise "Parameter Document is required."
151
+ end
152
+ unless self.document.nil?
153
+ form_params.push({:'Name' => 'document', :'Data' => self.document, :'MimeType' =>'application/octet-stream'})
154
+ end
155
+
156
+ body = api_client.build_request_body(header_params, form_params, files_content)
157
+ {
158
+ 'method': :PUT,
159
+ 'path': local_var_path,
160
+ 'header_params': header_params,
161
+ 'query_params': query_params,
162
+ 'body': body,
163
+ 'auth_names': ['JWT']
164
+ }
165
+ end
166
+
167
+ #
168
+ # Helper method to convert first letter to downcase
169
+ #
170
+ def downcase_first_letter(str)
171
+ str[0].downcase + str[1..-1]
172
+ end
173
+
174
+ # Get response type
175
+ def get_response_type
176
+ 'RevisionsResponse'
177
+ end
178
+ end
179
+ end
@@ -0,0 +1,178 @@
1
+ # ------------------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="get_all_revisions_request.rb">
3
+ # Copyright (c) 2024 Aspose.Words for Cloud
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
+ module AsposeWordsCloud
27
+
28
+ #
29
+ # Request model for get_all_revisions operation.
30
+ #
31
+ class GetAllRevisionsRequest
32
+ # The filename of the input document.
33
+ attr_accessor :name
34
+
35
+ # Original document folder.
36
+ attr_accessor :folder
37
+
38
+ # Original document storage.
39
+ attr_accessor :storage
40
+
41
+ # Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
42
+ attr_accessor :load_encoding
43
+
44
+ # Password of protected Word document. Use the parameter to pass a password via SDK. SDK encrypts it automatically. We don't recommend to use the parameter to pass a plain password for direct call of API.
45
+ attr_accessor :password
46
+
47
+ # Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
48
+ attr_accessor :encrypted_password
49
+
50
+ # The value indicates whether OpenType support is on.
51
+ attr_accessor :open_type_support
52
+
53
+ #
54
+ # Initializes a new instance.
55
+ # @param name The filename of the input document.
56
+ # @param folder Original document folder.
57
+ # @param storage Original document storage.
58
+ # @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
59
+ # @param password Password of protected Word document. Use the parameter to pass a password via SDK. SDK encrypts it automatically. We don't recommend to use the parameter to pass a plain password for direct call of API.
60
+ # @param encrypted_password Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
61
+ # @param open_type_support The value indicates whether OpenType support is on.
62
+
63
+ def initialize(name:, folder: nil, storage: nil, load_encoding: nil, password: nil, encrypted_password: nil, open_type_support: nil)
64
+ self.name = name
65
+ self.folder = folder
66
+ self.storage = storage
67
+ self.load_encoding = load_encoding
68
+ self.password = password
69
+ self.encrypted_password = encrypted_password
70
+ self.open_type_support = open_type_support
71
+ end
72
+
73
+ # Creating batch part from request
74
+ def to_batch_part(api_client, requestId, parentRequestId = nil)
75
+ # verify the required parameter 'name' is set
76
+ raise ArgumentError, 'Missing the required parameter name when calling WordsApi.get_all_revisions' if api_client.config.client_side_validation && self.name.nil?
77
+
78
+ # resource path
79
+ local_var_path = '/words/{name}/revisions/getAll'[7..-1]
80
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', self.name.nil? ? '' : self.name.to_s)
81
+ local_var_path = local_var_path.sub('//', '/')
82
+
83
+ # query parameters
84
+ query_params = {}
85
+ query_params[downcase_first_letter('Folder')] = self.folder unless self.folder.nil?
86
+ query_params[downcase_first_letter('Storage')] = self.storage unless self.storage.nil?
87
+ query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
88
+ query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
89
+ query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
90
+ query_params[downcase_first_letter('OpenTypeSupport')] = self.open_type_support unless self.open_type_support.nil?
91
+
92
+ if query_params
93
+ query_params.each { |key, value| local_var_path = api_client.add_param_to_query(local_var_path, key, value) }
94
+ end
95
+
96
+ header_params = {}
97
+ header_params['RequestId'] = requestId
98
+
99
+ if parentRequestId != nil
100
+ header_params['DependsOn'] = parentRequestId
101
+ end
102
+
103
+ # form parameters
104
+ form_params = []
105
+ files_content = []
106
+
107
+ # http body (model)
108
+ body = api_client.build_request_body_batch(header_params, form_params, files_content)
109
+ part = ""
110
+ part.concat("GET".force_encoding('UTF-8'))
111
+ part.concat(" ".force_encoding('UTF-8'))
112
+ part.concat(local_var_path.force_encoding('UTF-8'))
113
+ part.concat(" \r\n".force_encoding('UTF-8'))
114
+
115
+ header_params.each_pair {|key, value| part.concat(key.dup.force_encoding('UTF-8') , ": ".force_encoding('UTF-8'), value.dup.force_encoding('UTF-8'), "\r\n".force_encoding('UTF-8')) }
116
+ part.concat("\r\n".force_encoding('UTF-8'))
117
+ if body
118
+ if body.is_a?(Hash)
119
+ body.each do |key, value|
120
+ part.concat(value, "\r\n")
121
+ end
122
+ else
123
+ part.concat(body)
124
+ end
125
+ end
126
+ part
127
+ end
128
+
129
+ def create_http_request(api_client)
130
+ # verify the required parameter 'name' is set
131
+ raise ArgumentError, 'Missing the required parameter name when calling WordsApi.get_all_revisions' if api_client.config.client_side_validation && self.name.nil?
132
+
133
+ # resource path
134
+ local_var_path = '/words/{name}/revisions/getAll'[1..-1]
135
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', self.name.nil? ? '' : self.name.to_s)
136
+ local_var_path = local_var_path.sub('//', '/')
137
+
138
+ # query parameters
139
+ query_params = {}
140
+ query_params[downcase_first_letter('Folder')] = self.folder unless self.folder.nil?
141
+ query_params[downcase_first_letter('Storage')] = self.storage unless self.storage.nil?
142
+ query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
143
+ query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
144
+ query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
145
+ query_params[downcase_first_letter('OpenTypeSupport')] = self.open_type_support unless self.open_type_support.nil?
146
+
147
+ # header parameters
148
+ header_params = {}
149
+ # HTTP header 'Content-Type'
150
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/xml', 'application/json'])
151
+
152
+ # form parameters
153
+ form_params = []
154
+ files_content = []
155
+ body = api_client.build_request_body(header_params, form_params, files_content)
156
+ {
157
+ 'method': :GET,
158
+ 'path': local_var_path,
159
+ 'header_params': header_params,
160
+ 'query_params': query_params,
161
+ 'body': body,
162
+ 'auth_names': ['JWT']
163
+ }
164
+ end
165
+
166
+ #
167
+ # Helper method to convert first letter to downcase
168
+ #
169
+ def downcase_first_letter(str)
170
+ str[0].downcase + str[1..-1]
171
+ end
172
+
173
+ # Get response type
174
+ def get_response_type
175
+ 'RevisionsResponse'
176
+ end
177
+ end
178
+ end
@@ -0,0 +1,235 @@
1
+ # ------------------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="revision.rb">
3
+ # Copyright (c) 2024 Aspose.Words for Cloud
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 'date'
27
+
28
+ module AsposeWordsCloud
29
+
30
+ # Revision Dto.
31
+ class Revision
32
+ # Gets or sets the revision author.
33
+ attr_accessor :revision_author
34
+
35
+ # Gets or sets the revision date time.
36
+ attr_accessor :revision_date_time
37
+
38
+ # Gets or sets the revision text.
39
+ attr_accessor :revision_text
40
+
41
+ # Gets or sets the revision type.
42
+ attr_accessor :revision_type
43
+ # Attribute mapping from ruby-style variable name to JSON key.
44
+ def self.attribute_map
45
+ {
46
+ :'revision_author' => :'RevisionAuthor',
47
+ :'revision_date_time' => :'RevisionDateTime',
48
+ :'revision_text' => :'RevisionText',
49
+ :'revision_type' => :'RevisionType'
50
+ }
51
+ end
52
+
53
+ # Attribute type mapping.
54
+ def self.swagger_types
55
+ {
56
+ :'revision_author' => :'String',
57
+ :'revision_date_time' => :'DateTime',
58
+ :'revision_text' => :'String',
59
+ :'revision_type' => :'String'
60
+ }
61
+ end
62
+
63
+ # Initializes the object
64
+ # @param [Hash] attributes Model attributes in the form of hash
65
+ def initialize(attributes = {})
66
+ return unless attributes.is_a?(Hash)
67
+
68
+ # convert string to symbol for hash key
69
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
70
+
71
+ if attributes.key?(:'RevisionAuthor')
72
+ self.revision_author = attributes[:'RevisionAuthor']
73
+ end
74
+
75
+ if attributes.key?(:'RevisionDateTime')
76
+ self.revision_date_time = attributes[:'RevisionDateTime']
77
+ end
78
+
79
+ if attributes.key?(:'RevisionText')
80
+ self.revision_text = attributes[:'RevisionText']
81
+ end
82
+
83
+ if attributes.key?(:'RevisionType')
84
+ self.revision_type = attributes[:'RevisionType']
85
+ end
86
+ end
87
+
88
+ # Check to see if the all the properties in the model are valid
89
+ # @return true if the model is valid
90
+ def valid?
91
+ return true
92
+ end
93
+
94
+ # Checks equality by comparing each attribute.
95
+ # @param [Object] Object to be compared
96
+ def ==(other)
97
+ return true if self.equal?(other)
98
+ self.class == other.class &&
99
+ revision_author == other.revision_author &&
100
+ revision_date_time == other.revision_date_time &&
101
+ revision_text == other.revision_text &&
102
+ revision_type == other.revision_type
103
+ end
104
+
105
+ # @see the `==` method
106
+ # @param [Object] Object to be compared
107
+ def eql?(other)
108
+ self == other
109
+ end
110
+
111
+ # Calculates hash code according to all attributes.
112
+ # @return [Fixnum] Hash code
113
+ def hash
114
+ [revision_author, revision_date_time, revision_text, revision_type].hash
115
+ end
116
+
117
+ # Builds the object from hash
118
+ # @param [Hash] attributes Model attributes in the form of hash
119
+ # @return [Object] Returns the model itself
120
+ def build_from_hash(attributes)
121
+ return nil unless attributes.is_a?(Hash)
122
+ self.class.swagger_types.each_pair do |key, type|
123
+ if type =~ /\AArray<(.*)>/i
124
+ # check to ensure the input is an array given that the the attribute
125
+ # is documented as an array but the input is not
126
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
127
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
128
+ end
129
+ elsif !attributes[self.class.attribute_map[key]].nil?
130
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
131
+ end
132
+ # or else data not found in attributes(hash), not an issue as the data can be optional
133
+ end
134
+
135
+ self
136
+ end
137
+
138
+ # Deserializes the data based on type
139
+ # @param string type Data type
140
+ # @param string value Value to be deserialized
141
+ # @return [Object] Deserialized data
142
+ def _deserialize(type, value)
143
+ case type.to_sym
144
+ when :DateTime
145
+ Time.at(/\d/.match(value)[0].to_f).to_datetime
146
+ when :Date
147
+ Time.at(/\d/.match(value)[0].to_f).to_date
148
+ when :String
149
+ value.to_s
150
+ when :Integer
151
+ value.to_i
152
+ when :Float
153
+ value.to_f
154
+ when :BOOLEAN
155
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
156
+ true
157
+ else
158
+ false
159
+ end
160
+ when :Object
161
+ # generic object (usually a Hash), return directly
162
+ value
163
+ when /\AArray<(?<inner_type>.+)>\z/
164
+ inner_type = Regexp.last_match[:inner_type]
165
+ value.map { |v| _deserialize(inner_type, v) }
166
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
167
+ k_type = Regexp.last_match[:k_type]
168
+ v_type = Regexp.last_match[:v_type]
169
+ {}.tap do |hash|
170
+ value.each do |k, v|
171
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
172
+ end
173
+ end
174
+ else
175
+ # model
176
+ if value[:'$type']
177
+ type = value[:'$type'][0..-4]
178
+ end
179
+
180
+ temp_model = AsposeWordsCloud.const_get(type).new
181
+ temp_model.build_from_hash(value)
182
+ end
183
+ end
184
+
185
+ # Returns the string representation of the object
186
+ # @return [String] String presentation of the object
187
+ def to_s
188
+ to_hash.to_s
189
+ end
190
+
191
+ # to_body is an alias to to_hash (backward compatibility)
192
+ # @return [Hash] Returns the object in the form of hash
193
+ def to_body
194
+ to_hash
195
+ end
196
+
197
+ # Returns the object in the form of hash
198
+ # @return [Hash] Returns the object in the form of hash
199
+ def to_hash
200
+ hash = {}
201
+ self.class.attribute_map.each_pair do |attr, param|
202
+ value = self.send(attr)
203
+ next if value.nil?
204
+ hash[param] = _to_hash(value)
205
+ end
206
+ hash
207
+ end
208
+
209
+ # Outputs non-array value in the form of hash
210
+ # For object, use to_hash. Otherwise, just return the value
211
+ # @param [Object] value Any valid value
212
+ # @return [Hash] Returns the value in the form of hash
213
+ def _to_hash(value)
214
+ if value.is_a?(Array)
215
+ value.compact.map { |v| _to_hash(v) }
216
+ elsif value.is_a?(Hash)
217
+ {}.tap do |hash|
218
+ value.each { |k, v| hash[k] = _to_hash(v) }
219
+ end
220
+ elsif value.respond_to? :to_hash
221
+ value.to_hash
222
+ else
223
+ value
224
+ end
225
+ end
226
+
227
+ def collectFilesContent(resultFilesContent)
228
+ end
229
+
230
+ def validate()
231
+ raise ArgumentError, 'Property revision_date_time in Revision is required.' if self.revision_date_time.nil?
232
+ end
233
+
234
+ end
235
+ end
@@ -0,0 +1,214 @@
1
+ # ------------------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="revision_collection.rb">
3
+ # Copyright (c) 2024 Aspose.Words for Cloud
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 'date'
27
+
28
+ module AsposeWordsCloud
29
+
30
+ # RevisionCollection DTO.
31
+ class RevisionCollection
32
+ # Gets or sets the revisions.
33
+ attr_accessor :revisions
34
+ # Attribute mapping from ruby-style variable name to JSON key.
35
+ def self.attribute_map
36
+ {
37
+ :'revisions' => :'Revisions'
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.swagger_types
43
+ {
44
+ :'revisions' => :'Array<Revision>'
45
+ }
46
+ end
47
+
48
+ # Initializes the object
49
+ # @param [Hash] attributes Model attributes in the form of hash
50
+ def initialize(attributes = {})
51
+ return unless attributes.is_a?(Hash)
52
+
53
+ # convert string to symbol for hash key
54
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
55
+
56
+ if attributes.key?(:'Revisions')
57
+ if (value = attributes[:'Revisions']).is_a?(Array)
58
+ self.revisions = value
59
+ end
60
+ end
61
+ end
62
+
63
+ # Check to see if the all the properties in the model are valid
64
+ # @return true if the model is valid
65
+ def valid?
66
+ return true
67
+ end
68
+
69
+ # Checks equality by comparing each attribute.
70
+ # @param [Object] Object to be compared
71
+ def ==(other)
72
+ return true if self.equal?(other)
73
+ self.class == other.class &&
74
+ revisions == other.revisions
75
+ end
76
+
77
+ # @see the `==` method
78
+ # @param [Object] Object to be compared
79
+ def eql?(other)
80
+ self == other
81
+ end
82
+
83
+ # Calculates hash code according to all attributes.
84
+ # @return [Fixnum] Hash code
85
+ def hash
86
+ [revisions].hash
87
+ end
88
+
89
+ # Builds the object from hash
90
+ # @param [Hash] attributes Model attributes in the form of hash
91
+ # @return [Object] Returns the model itself
92
+ def build_from_hash(attributes)
93
+ return nil unless attributes.is_a?(Hash)
94
+ self.class.swagger_types.each_pair do |key, type|
95
+ if type =~ /\AArray<(.*)>/i
96
+ # check to ensure the input is an array given that the the attribute
97
+ # is documented as an array but the input is not
98
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
99
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
100
+ end
101
+ elsif !attributes[self.class.attribute_map[key]].nil?
102
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
103
+ end
104
+ # or else data not found in attributes(hash), not an issue as the data can be optional
105
+ end
106
+
107
+ self
108
+ end
109
+
110
+ # Deserializes the data based on type
111
+ # @param string type Data type
112
+ # @param string value Value to be deserialized
113
+ # @return [Object] Deserialized data
114
+ def _deserialize(type, value)
115
+ case type.to_sym
116
+ when :DateTime
117
+ Time.at(/\d/.match(value)[0].to_f).to_datetime
118
+ when :Date
119
+ Time.at(/\d/.match(value)[0].to_f).to_date
120
+ when :String
121
+ value.to_s
122
+ when :Integer
123
+ value.to_i
124
+ when :Float
125
+ value.to_f
126
+ when :BOOLEAN
127
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
128
+ true
129
+ else
130
+ false
131
+ end
132
+ when :Object
133
+ # generic object (usually a Hash), return directly
134
+ value
135
+ when /\AArray<(?<inner_type>.+)>\z/
136
+ inner_type = Regexp.last_match[:inner_type]
137
+ value.map { |v| _deserialize(inner_type, v) }
138
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
139
+ k_type = Regexp.last_match[:k_type]
140
+ v_type = Regexp.last_match[:v_type]
141
+ {}.tap do |hash|
142
+ value.each do |k, v|
143
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
144
+ end
145
+ end
146
+ else
147
+ # model
148
+ if value[:'$type']
149
+ type = value[:'$type'][0..-4]
150
+ end
151
+
152
+ temp_model = AsposeWordsCloud.const_get(type).new
153
+ temp_model.build_from_hash(value)
154
+ end
155
+ end
156
+
157
+ # Returns the string representation of the object
158
+ # @return [String] String presentation of the object
159
+ def to_s
160
+ to_hash.to_s
161
+ end
162
+
163
+ # to_body is an alias to to_hash (backward compatibility)
164
+ # @return [Hash] Returns the object in the form of hash
165
+ def to_body
166
+ to_hash
167
+ end
168
+
169
+ # Returns the object in the form of hash
170
+ # @return [Hash] Returns the object in the form of hash
171
+ def to_hash
172
+ hash = {}
173
+ self.class.attribute_map.each_pair do |attr, param|
174
+ value = self.send(attr)
175
+ next if value.nil?
176
+ hash[param] = _to_hash(value)
177
+ end
178
+ hash
179
+ end
180
+
181
+ # Outputs non-array value in the form of hash
182
+ # For object, use to_hash. Otherwise, just return the value
183
+ # @param [Object] value Any valid value
184
+ # @return [Hash] Returns the value in the form of hash
185
+ def _to_hash(value)
186
+ if value.is_a?(Array)
187
+ value.compact.map { |v| _to_hash(v) }
188
+ elsif value.is_a?(Hash)
189
+ {}.tap do |hash|
190
+ value.each { |k, v| hash[k] = _to_hash(v) }
191
+ end
192
+ elsif value.respond_to? :to_hash
193
+ value.to_hash
194
+ else
195
+ value
196
+ end
197
+ end
198
+
199
+ def collectFilesContent(resultFilesContent)
200
+ end
201
+
202
+ def validate()
203
+ unless self.revisions.nil?
204
+ for elementRevisions in self.revisions
205
+ unless elementRevisions.nil?
206
+ elementRevisions.validate
207
+ end
208
+ end
209
+ end
210
+
211
+ end
212
+
213
+ end
214
+ end
@@ -0,0 +1,218 @@
1
+ # ------------------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="revisions_response.rb">
3
+ # Copyright (c) 2024 Aspose.Words for Cloud
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 'date'
27
+
28
+ module AsposeWordsCloud
29
+
30
+ # The revision response.
31
+ class RevisionsResponse
32
+ # Gets or sets the request Id.
33
+ attr_accessor :request_id
34
+
35
+ # Gets or sets Revisions.
36
+ attr_accessor :revisions
37
+ # Attribute mapping from ruby-style variable name to JSON key.
38
+ def self.attribute_map
39
+ {
40
+ :'request_id' => :'RequestId',
41
+ :'revisions' => :'Revisions'
42
+ }
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ def self.swagger_types
47
+ {
48
+ :'request_id' => :'String',
49
+ :'revisions' => :'RevisionCollection'
50
+ }
51
+ end
52
+
53
+ # Initializes the object
54
+ # @param [Hash] attributes Model attributes in the form of hash
55
+ def initialize(attributes = {})
56
+ return unless attributes.is_a?(Hash)
57
+
58
+ # convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
60
+
61
+ if attributes.key?(:'RequestId')
62
+ self.request_id = attributes[:'RequestId']
63
+ end
64
+
65
+ if attributes.key?(:'Revisions')
66
+ self.revisions = attributes[:'Revisions']
67
+ end
68
+ end
69
+
70
+ # Check to see if the all the properties in the model are valid
71
+ # @return true if the model is valid
72
+ def valid?
73
+ return true
74
+ end
75
+
76
+ # Checks equality by comparing each attribute.
77
+ # @param [Object] Object to be compared
78
+ def ==(other)
79
+ return true if self.equal?(other)
80
+ self.class == other.class &&
81
+ request_id == other.request_id &&
82
+ revisions == other.revisions
83
+ end
84
+
85
+ # @see the `==` method
86
+ # @param [Object] Object to be compared
87
+ def eql?(other)
88
+ self == other
89
+ end
90
+
91
+ # Calculates hash code according to all attributes.
92
+ # @return [Fixnum] Hash code
93
+ def hash
94
+ [request_id, revisions].hash
95
+ end
96
+
97
+ # Builds the object from hash
98
+ # @param [Hash] attributes Model attributes in the form of hash
99
+ # @return [Object] Returns the model itself
100
+ def build_from_hash(attributes)
101
+ return nil unless attributes.is_a?(Hash)
102
+ self.class.swagger_types.each_pair do |key, type|
103
+ if type =~ /\AArray<(.*)>/i
104
+ # check to ensure the input is an array given that the the attribute
105
+ # is documented as an array but the input is not
106
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
107
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
108
+ end
109
+ elsif !attributes[self.class.attribute_map[key]].nil?
110
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
111
+ end
112
+ # or else data not found in attributes(hash), not an issue as the data can be optional
113
+ end
114
+
115
+ self
116
+ end
117
+
118
+ # Deserializes the data based on type
119
+ # @param string type Data type
120
+ # @param string value Value to be deserialized
121
+ # @return [Object] Deserialized data
122
+ def _deserialize(type, value)
123
+ case type.to_sym
124
+ when :DateTime
125
+ Time.at(/\d/.match(value)[0].to_f).to_datetime
126
+ when :Date
127
+ Time.at(/\d/.match(value)[0].to_f).to_date
128
+ when :String
129
+ value.to_s
130
+ when :Integer
131
+ value.to_i
132
+ when :Float
133
+ value.to_f
134
+ when :BOOLEAN
135
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
136
+ true
137
+ else
138
+ false
139
+ end
140
+ when :Object
141
+ # generic object (usually a Hash), return directly
142
+ value
143
+ when /\AArray<(?<inner_type>.+)>\z/
144
+ inner_type = Regexp.last_match[:inner_type]
145
+ value.map { |v| _deserialize(inner_type, v) }
146
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
147
+ k_type = Regexp.last_match[:k_type]
148
+ v_type = Regexp.last_match[:v_type]
149
+ {}.tap do |hash|
150
+ value.each do |k, v|
151
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
152
+ end
153
+ end
154
+ else
155
+ # model
156
+ if value[:'$type']
157
+ type = value[:'$type'][0..-4]
158
+ end
159
+
160
+ temp_model = AsposeWordsCloud.const_get(type).new
161
+ temp_model.build_from_hash(value)
162
+ end
163
+ end
164
+
165
+ # Returns the string representation of the object
166
+ # @return [String] String presentation of the object
167
+ def to_s
168
+ to_hash.to_s
169
+ end
170
+
171
+ # to_body is an alias to to_hash (backward compatibility)
172
+ # @return [Hash] Returns the object in the form of hash
173
+ def to_body
174
+ to_hash
175
+ end
176
+
177
+ # Returns the object in the form of hash
178
+ # @return [Hash] Returns the object in the form of hash
179
+ def to_hash
180
+ hash = {}
181
+ self.class.attribute_map.each_pair do |attr, param|
182
+ value = self.send(attr)
183
+ next if value.nil?
184
+ hash[param] = _to_hash(value)
185
+ end
186
+ hash
187
+ end
188
+
189
+ # Outputs non-array value in the form of hash
190
+ # For object, use to_hash. Otherwise, just return the value
191
+ # @param [Object] value Any valid value
192
+ # @return [Hash] Returns the value in the form of hash
193
+ def _to_hash(value)
194
+ if value.is_a?(Array)
195
+ value.compact.map { |v| _to_hash(v) }
196
+ elsif value.is_a?(Hash)
197
+ {}.tap do |hash|
198
+ value.each { |k, v| hash[k] = _to_hash(v) }
199
+ end
200
+ elsif value.respond_to? :to_hash
201
+ value.to_hash
202
+ else
203
+ value
204
+ end
205
+ end
206
+
207
+ def collectFilesContent(resultFilesContent)
208
+ end
209
+
210
+ def validate()
211
+ unless self.revisions.nil?
212
+ self.revisions.validate
213
+ end
214
+
215
+ end
216
+
217
+ end
218
+ end
@@ -24,5 +24,5 @@
24
24
  # ------------------------------------------------------------------------------------
25
25
 
26
26
  module AsposeWordsCloud
27
- VERSION = "24.10.0".freeze
27
+ VERSION = "24.11.0".freeze
28
28
  end
@@ -215,7 +215,10 @@ require_relative 'aspose_words_cloud/models/replace_text_parameters'
215
215
  require_relative 'aspose_words_cloud/models/replace_text_response'
216
216
  require_relative 'aspose_words_cloud/models/report_build_options'
217
217
  require_relative 'aspose_words_cloud/models/report_engine_settings'
218
+ require_relative 'aspose_words_cloud/models/revision'
219
+ require_relative 'aspose_words_cloud/models/revision_collection'
218
220
  require_relative 'aspose_words_cloud/models/revisions_modification_response'
221
+ require_relative 'aspose_words_cloud/models/revisions_response'
219
222
  require_relative 'aspose_words_cloud/models/rtf_save_options_data'
220
223
  require_relative 'aspose_words_cloud/models/run'
221
224
  require_relative 'aspose_words_cloud/models/run_insert'
@@ -390,6 +393,8 @@ require_relative 'aspose_words_cloud/models/requests/delete_watermark_online_req
390
393
  require_relative 'aspose_words_cloud/models/requests/download_file_request'
391
394
  require_relative 'aspose_words_cloud/models/requests/execute_mail_merge_request'
392
395
  require_relative 'aspose_words_cloud/models/requests/execute_mail_merge_online_request'
396
+ require_relative 'aspose_words_cloud/models/requests/get_all_revisions_request'
397
+ require_relative 'aspose_words_cloud/models/requests/get_all_revisions_online_request'
393
398
  require_relative 'aspose_words_cloud/models/requests/get_available_fonts_request'
394
399
  require_relative 'aspose_words_cloud/models/requests/get_bookmark_by_name_request'
395
400
  require_relative 'aspose_words_cloud/models/requests/get_bookmark_by_name_online_request'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspose_words_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 24.10.0
4
+ version: 24.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - YaroslawEkimov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-10 00:00:00.000000000 Z
11
+ date: 2024-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -365,6 +365,8 @@ files:
365
365
  - lib/aspose_words_cloud/models/requests/download_file_request.rb
366
366
  - lib/aspose_words_cloud/models/requests/execute_mail_merge_online_request.rb
367
367
  - lib/aspose_words_cloud/models/requests/execute_mail_merge_request.rb
368
+ - lib/aspose_words_cloud/models/requests/get_all_revisions_online_request.rb
369
+ - lib/aspose_words_cloud/models/requests/get_all_revisions_request.rb
368
370
  - lib/aspose_words_cloud/models/requests/get_available_fonts_request.rb
369
371
  - lib/aspose_words_cloud/models/requests/get_bookmark_by_name_online_request.rb
370
372
  - lib/aspose_words_cloud/models/requests/get_bookmark_by_name_request.rb
@@ -687,7 +689,10 @@ files:
687
689
  - lib/aspose_words_cloud/models/responses/update_table_cell_format_online_response.rb
688
690
  - lib/aspose_words_cloud/models/responses/update_table_properties_online_response.rb
689
691
  - lib/aspose_words_cloud/models/responses/update_table_row_format_online_response.rb
692
+ - lib/aspose_words_cloud/models/revision.rb
693
+ - lib/aspose_words_cloud/models/revision_collection.rb
690
694
  - lib/aspose_words_cloud/models/revisions_modification_response.rb
695
+ - lib/aspose_words_cloud/models/revisions_response.rb
691
696
  - lib/aspose_words_cloud/models/rtf_save_options_data.rb
692
697
  - lib/aspose_words_cloud/models/run.rb
693
698
  - lib/aspose_words_cloud/models/run_insert.rb