cloudmersive-convert-api-client 2.1.7 → 2.1.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49113271d66197369c2b8d6f32f9d4a2094b8fa1bd0db28abaeeca6166304146
4
- data.tar.gz: 768bc86ec2c068463516eec1a4a716ef60cd9fc6c87e0bb76a29fb14911ba994
3
+ metadata.gz: 21ebfe84bca135fbe7e14d87f52fbc3b42906443045f58c57099ebba963c55bc
4
+ data.tar.gz: 0fa60d3afaa55f775681788a30358024f64881584ef1dbf178a8728b8334341c
5
5
  SHA512:
6
- metadata.gz: 3eb7d53ca4ba0f81d4a3abb3b6bca4e1604bda60879a0b2b227995acf94e94ac83f0215f5f691276b8bfecb6c6ea6c78f9eacea7ef872d33ee035f731f036abf
7
- data.tar.gz: 8c046efc51762e86b5df18816d6027dc089788133252b4dc566a283c11cf8d1bd702caed47b7402a68e63fb0b98d5a27de38cf17833fa59cd4378f83d96c14bd
6
+ metadata.gz: 1ca791477dec0f0a84ac0a152393693fd08221c057b5551a9c1290178fea656be01d2944482fd23f2fa0f1f87bb4d20ca7f4e83c4ca07d24e8186728771e3ee8
7
+ data.tar.gz: 2950570855017e193502ffbba8dddf4572fbac5835bafea8f276d8d14305a34b42f5e7d470876509869703877150a0cde7552e37385758e969b90171368c1b36
data/README.md CHANGED
@@ -7,7 +7,7 @@ Convert API lets you effortlessly convert file formats and types.
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: v1
10
- - Package version: 2.1.7
10
+ - Package version: 2.1.8
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,15 +23,15 @@ gem build cloudmersive-convert-api-client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./cloudmersive-convert-api-client-2.1.7.gem
26
+ gem install ./cloudmersive-convert-api-client-2.1.8.gem
27
27
  ```
28
- (for development, run `gem install --dev ./cloudmersive-convert-api-client-2.1.7.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./cloudmersive-convert-api-client-2.1.8.gem` to install the development dependencies)
29
29
 
30
30
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
31
 
32
32
  Finally add this to the Gemfile:
33
33
 
34
- gem 'cloudmersive-convert-api-client', '~> 2.1.7'
34
+ gem 'cloudmersive-convert-api-client', '~> 2.1.8'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -221,7 +221,7 @@ Name | Type | Description | Notes
221
221
 
222
222
 
223
223
  # **zip_archive_zip_create_quarantine**
224
- > Object zip_archive_zip_create_quarantine
224
+ > Object zip_archive_zip_create_quarantine(password, input_file1, opts)
225
225
 
226
226
  Create an encrypted zip file to quarantine a dangerous file
227
227
 
@@ -241,9 +241,17 @@ end
241
241
 
242
242
  api_instance = CloudmersiveConvertApiClient::ZipArchiveApi.new
243
243
 
244
+ password = 'password_example' # String | Password to place on the Zip file; the longer the password, the more secure
245
+
246
+ input_file1 = File.new('/path/to/file.txt') # File | First input file to perform the operation on.
247
+
248
+ opts = {
249
+ encryption_algorithm: 'encryption_algorithm_example' # String | Encryption algorithm to use; possible values are AES-256 (recommended), AES-128, and PK-Zip (not recommended; legacy, weak encryption algorithm). Default is AES-256.
250
+ }
251
+
244
252
  begin
245
253
  #Create an encrypted zip file to quarantine a dangerous file
246
- result = api_instance.zip_archive_zip_create_quarantine
254
+ result = api_instance.zip_archive_zip_create_quarantine(password, input_file1, opts)
247
255
  p result
248
256
  rescue CloudmersiveConvertApiClient::ApiError => e
249
257
  puts "Exception when calling ZipArchiveApi->zip_archive_zip_create_quarantine: #{e}"
@@ -251,7 +259,12 @@ end
251
259
  ```
252
260
 
253
261
  ### Parameters
254
- This endpoint does not need any parameter.
262
+
263
+ Name | Type | Description | Notes
264
+ ------------- | ------------- | ------------- | -------------
265
+ **password** | **String**| Password to place on the Zip file; the longer the password, the more secure |
266
+ **input_file1** | **File**| First input file to perform the operation on. |
267
+ **encryption_algorithm** | **String**| Encryption algorithm to use; possible values are AES-256 (recommended), AES-128, and PK-Zip (not recommended; legacy, weak encryption algorithm). Default is AES-256. | [optional]
255
268
 
256
269
  ### Return type
257
270
 
