aspose_words_cloud 22.6.0 → 22.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aspose_words_cloud/api/words_api.rb +149 -0
- data/lib/aspose_words_cloud/api_client.rb +11 -13
- data/lib/aspose_words_cloud/configuration.rb +1 -0
- data/lib/aspose_words_cloud/models/base_entry.rb +201 -0
- data/lib/aspose_words_cloud/models/compress_options.rb +213 -0
- data/lib/aspose_words_cloud/models/compress_response.rb +211 -0
- data/lib/aspose_words_cloud/models/image_entry.rb +201 -0
- data/lib/aspose_words_cloud/models/image_entry_list.rb +213 -0
- data/lib/aspose_words_cloud/models/report_build_options.rb +1 -0
- data/lib/aspose_words_cloud/models/requests/append_document_online_request.rb +2 -2
- data/lib/aspose_words_cloud/models/requests/append_document_request.rb +2 -2
- data/lib/aspose_words_cloud/models/requests/compress_document_online_request.rb +180 -0
- data/lib/aspose_words_cloud/models/requests/compress_document_request.rb +192 -0
- data/lib/aspose_words_cloud/models/responses/compress_document_online_response.rb +46 -0
- data/lib/aspose_words_cloud/version.rb +1 -1
- data/lib/aspose_words_cloud.rb +7 -0
- metadata +10 -2
@@ -0,0 +1,180 @@
|
|
1
|
+
# ------------------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="compress_document_online_request.rb">
|
3
|
+
# Copyright (c) 2022 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 compress_document_online operation.
|
30
|
+
#
|
31
|
+
class CompressDocumentOnlineRequest
|
32
|
+
# The document.
|
33
|
+
attr_accessor :document
|
34
|
+
|
35
|
+
# Options for compress the document.
|
36
|
+
attr_accessor :compress_options
|
37
|
+
|
38
|
+
# Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
|
39
|
+
attr_accessor :load_encoding
|
40
|
+
|
41
|
+
# 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.
|
42
|
+
attr_accessor :password
|
43
|
+
|
44
|
+
# Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
|
45
|
+
attr_accessor :encrypted_password
|
46
|
+
|
47
|
+
# Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
|
48
|
+
attr_accessor :dest_file_name
|
49
|
+
|
50
|
+
#
|
51
|
+
# Initializes a new instance.
|
52
|
+
# @param document The document.
|
53
|
+
# @param compress_options Options for compress the document.
|
54
|
+
# @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
|
55
|
+
# @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.
|
56
|
+
# @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.
|
57
|
+
# @param dest_file_name Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
|
58
|
+
|
59
|
+
def initialize(document:, compress_options:, load_encoding: nil, password: nil, encrypted_password: nil, dest_file_name: nil)
|
60
|
+
self.document = document
|
61
|
+
self.compress_options = compress_options
|
62
|
+
self.load_encoding = load_encoding
|
63
|
+
self.password = password
|
64
|
+
self.encrypted_password = encrypted_password
|
65
|
+
self.dest_file_name = dest_file_name
|
66
|
+
end
|
67
|
+
|
68
|
+
# Creating batch part from request
|
69
|
+
def to_batch_part(api_client, requestId, parentRequestId = nil)
|
70
|
+
# verify the required parameter 'document' is set
|
71
|
+
raise ArgumentError, 'Missing the required parameter document when calling WordsApi.compress_document_online' if api_client.config.client_side_validation && self.document.nil?
|
72
|
+
# verify the required parameter 'compress_options' is set
|
73
|
+
raise ArgumentError, 'Missing the required parameter compress_options when calling WordsApi.compress_document_online' if api_client.config.client_side_validation && self.compress_options.nil?
|
74
|
+
|
75
|
+
# resource path
|
76
|
+
local_var_path = '/words/online/put/compress'[7..-1]
|
77
|
+
local_var_path = local_var_path.sub('//', '/')
|
78
|
+
|
79
|
+
# query parameters
|
80
|
+
query_params = {}
|
81
|
+
query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
|
82
|
+
query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
|
83
|
+
query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
|
84
|
+
query_params[downcase_first_letter('DestFileName')] = self.dest_file_name unless self.dest_file_name.nil?
|
85
|
+
|
86
|
+
if query_params
|
87
|
+
query_params.each { |key, value| local_var_path = api_client.add_param_to_query(local_var_path, key, value) }
|
88
|
+
end
|
89
|
+
|
90
|
+
header_params = {}
|
91
|
+
# header parameters
|
92
|
+
# HTTP header 'Content-Type'
|
93
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
94
|
+
header_params['RequestId'] = requestId
|
95
|
+
|
96
|
+
if parentRequestId != nil
|
97
|
+
header_params['DependsOn'] = parentRequestId
|
98
|
+
end
|
99
|
+
|
100
|
+
# form parameters
|
101
|
+
form_params = {}
|
102
|
+
form_params[downcase_first_letter('Document')] = self.document
|
103
|
+
form_params[downcase_first_letter('CompressOptions')] = self.compress_options.to_body.to_json
|
104
|
+
|
105
|
+
# http body (model)
|
106
|
+
post_body = nil
|
107
|
+
body = api_client.build_request_body_batch(header_params, form_params, post_body)
|
108
|
+
part = ""
|
109
|
+
part.concat("PUT".force_encoding('UTF-8'))
|
110
|
+
part.concat(" ".force_encoding('UTF-8'))
|
111
|
+
part.concat(local_var_path.force_encoding('UTF-8'))
|
112
|
+
part.concat(" \r\n".force_encoding('UTF-8'))
|
113
|
+
|
114
|
+
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')) }
|
115
|
+
part.concat("\r\n".force_encoding('UTF-8'))
|
116
|
+
if body
|
117
|
+
if body.is_a?(Hash)
|
118
|
+
body.each do |key, value|
|
119
|
+
part.concat(value, "\r\n")
|
120
|
+
end
|
121
|
+
else
|
122
|
+
part.concat(body)
|
123
|
+
end
|
124
|
+
end
|
125
|
+
part
|
126
|
+
end
|
127
|
+
|
128
|
+
def create_http_request(api_client)
|
129
|
+
# verify the required parameter 'document' is set
|
130
|
+
raise ArgumentError, 'Missing the required parameter document when calling WordsApi.compress_document_online' if api_client.config.client_side_validation && self.document.nil?
|
131
|
+
# verify the required parameter 'compress_options' is set
|
132
|
+
raise ArgumentError, 'Missing the required parameter compress_options when calling WordsApi.compress_document_online' if api_client.config.client_side_validation && self.compress_options.nil?
|
133
|
+
|
134
|
+
# resource path
|
135
|
+
local_var_path = '/words/online/put/compress'[1..-1]
|
136
|
+
local_var_path = local_var_path.sub('//', '/')
|
137
|
+
|
138
|
+
# query parameters
|
139
|
+
query_params = {}
|
140
|
+
query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
|
141
|
+
query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
|
142
|
+
query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
|
143
|
+
query_params[downcase_first_letter('DestFileName')] = self.dest_file_name unless self.dest_file_name.nil?
|
144
|
+
|
145
|
+
# header parameters
|
146
|
+
header_params = {}
|
147
|
+
# HTTP header 'Content-Type'
|
148
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
149
|
+
|
150
|
+
# form parameters
|
151
|
+
form_params = {}
|
152
|
+
form_params[downcase_first_letter('Document')] = self.document
|
153
|
+
form_params[downcase_first_letter('CompressOptions')] = self.compress_options.to_body.to_json
|
154
|
+
|
155
|
+
# http body (model)
|
156
|
+
post_body = nil
|
157
|
+
body = api_client.build_request_body(header_params, form_params, post_body)
|
158
|
+
{
|
159
|
+
'method': :PUT,
|
160
|
+
'path': local_var_path,
|
161
|
+
'header_params': header_params,
|
162
|
+
'query_params': query_params,
|
163
|
+
'body': body,
|
164
|
+
'auth_names': ['JWT']
|
165
|
+
}
|
166
|
+
end
|
167
|
+
|
168
|
+
#
|
169
|
+
# Helper method to convert first letter to downcase
|
170
|
+
#
|
171
|
+
def downcase_first_letter(str)
|
172
|
+
str[0].downcase + str[1..-1]
|
173
|
+
end
|
174
|
+
|
175
|
+
# Get response type
|
176
|
+
def get_response_type
|
177
|
+
'CompressDocumentOnlineResponse'
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
@@ -0,0 +1,192 @@
|
|
1
|
+
# ------------------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="compress_document_request.rb">
|
3
|
+
# Copyright (c) 2022 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 compress_document operation.
|
30
|
+
#
|
31
|
+
class CompressDocumentRequest
|
32
|
+
# The filename of the input document.
|
33
|
+
attr_accessor :name
|
34
|
+
|
35
|
+
# Options for compress the document.
|
36
|
+
attr_accessor :compress_options
|
37
|
+
|
38
|
+
# Original document folder.
|
39
|
+
attr_accessor :folder
|
40
|
+
|
41
|
+
# Original document storage.
|
42
|
+
attr_accessor :storage
|
43
|
+
|
44
|
+
# Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
|
45
|
+
attr_accessor :load_encoding
|
46
|
+
|
47
|
+
# 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.
|
48
|
+
attr_accessor :password
|
49
|
+
|
50
|
+
# Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
|
51
|
+
attr_accessor :encrypted_password
|
52
|
+
|
53
|
+
# Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
|
54
|
+
attr_accessor :dest_file_name
|
55
|
+
|
56
|
+
#
|
57
|
+
# Initializes a new instance.
|
58
|
+
# @param name The filename of the input document.
|
59
|
+
# @param compress_options Options for compress the document.
|
60
|
+
# @param folder Original document folder.
|
61
|
+
# @param storage Original document storage.
|
62
|
+
# @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
|
63
|
+
# @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.
|
64
|
+
# @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.
|
65
|
+
# @param dest_file_name Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
|
66
|
+
|
67
|
+
def initialize(name:, compress_options:, folder: nil, storage: nil, load_encoding: nil, password: nil, encrypted_password: nil, dest_file_name: nil)
|
68
|
+
self.name = name
|
69
|
+
self.compress_options = compress_options
|
70
|
+
self.folder = folder
|
71
|
+
self.storage = storage
|
72
|
+
self.load_encoding = load_encoding
|
73
|
+
self.password = password
|
74
|
+
self.encrypted_password = encrypted_password
|
75
|
+
self.dest_file_name = dest_file_name
|
76
|
+
end
|
77
|
+
|
78
|
+
# Creating batch part from request
|
79
|
+
def to_batch_part(api_client, requestId, parentRequestId = nil)
|
80
|
+
# verify the required parameter 'name' is set
|
81
|
+
raise ArgumentError, 'Missing the required parameter name when calling WordsApi.compress_document' if api_client.config.client_side_validation && self.name.nil?
|
82
|
+
# verify the required parameter 'compress_options' is set
|
83
|
+
raise ArgumentError, 'Missing the required parameter compress_options when calling WordsApi.compress_document' if api_client.config.client_side_validation && self.compress_options.nil?
|
84
|
+
|
85
|
+
# resource path
|
86
|
+
local_var_path = '/words/{name}/compress'[7..-1]
|
87
|
+
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', self.name.nil? ? '' : self.name.to_s)
|
88
|
+
local_var_path = local_var_path.sub('//', '/')
|
89
|
+
|
90
|
+
# query parameters
|
91
|
+
query_params = {}
|
92
|
+
query_params[downcase_first_letter('Folder')] = self.folder unless self.folder.nil?
|
93
|
+
query_params[downcase_first_letter('Storage')] = self.storage unless self.storage.nil?
|
94
|
+
query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
|
95
|
+
query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
|
96
|
+
query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
|
97
|
+
query_params[downcase_first_letter('DestFileName')] = self.dest_file_name unless self.dest_file_name.nil?
|
98
|
+
|
99
|
+
if query_params
|
100
|
+
query_params.each { |key, value| local_var_path = api_client.add_param_to_query(local_var_path, key, value) }
|
101
|
+
end
|
102
|
+
|
103
|
+
header_params = {}
|
104
|
+
# header parameters
|
105
|
+
# HTTP header 'Content-Type'
|
106
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/xml', 'application/json'])
|
107
|
+
header_params['RequestId'] = requestId
|
108
|
+
|
109
|
+
if parentRequestId != nil
|
110
|
+
header_params['DependsOn'] = parentRequestId
|
111
|
+
end
|
112
|
+
|
113
|
+
# form parameters
|
114
|
+
form_params = {}
|
115
|
+
|
116
|
+
# http body (model)
|
117
|
+
post_body = api_client.object_to_http_body(self.compress_options)
|
118
|
+
body = post_body
|
119
|
+
part = ""
|
120
|
+
part.concat("PUT".force_encoding('UTF-8'))
|
121
|
+
part.concat(" ".force_encoding('UTF-8'))
|
122
|
+
part.concat(local_var_path.force_encoding('UTF-8'))
|
123
|
+
part.concat(" \r\n".force_encoding('UTF-8'))
|
124
|
+
|
125
|
+
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')) }
|
126
|
+
part.concat("\r\n".force_encoding('UTF-8'))
|
127
|
+
if body
|
128
|
+
if body.is_a?(Hash)
|
129
|
+
body.each do |key, value|
|
130
|
+
part.concat(value, "\r\n")
|
131
|
+
end
|
132
|
+
else
|
133
|
+
part.concat(body)
|
134
|
+
end
|
135
|
+
end
|
136
|
+
part
|
137
|
+
end
|
138
|
+
|
139
|
+
def create_http_request(api_client)
|
140
|
+
# verify the required parameter 'name' is set
|
141
|
+
raise ArgumentError, 'Missing the required parameter name when calling WordsApi.compress_document' if api_client.config.client_side_validation && self.name.nil?
|
142
|
+
# verify the required parameter 'compress_options' is set
|
143
|
+
raise ArgumentError, 'Missing the required parameter compress_options when calling WordsApi.compress_document' if api_client.config.client_side_validation && self.compress_options.nil?
|
144
|
+
|
145
|
+
# resource path
|
146
|
+
local_var_path = '/words/{name}/compress'[1..-1]
|
147
|
+
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', self.name.nil? ? '' : self.name.to_s)
|
148
|
+
local_var_path = local_var_path.sub('//', '/')
|
149
|
+
|
150
|
+
# query parameters
|
151
|
+
query_params = {}
|
152
|
+
query_params[downcase_first_letter('Folder')] = self.folder unless self.folder.nil?
|
153
|
+
query_params[downcase_first_letter('Storage')] = self.storage unless self.storage.nil?
|
154
|
+
query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
|
155
|
+
query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
|
156
|
+
query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
|
157
|
+
query_params[downcase_first_letter('DestFileName')] = self.dest_file_name unless self.dest_file_name.nil?
|
158
|
+
|
159
|
+
# header parameters
|
160
|
+
header_params = {}
|
161
|
+
# HTTP header 'Content-Type'
|
162
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/xml', 'application/json'])
|
163
|
+
|
164
|
+
# form parameters
|
165
|
+
form_params = {}
|
166
|
+
|
167
|
+
# http body (model)
|
168
|
+
post_body = api_client.object_to_http_body(self.compress_options)
|
169
|
+
body = post_body
|
170
|
+
{
|
171
|
+
'method': :PUT,
|
172
|
+
'path': local_var_path,
|
173
|
+
'header_params': header_params,
|
174
|
+
'query_params': query_params,
|
175
|
+
'body': body,
|
176
|
+
'auth_names': ['JWT']
|
177
|
+
}
|
178
|
+
end
|
179
|
+
|
180
|
+
#
|
181
|
+
# Helper method to convert first letter to downcase
|
182
|
+
#
|
183
|
+
def downcase_first_letter(str)
|
184
|
+
str[0].downcase + str[1..-1]
|
185
|
+
end
|
186
|
+
|
187
|
+
# Get response type
|
188
|
+
def get_response_type
|
189
|
+
'CompressResponse'
|
190
|
+
end
|
191
|
+
end
|
192
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# ------------------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="compress_document_online_response.rb">
|
3
|
+
# Copyright (c) 2022 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
|
+
# Response model for compress_document_online operation.
|
30
|
+
#
|
31
|
+
class CompressDocumentOnlineResponse
|
32
|
+
# The response model.
|
33
|
+
attr_accessor :model
|
34
|
+
|
35
|
+
# The document after modification.
|
36
|
+
attr_accessor :document
|
37
|
+
|
38
|
+
#
|
39
|
+
# Initializes a new instance.
|
40
|
+
#
|
41
|
+
def initialize()
|
42
|
+
self.model = nil
|
43
|
+
self.document = nil
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
data/lib/aspose_words_cloud.rb
CHANGED
@@ -32,6 +32,7 @@ require_relative 'aspose_words_cloud/configuration'
|
|
32
32
|
# Models
|
33
33
|
require_relative 'aspose_words_cloud/models/response_error'
|
34
34
|
require_relative 'aspose_words_cloud/models/available_fonts_response'
|
35
|
+
require_relative 'aspose_words_cloud/models/base_entry'
|
35
36
|
require_relative 'aspose_words_cloud/models/bmp_save_options_data'
|
36
37
|
require_relative 'aspose_words_cloud/models/bookmark'
|
37
38
|
require_relative 'aspose_words_cloud/models/bookmark_data'
|
@@ -55,6 +56,8 @@ require_relative 'aspose_words_cloud/models/comments_response'
|
|
55
56
|
require_relative 'aspose_words_cloud/models/comment_update'
|
56
57
|
require_relative 'aspose_words_cloud/models/compare_data'
|
57
58
|
require_relative 'aspose_words_cloud/models/compare_options'
|
59
|
+
require_relative 'aspose_words_cloud/models/compress_options'
|
60
|
+
require_relative 'aspose_words_cloud/models/compress_response'
|
58
61
|
require_relative 'aspose_words_cloud/models/csv_data_load_options'
|
59
62
|
require_relative 'aspose_words_cloud/models/custom_xml_part'
|
60
63
|
require_relative 'aspose_words_cloud/models/custom_xml_part_insert'
|
@@ -140,6 +143,8 @@ require_relative 'aspose_words_cloud/models/hyperlink'
|
|
140
143
|
require_relative 'aspose_words_cloud/models/hyperlink_response'
|
141
144
|
require_relative 'aspose_words_cloud/models/hyperlinks'
|
142
145
|
require_relative 'aspose_words_cloud/models/hyperlinks_response'
|
146
|
+
require_relative 'aspose_words_cloud/models/image_entry'
|
147
|
+
require_relative 'aspose_words_cloud/models/image_entry_list'
|
143
148
|
require_relative 'aspose_words_cloud/models/info_additional_item'
|
144
149
|
require_relative 'aspose_words_cloud/models/info_response'
|
145
150
|
require_relative 'aspose_words_cloud/models/jpeg_save_options_data'
|
@@ -300,6 +305,8 @@ require_relative 'aspose_words_cloud/models/requests/classify_document_request'
|
|
300
305
|
require_relative 'aspose_words_cloud/models/requests/classify_document_online_request'
|
301
306
|
require_relative 'aspose_words_cloud/models/requests/compare_document_request'
|
302
307
|
require_relative 'aspose_words_cloud/models/requests/compare_document_online_request'
|
308
|
+
require_relative 'aspose_words_cloud/models/requests/compress_document_request'
|
309
|
+
require_relative 'aspose_words_cloud/models/requests/compress_document_online_request'
|
303
310
|
require_relative 'aspose_words_cloud/models/requests/convert_document_request'
|
304
311
|
require_relative 'aspose_words_cloud/models/requests/copy_file_request'
|
305
312
|
require_relative 'aspose_words_cloud/models/requests/copy_folder_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: 22.
|
4
|
+
version: 22.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- YaroslawEkimov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -91,6 +91,7 @@ files:
|
|
91
91
|
- lib/aspose_words_cloud/api_error.rb
|
92
92
|
- lib/aspose_words_cloud/configuration.rb
|
93
93
|
- lib/aspose_words_cloud/models/available_fonts_response.rb
|
94
|
+
- lib/aspose_words_cloud/models/base_entry.rb
|
94
95
|
- lib/aspose_words_cloud/models/bmp_save_options_data.rb
|
95
96
|
- lib/aspose_words_cloud/models/bookmark.rb
|
96
97
|
- lib/aspose_words_cloud/models/bookmark_data.rb
|
@@ -114,6 +115,8 @@ files:
|
|
114
115
|
- lib/aspose_words_cloud/models/comments_response.rb
|
115
116
|
- lib/aspose_words_cloud/models/compare_data.rb
|
116
117
|
- lib/aspose_words_cloud/models/compare_options.rb
|
118
|
+
- lib/aspose_words_cloud/models/compress_options.rb
|
119
|
+
- lib/aspose_words_cloud/models/compress_response.rb
|
117
120
|
- lib/aspose_words_cloud/models/csv_data_load_options.rb
|
118
121
|
- lib/aspose_words_cloud/models/custom_xml_part.rb
|
119
122
|
- lib/aspose_words_cloud/models/custom_xml_part_insert.rb
|
@@ -199,6 +202,8 @@ files:
|
|
199
202
|
- lib/aspose_words_cloud/models/hyperlink_response.rb
|
200
203
|
- lib/aspose_words_cloud/models/hyperlinks.rb
|
201
204
|
- lib/aspose_words_cloud/models/hyperlinks_response.rb
|
205
|
+
- lib/aspose_words_cloud/models/image_entry.rb
|
206
|
+
- lib/aspose_words_cloud/models/image_entry_list.rb
|
202
207
|
- lib/aspose_words_cloud/models/info_additional_item.rb
|
203
208
|
- lib/aspose_words_cloud/models/info_response.rb
|
204
209
|
- lib/aspose_words_cloud/models/jpeg_save_options_data.rb
|
@@ -281,6 +286,8 @@ files:
|
|
281
286
|
- lib/aspose_words_cloud/models/requests/classify_request.rb
|
282
287
|
- lib/aspose_words_cloud/models/requests/compare_document_online_request.rb
|
283
288
|
- lib/aspose_words_cloud/models/requests/compare_document_request.rb
|
289
|
+
- lib/aspose_words_cloud/models/requests/compress_document_online_request.rb
|
290
|
+
- lib/aspose_words_cloud/models/requests/compress_document_request.rb
|
284
291
|
- lib/aspose_words_cloud/models/requests/convert_document_request.rb
|
285
292
|
- lib/aspose_words_cloud/models/requests/copy_file_request.rb
|
286
293
|
- lib/aspose_words_cloud/models/requests/copy_folder_request.rb
|
@@ -589,6 +596,7 @@ files:
|
|
589
596
|
- lib/aspose_words_cloud/models/responses/append_document_online_response.rb
|
590
597
|
- lib/aspose_words_cloud/models/responses/apply_style_to_document_element_online_response.rb
|
591
598
|
- lib/aspose_words_cloud/models/responses/compare_document_online_response.rb
|
599
|
+
- lib/aspose_words_cloud/models/responses/compress_document_online_response.rb
|
592
600
|
- lib/aspose_words_cloud/models/responses/copy_style_online_response.rb
|
593
601
|
- lib/aspose_words_cloud/models/responses/create_or_update_document_property_online_response.rb
|
594
602
|
- lib/aspose_words_cloud/models/responses/delete_all_paragraph_tab_stops_online_response.rb
|