cloudmersive-convert-api-client 1.6.7 → 1.6.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.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +27 -6
  3. data/docs/ConvertDataApi.md +2 -2
  4. data/docs/ConvertWebApi.md +50 -50
  5. data/docs/CreateZipArchiveRequest.md +9 -0
  6. data/docs/EditTextApi.md +232 -12
  7. data/docs/FindRegexMatch.md +12 -0
  8. data/docs/FindStringMatch.md +10 -0
  9. data/docs/FindStringRegexRequest.md +10 -0
  10. data/docs/FindStringRegexResponse.md +10 -0
  11. data/docs/FindStringSimpleRequest.md +9 -0
  12. data/docs/FindStringSimpleResponse.md +10 -0
  13. data/docs/ReplaceStringRegexRequest.md +10 -0
  14. data/docs/ReplaceStringRegexResponse.md +9 -0
  15. data/docs/ReplaceStringSimpleRequest.md +10 -0
  16. data/docs/ReplaceStringSimpleResponse.md +9 -0
  17. data/docs/ZipArchiveApi.md +167 -0
  18. data/docs/ZipDirectory.md +10 -0
  19. data/docs/ZipExtractResponse.md +10 -0
  20. data/docs/ZipFile.md +9 -0
  21. data/lib/cloudmersive-convert-api-client.rb +15 -0
  22. data/lib/cloudmersive-convert-api-client/api/convert_data_api.rb +2 -2
  23. data/lib/cloudmersive-convert-api-client/api/convert_web_api.rb +61 -61
  24. data/lib/cloudmersive-convert-api-client/api/edit_text_api.rb +232 -12
  25. data/lib/cloudmersive-convert-api-client/api/zip_archive_api.rb +181 -0
  26. data/lib/cloudmersive-convert-api-client/models/create_zip_archive_request.rb +203 -0
  27. data/lib/cloudmersive-convert-api-client/models/find_regex_match.rb +231 -0
  28. data/lib/cloudmersive-convert-api-client/models/find_string_match.rb +209 -0
  29. data/lib/cloudmersive-convert-api-client/models/find_string_regex_request.rb +209 -0
  30. data/lib/cloudmersive-convert-api-client/models/find_string_regex_response.rb +211 -0
  31. data/lib/cloudmersive-convert-api-client/models/find_string_simple_request.rb +199 -0
  32. data/lib/cloudmersive-convert-api-client/models/find_string_simple_response.rb +211 -0
  33. data/lib/cloudmersive-convert-api-client/models/replace_string_regex_request.rb +209 -0
  34. data/lib/cloudmersive-convert-api-client/models/replace_string_regex_response.rb +199 -0
  35. data/lib/cloudmersive-convert-api-client/models/replace_string_simple_request.rb +209 -0
  36. data/lib/cloudmersive-convert-api-client/models/replace_string_simple_response.rb +199 -0
  37. data/lib/cloudmersive-convert-api-client/models/zip_directory.rb +213 -0
  38. data/lib/cloudmersive-convert-api-client/models/zip_extract_response.rb +213 -0
  39. data/lib/cloudmersive-convert-api-client/models/zip_file.rb +215 -0
  40. data/lib/cloudmersive-convert-api-client/version.rb +1 -1
  41. data/spec/api/convert_data_api_spec.rb +1 -1
  42. data/spec/api/convert_web_api_spec.rb +13 -13
  43. data/spec/api/edit_text_api_spec.rb +54 -6
  44. data/spec/api/zip_archive_api_spec.rb +70 -0
  45. data/spec/models/create_zip_archive_request_spec.rb +48 -0
  46. data/spec/models/find_regex_match_spec.rb +66 -0
  47. data/spec/models/find_string_match_spec.rb +54 -0
  48. data/spec/models/find_string_regex_request_spec.rb +54 -0
  49. data/spec/models/find_string_regex_response_spec.rb +54 -0
  50. data/spec/models/find_string_simple_request_spec.rb +48 -0
  51. data/spec/models/find_string_simple_response_spec.rb +54 -0
  52. data/spec/models/replace_string_regex_request_spec.rb +54 -0
  53. data/spec/models/replace_string_regex_response_spec.rb +48 -0
  54. data/spec/models/replace_string_simple_request_spec.rb +54 -0
  55. data/spec/models/replace_string_simple_response_spec.rb +48 -0
  56. data/spec/models/zip_directory_spec.rb +54 -0
  57. data/spec/models/zip_extract_response_spec.rb +54 -0
  58. data/spec/models/zip_file_spec.rb +48 -0
  59. metadata +47 -2
@@ -35,7 +35,7 @@ describe 'EditTextApi' do
35
35
  # unit tests for edit_text_base64_decode
36
36
  # Base 64 decode, convert base 64 string to binary content
37
37
  # Decodes / converts base 64 UTF-8 text string to binary content
38
- # @param request
38
+ # @param request Input request
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [Base64DecodeResponse]
41
41
  describe 'edit_text_base64_decode test' do
@@ -47,7 +47,7 @@ describe 'EditTextApi' do
47
47
  # unit tests for edit_text_base64_detect
48
48
  # Detect, check if text string is base 64 encoded
49
49
  # Checks, detects if input string is base 64 encoded
50
- # @param request
50
+ # @param request Input request
51
51
  # @param [Hash] opts the optional parameters
52
52
  # @return [Base64DetectResponse]
53
53
  describe 'edit_text_base64_detect test' do
@@ -59,7 +59,7 @@ describe 'EditTextApi' do
59
59
  # unit tests for edit_text_base64_encode
60
60
  # Base 64 encode, convert binary or file data to a text string
61
61
  # Encodes / converts binary or file data to a text string
62
- # @param request
62
+ # @param request Input request
63
63
  # @param [Hash] opts the optional parameters
64
64
  # @return [Base64EncodeResponse]
65
65
  describe 'edit_text_base64_encode test' do
@@ -93,10 +93,34 @@ describe 'EditTextApi' do
93
93
  end
94
94
  end
95
95
 
96
+ # unit tests for edit_text_find_regex
97
+ # Find a regular expression regex in text input
98
+ # Find all occurrences of the input regular expression in the input content, and returns the matches
99
+ # @param request Input request
100
+ # @param [Hash] opts the optional parameters
101
+ # @return [FindStringRegexResponse]
102
+ describe 'edit_text_find_regex test' do
103
+ it "should work" do
104
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
105
+ end
106
+ end
107
+
108
+ # unit tests for edit_text_find_simple
109
+ # Find a string in text input
110
+ # Finds all occurrences of the input string in the input content, and returns the matches
111
+ # @param request Input request
112
+ # @param [Hash] opts the optional parameters
113
+ # @return [FindStringSimpleResponse]
114
+ describe 'edit_text_find_simple test' do
115
+ it "should work" do
116
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
117
+ end
118
+ end
119
+
96
120
  # unit tests for edit_text_remove_all_whitespace
97
121
  # Remove whitespace from text string
98
122
  # Removes all whitespace from text, leaving behind only non-whitespace characters. Whitespace includes newlines, spaces and other whitespace characters.
99
- # @param request
123
+ # @param request Input request
100
124
  # @param [Hash] opts the optional parameters
101
125
  # @return [RemoveWhitespaceFromTextResponse]
102
126
  describe 'edit_text_remove_all_whitespace test' do
@@ -108,7 +132,7 @@ describe 'EditTextApi' do
108
132
  # unit tests for edit_text_remove_html
109
133
  # Remove HTML from text string
110
134
  # Removes HTML from text, leaving behind only text. Formatted text will become plain text. Important for protecting against HTML and Cross-Site-Scripting attacks.
111
- # @param request
135
+ # @param request Input request
112
136
  # @param [Hash] opts the optional parameters
113
137
  # @return [RemoveHtmlFromTextResponse]
114
138
  describe 'edit_text_remove_html test' do
@@ -117,6 +141,30 @@ describe 'EditTextApi' do
117
141
  end
118
142
  end
119
143
 
144
+ # unit tests for edit_text_replace_regex
145
+ # Replace a string in text with a regex regular expression string
146
+ # Replaces all occurrences of the input regular expression regex string in the input content, and returns the result
147
+ # @param request Input request
148
+ # @param [Hash] opts the optional parameters
149
+ # @return [ReplaceStringRegexResponse]
150
+ describe 'edit_text_replace_regex test' do
151
+ it "should work" do
152
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
153
+ end
154
+ end
155
+
156
+ # unit tests for edit_text_replace_simple
157
+ # Replace a string in text with another string value
158
+ # Replaces all occurrences of the input string in the input content, and returns the result
159
+ # @param request Input request
160
+ # @param [Hash] opts the optional parameters
161
+ # @return [ReplaceStringSimpleResponse]
162
+ describe 'edit_text_replace_simple test' do
163
+ it "should work" do
164
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
165
+ end
166
+ end
167
+
120
168
  # unit tests for edit_text_text_encoding_detect
121
169
  # Detect text encoding of file
122
170
  # Checks text encoding of file
@@ -132,7 +180,7 @@ describe 'EditTextApi' do
132
180
  # unit tests for edit_text_trim_whitespace
133
181
  # Trim leading and trailing whitespace from text string
134
182
  # Trim leading and trailing whitespace from text, leaving behind a trimmed string. Whitespace includes newlines, spaces and other whitespace characters.
135
- # @param request
183
+ # @param request Input request
136
184
  # @param [Hash] opts the optional parameters
137
185
  # @return [RemoveWhitespaceFromTextResponse]
138
186
  describe 'edit_text_trim_whitespace test' do
@@ -0,0 +1,70 @@
1
+ =begin
2
+ #convertapi
3
+
4
+ #Convert API lets you effortlessly convert file formats and types.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for CloudmersiveConvertApiClient::ZipArchiveApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'ZipArchiveApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = CloudmersiveConvertApiClient::ZipArchiveApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ZipArchiveApi' do
30
+ it 'should create an instance of ZipArchiveApi' do
31
+ expect(@instance).to be_instance_of(CloudmersiveConvertApiClient::ZipArchiveApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for zip_archive_zip_create
36
+ # Compress files to create a new zip archive
37
+ # Create a new zip archive by compressing input files.
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [Object]
40
+ describe 'zip_archive_zip_create test' do
41
+ it "should work" do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ # unit tests for zip_archive_zip_create_advanced
47
+ # Compress files and folders to create a new zip archive with advanced options
48
+ # Create a new zip archive by compressing input files, folders and leverage advanced options to control the structure of the resulting zip archive.
49
+ # @param request Input request
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [Object]
52
+ describe 'zip_archive_zip_create_advanced test' do
53
+ it "should work" do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ # unit tests for zip_archive_zip_extract
59
+ # Extract, decompress files and folders from a zip archive
60
+ # Extracts a zip archive by decompressing files, and folders.
61
+ # @param input_file Input file to perform the operation on.
62
+ # @param [Hash] opts the optional parameters
63
+ # @return [ZipExtractResponse]
64
+ describe 'zip_archive_zip_extract test' do
65
+ it "should work" do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
70
+ end
@@ -0,0 +1,48 @@
1
+ =begin
2
+ #convertapi
3
+
4
+ #Convert API lets you effortlessly convert file formats and types.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveConvertApiClient::CreateZipArchiveRequest
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'CreateZipArchiveRequest' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveConvertApiClient::CreateZipArchiveRequest.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of CreateZipArchiveRequest' do
31
+ it 'should create an instance of CreateZipArchiveRequest' do
32
+ expect(@instance).to be_instance_of(CloudmersiveConvertApiClient::CreateZipArchiveRequest)
33
+ end
34
+ end
35
+ describe 'test attribute "files_in_zip"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "directories_in_zip"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
48
+
@@ -0,0 +1,66 @@
1
+ =begin
2
+ #convertapi
3
+
4
+ #Convert API lets you effortlessly convert file formats and types.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveConvertApiClient::FindRegexMatch
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'FindRegexMatch' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveConvertApiClient::FindRegexMatch.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of FindRegexMatch' do
31
+ it 'should create an instance of FindRegexMatch' do
32
+ expect(@instance).to be_instance_of(CloudmersiveConvertApiClient::FindRegexMatch)
33
+ end
34
+ end
35
+ describe 'test attribute "character_offset_start"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "character_offset_end"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "containing_line"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "match_value"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ describe 'test attribute "match_groups"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
65
+ end
66
+
@@ -0,0 +1,54 @@
1
+ =begin
2
+ #convertapi
3
+
4
+ #Convert API lets you effortlessly convert file formats and types.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveConvertApiClient::FindStringMatch
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'FindStringMatch' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveConvertApiClient::FindStringMatch.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of FindStringMatch' do
31
+ it 'should create an instance of FindStringMatch' do
32
+ expect(@instance).to be_instance_of(CloudmersiveConvertApiClient::FindStringMatch)
33
+ end
34
+ end
35
+ describe 'test attribute "character_offset_start"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "character_offset_end"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "containing_line"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ end
54
+
@@ -0,0 +1,54 @@
1
+ =begin
2
+ #convertapi
3
+
4
+ #Convert API lets you effortlessly convert file formats and types.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveConvertApiClient::FindStringRegexRequest
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'FindStringRegexRequest' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveConvertApiClient::FindStringRegexRequest.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of FindStringRegexRequest' do
31
+ it 'should create an instance of FindStringRegexRequest' do
32
+ expect(@instance).to be_instance_of(CloudmersiveConvertApiClient::FindStringRegexRequest)
33
+ end
34
+ end
35
+ describe 'test attribute "text_content"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "target_regex"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "match_case"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ end
54
+
@@ -0,0 +1,54 @@
1
+ =begin
2
+ #convertapi
3
+
4
+ #Convert API lets you effortlessly convert file formats and types.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveConvertApiClient::FindStringRegexResponse
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'FindStringRegexResponse' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveConvertApiClient::FindStringRegexResponse.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of FindStringRegexResponse' do
31
+ it 'should create an instance of FindStringRegexResponse' do
32
+ expect(@instance).to be_instance_of(CloudmersiveConvertApiClient::FindStringRegexResponse)
33
+ end
34
+ end
35
+ describe 'test attribute "successful"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "matches"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "match_count"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ end
54
+