@@ -249,21 +249,35 @@ module CloudmersiveConvertApiClient
249
249
  end
250
250
  # Create an encrypted zip file to quarantine a dangerous file
251
251
  # Create a new zip archive by compressing input files, and also applies encryption and password protection to the zip, for the purposes of quarantining the underlyikng file.
252
+ # @param password Password to place on the Zip file; the longer the password, the more secure
253
+ # @param input_file1 First input file to perform the operation on.
252
254
  # @param [Hash] opts the optional parameters
255
+ # @option opts [String] :encryption_algorithm Encryption algorithm to use; possible values are AES-256 (recommended), AES-128, and PK-Zip (not recommended; legacy, weak encryption algorithm). Default is AES-256.
253
256
  # @return [Object]
254
- def zip_archive_zip_create_quarantine(opts = {})
255
- data, _status_code, _headers = zip_archive_zip_create_quarantine_with_http_info(opts)
257
+ def zip_archive_zip_create_quarantine(password, input_file1, opts = {})
258
+ data, _status_code, _headers = zip_archive_zip_create_quarantine_with_http_info(password, input_file1, opts)
256
259
  data
257
260
  end
258
261
 
259
262
  # Create an encrypted zip file to quarantine a dangerous file
260
263
  # Create a new zip archive by compressing input files, and also applies encryption and password protection to the zip, for the purposes of quarantining the underlyikng file.
264
+ # @param password Password to place on the Zip file; the longer the password, the more secure
265
+ # @param input_file1 First input file to perform the operation on.
261
266
  # @param [Hash] opts the optional parameters
267
+ # @option opts [String] :encryption_algorithm Encryption algorithm to use; possible values are AES-256 (recommended), AES-128, and PK-Zip (not recommended; legacy, weak encryption algorithm). Default is AES-256.
262
268
  # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
263
- def zip_archive_zip_create_quarantine_with_http_info(opts = {})
269
+ def zip_archive_zip_create_quarantine_with_http_info(password, input_file1, opts = {})
264
270
  if @api_client.config.debugging
265
271
  @api_client.config.logger.debug 'Calling API: ZipArchiveApi.zip_archive_zip_create_quarantine ...'
266
272
  end
273
+ # verify the required parameter 'password' is set
274
+ if @api_client.config.client_side_validation && password.nil?
275
+ fail ArgumentError, "Missing the required parameter 'password' when calling ZipArchiveApi.zip_archive_zip_create_quarantine"
276
+ end
277
+ # verify the required parameter 'input_file1' is set
278
+ if @api_client.config.client_side_validation && input_file1.nil?
279
+ fail ArgumentError, "Missing the required parameter 'input_file1' when calling ZipArchiveApi.zip_archive_zip_create_quarantine"
280
+ end
267
281
  # resource path
268
282
  local_var_path = '/convert/archive/zip/create/quarantine'
269
283
 
@@ -274,9 +288,12 @@ module CloudmersiveConvertApiClient
274
288
  header_params = {}
275
289
  # HTTP header 'Accept' (if needed)
276
290
  header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
291
+ header_params[:'password'] = password
292
+ header_params[:'encryptionAlgorithm'] = opts[:'encryption_algorithm'] if !opts[:'encryption_algorithm'].nil?
277
293
 
278
294
  # form parameters
279
295
  form_params = {}
296
+ form_params['inputFile1'] = input_file1
280
297
 
281
298
  # http body (model)
282
299
  post_body = nil
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.14
11
11
  =end
12
12
 
13
13
  module CloudmersiveConvertApiClient
14
- VERSION = '2.1.7'
14
+ VERSION = '2.1.8'
15
15
  end
@@ -91,7 +91,10 @@ describe 'ZipArchiveApi' do
91
91
  # unit tests for zip_archive_zip_create_quarantine
92
92
  # Create an encrypted zip file to quarantine a dangerous file
93
93
  # Create a new zip archive by compressing input files, and also applies encryption and password protection to the zip, for the purposes of quarantining the underlyikng file.
94
+ # @param password Password to place on the Zip file; the longer the password, the more secure
95
+ # @param input_file1 First input file to perform the operation on.
94
96
  # @param [Hash] opts the optional parameters
97
+ # @option opts [String] :encryption_algorithm Encryption algorithm to use; possible values are AES-256 (recommended), AES-128, and PK-Zip (not recommended; legacy, weak encryption algorithm). Default is AES-256.
95
98
  # @return [Object]
96
99
  describe 'zip_archive_zip_create_quarantine test' do
97
100
  it 'should work' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudmersive-convert-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.7
4
+ version: 2.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cloudmersive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-24 00:00:00.000000000 Z
11
+ date: 2021-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus