cloudmersive-dlp-api-client 2.2.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.
Files changed (66) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +124 -0
  4. data/Rakefile +8 -0
  5. data/cloudmersive-dlp-api-client.gemspec +45 -0
  6. data/docs/DetectApi.md +232 -0
  7. data/docs/DlpAdvancedDetectionRequest.md +43 -0
  8. data/docs/DlpAdvancedDetectionResponse.md +44 -0
  9. data/docs/DlpAdvancedDocumentDetectionRequest.md +46 -0
  10. data/docs/DlpAdvancedDocumentRedactionRequest.md +47 -0
  11. data/docs/DlpAdvancedDocumentRedactionResponse.md +46 -0
  12. data/docs/DlpAdvancedRedactionRequest.md +44 -0
  13. data/docs/DlpAdvancedRedactionResponse.md +44 -0
  14. data/docs/DlpDetectionRequest.md +31 -0
  15. data/docs/DlpDetectionResponse.md +31 -0
  16. data/docs/DlpDocumentDetectionRequest.md +33 -0
  17. data/docs/DlpDocumentRedactionRequest.md +34 -0
  18. data/docs/DlpDocumentRedactionResponse.md +33 -0
  19. data/docs/DlpRedactionRequest.md +32 -0
  20. data/docs/DlpRedactionResponse.md +32 -0
  21. data/docs/RedactApi.md +232 -0
  22. data/docs/RedactedPageInfo.md +8 -0
  23. data/git_push.sh +55 -0
  24. data/lib/cloudmersive-dlp-api-client/api/detect_api.rb +223 -0
  25. data/lib/cloudmersive-dlp-api-client/api/redact_api.rb +223 -0
  26. data/lib/cloudmersive-dlp-api-client/api_client.rb +391 -0
  27. data/lib/cloudmersive-dlp-api-client/api_error.rb +38 -0
  28. data/lib/cloudmersive-dlp-api-client/configuration.rb +209 -0
  29. data/lib/cloudmersive-dlp-api-client/models/dlp_advanced_detection_request.rb +536 -0
  30. data/lib/cloudmersive-dlp-api-client/models/dlp_advanced_detection_response.rb +546 -0
  31. data/lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb +581 -0
  32. data/lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_redaction_request.rb +591 -0
  33. data/lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_redaction_response.rb +583 -0
  34. data/lib/cloudmersive-dlp-api-client/models/dlp_advanced_redaction_request.rb +546 -0
  35. data/lib/cloudmersive-dlp-api-client/models/dlp_advanced_redaction_response.rb +546 -0
  36. data/lib/cloudmersive-dlp-api-client/models/dlp_detection_request.rb +416 -0
  37. data/lib/cloudmersive-dlp-api-client/models/dlp_detection_response.rb +416 -0
  38. data/lib/cloudmersive-dlp-api-client/models/dlp_document_detection_request.rb +451 -0
  39. data/lib/cloudmersive-dlp-api-client/models/dlp_document_redaction_request.rb +461 -0
  40. data/lib/cloudmersive-dlp-api-client/models/dlp_document_redaction_response.rb +453 -0
  41. data/lib/cloudmersive-dlp-api-client/models/dlp_redaction_request.rb +426 -0
  42. data/lib/cloudmersive-dlp-api-client/models/dlp_redaction_response.rb +426 -0
  43. data/lib/cloudmersive-dlp-api-client/models/redacted_page_info.rb +186 -0
  44. data/lib/cloudmersive-dlp-api-client/version.rb +15 -0
  45. data/lib/cloudmersive-dlp-api-client.rb +56 -0
  46. data/spec/api/detect_api_spec.rb +83 -0
  47. data/spec/api/redact_api_spec.rb +83 -0
  48. data/spec/api_client_spec.rb +243 -0
  49. data/spec/configuration_spec.rb +42 -0
  50. data/spec/models/dlp_advanced_detection_request_spec.rb +251 -0
  51. data/spec/models/dlp_advanced_detection_response_spec.rb +257 -0
  52. data/spec/models/dlp_advanced_document_detection_request_spec.rb +269 -0
  53. data/spec/models/dlp_advanced_document_redaction_request_spec.rb +275 -0
  54. data/spec/models/dlp_advanced_document_redaction_response_spec.rb +269 -0
  55. data/spec/models/dlp_advanced_redaction_request_spec.rb +257 -0
  56. data/spec/models/dlp_advanced_redaction_response_spec.rb +257 -0
  57. data/spec/models/dlp_detection_request_spec.rb +179 -0
  58. data/spec/models/dlp_detection_response_spec.rb +179 -0
  59. data/spec/models/dlp_document_detection_request_spec.rb +191 -0
  60. data/spec/models/dlp_document_redaction_request_spec.rb +197 -0
  61. data/spec/models/dlp_document_redaction_response_spec.rb +191 -0
  62. data/spec/models/dlp_redaction_request_spec.rb +185 -0
  63. data/spec/models/dlp_redaction_response_spec.rb +185 -0
  64. data/spec/models/redacted_page_info_spec.rb +41 -0
  65. data/spec/spec_helper.rb +111 -0
  66. metadata +290 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c2c3cd63b4bcd9a040547d2e0192b2bcabbfa974a968b11cd95168a0b108ff93
4
+ data.tar.gz: 4bcae80507c0dc6021fac639147affe1d305a14a3ba4b29ebdd02440161f694e
5
+ SHA512:
6
+ metadata.gz: 60b0d96c63c0c88bbb964ccc26f95deffd8bd77373bf35846c20c6738984582a3c395bd8fba04c36501f2a66e11bf76567c9ec6b32a44dc4ea47460f230ced9b
7
+ data.tar.gz: 63f4b9019c2b4bceb901125f6271279e5d5e4fb6d832cb7b2f7e336f87ddc1e16aa337e5b5182d6efbb437c7ac1d9ea1343d2afbe40c982dd468f73e3a22f459
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 12.3.3'
7
+ end
data/README.md ADDED
@@ -0,0 +1,124 @@
1
+ # cloudmersive-dlp-api-client
2
+
3
+ CloudmersiveDlpApiClient - the Ruby gem for the dlpapi
4
+
5
+ Easily and directly scan and detect sensitive data (PII) in input text.
6
+
7
+ This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
+
9
+ - API version: v1
10
+ - Package version: 2.2.0
11
+ - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
+
13
+ ## Installation
14
+
15
+ ### Build a gem
16
+
17
+ To build the Ruby code into a gem:
18
+
19
+ ```shell
20
+ gem build cloudmersive-dlp-api-client.gemspec
21
+ ```
22
+
23
+ Then either install the gem locally:
24
+
25
+ ```shell
26
+ gem install ./cloudmersive-dlp-api-client-2.2.0.gem
27
+ ```
28
+ (for development, run `gem install --dev ./cloudmersive-dlp-api-client-2.2.0.gem` to install the development dependencies)
29
+
30
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
+
32
+ Finally add this to the Gemfile:
33
+
34
+ gem 'cloudmersive-dlp-api-client', '~> 2.2.0'
35
+
36
+ ### Install from Git
37
+
38
+ If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
39
+
40
+ gem 'cloudmersive-dlp-api-client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
41
+
42
+ ### Include the Ruby code directly
43
+
44
+ Include the Ruby code directly using `-I` as follows:
45
+
46
+ ```shell
47
+ ruby -Ilib script.rb
48
+ ```
49
+
50
+ ## Getting Started
51
+
52
+ Please follow the [installation](#installation) procedure and then run the following code:
53
+ ```ruby
54
+ # Load the gem
55
+ require 'cloudmersive-dlp-api-client'
56
+
57
+ # Setup authorization
58
+ CloudmersiveDlpApiClient.configure do |config|
59
+ # Configure API key authorization: Apikey
60
+ config.api_key['Apikey'] = 'YOUR API KEY'
61
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
62
+ #config.api_key_prefix['Apikey'] = 'Bearer'
63
+ end
64
+
65
+ api_instance = CloudmersiveDlpApiClient::DetectApi.new
66
+
67
+ opts = {
68
+ body: CloudmersiveDlpApiClient::DlpDocumentDetectionRequest.new # DlpDocumentDetectionRequest | Input request
69
+ }
70
+
71
+ begin
72
+ #Detect User Data in Document Image
73
+ result = api_instance.detect_document(opts)
74
+ p result
75
+ rescue CloudmersiveDlpApiClient::ApiError => e
76
+ puts "Exception when calling DetectApi->detect_document: #{e}"
77
+ end
78
+
79
+ ```
80
+
81
+ ## Documentation for API Endpoints
82
+
83
+ All URIs are relative to *https://localhost*
84
+
85
+ Class | Method | HTTP request | Description
86
+ ------------ | ------------- | ------------- | -------------
87
+ *CloudmersiveDlpApiClient::DetectApi* | [**detect_document**](docs/DetectApi.md#detect_document) | **POST** /dlp/detect/document | Detect User Data in Document Image
88
+ *CloudmersiveDlpApiClient::DetectApi* | [**detect_document_advanced**](docs/DetectApi.md#detect_document_advanced) | **POST** /dlp/detect/document/advanced | Detect User Data in Document Image (Advanced)
89
+ *CloudmersiveDlpApiClient::DetectApi* | [**detect_text**](docs/DetectApi.md#detect_text) | **POST** /dlp/detect/text | Detect User Data in Input Text
90
+ *CloudmersiveDlpApiClient::DetectApi* | [**detect_text_advanced**](docs/DetectApi.md#detect_text_advanced) | **POST** /dlp/detect/text/advanced | Detect User Data in Input Text (Advanced)
91
+ *CloudmersiveDlpApiClient::RedactApi* | [**redact_document**](docs/RedactApi.md#redact_document) | **POST** /dlp/redact/document | Redact User Data in Document
92
+ *CloudmersiveDlpApiClient::RedactApi* | [**redact_document_advanced**](docs/RedactApi.md#redact_document_advanced) | **POST** /dlp/redact/document/advanced | Redact User Data in Document (Advanced)
93
+ *CloudmersiveDlpApiClient::RedactApi* | [**redact_text**](docs/RedactApi.md#redact_text) | **POST** /dlp/redact/text | Redact User Data in Input Text
94
+ *CloudmersiveDlpApiClient::RedactApi* | [**redact_text_advanced**](docs/RedactApi.md#redact_text_advanced) | **POST** /dlp/redact/text/advanced | Redact User Data in Input Text (Advanced)
95
+
96
+
97
+ ## Documentation for Models
98
+
99
+ - [CloudmersiveDlpApiClient::DlpAdvancedDetectionRequest](docs/DlpAdvancedDetectionRequest.md)
100
+ - [CloudmersiveDlpApiClient::DlpAdvancedDetectionResponse](docs/DlpAdvancedDetectionResponse.md)
101
+ - [CloudmersiveDlpApiClient::DlpAdvancedDocumentDetectionRequest](docs/DlpAdvancedDocumentDetectionRequest.md)
102
+ - [CloudmersiveDlpApiClient::DlpAdvancedDocumentRedactionRequest](docs/DlpAdvancedDocumentRedactionRequest.md)
103
+ - [CloudmersiveDlpApiClient::DlpAdvancedDocumentRedactionResponse](docs/DlpAdvancedDocumentRedactionResponse.md)
104
+ - [CloudmersiveDlpApiClient::DlpAdvancedRedactionRequest](docs/DlpAdvancedRedactionRequest.md)
105
+ - [CloudmersiveDlpApiClient::DlpAdvancedRedactionResponse](docs/DlpAdvancedRedactionResponse.md)
106
+ - [CloudmersiveDlpApiClient::DlpDetectionRequest](docs/DlpDetectionRequest.md)
107
+ - [CloudmersiveDlpApiClient::DlpDetectionResponse](docs/DlpDetectionResponse.md)
108
+ - [CloudmersiveDlpApiClient::DlpDocumentDetectionRequest](docs/DlpDocumentDetectionRequest.md)
109
+ - [CloudmersiveDlpApiClient::DlpDocumentRedactionRequest](docs/DlpDocumentRedactionRequest.md)
110
+ - [CloudmersiveDlpApiClient::DlpDocumentRedactionResponse](docs/DlpDocumentRedactionResponse.md)
111
+ - [CloudmersiveDlpApiClient::DlpRedactionRequest](docs/DlpRedactionRequest.md)
112
+ - [CloudmersiveDlpApiClient::DlpRedactionResponse](docs/DlpRedactionResponse.md)
113
+ - [CloudmersiveDlpApiClient::RedactedPageInfo](docs/RedactedPageInfo.md)
114
+
115
+
116
+ ## Documentation for Authorization
117
+
118
+
119
+ ### Apikey
120
+
121
+ - **Type**: API key
122
+ - **API key parameter name**: Apikey
123
+ - **Location**: HTTP header
124
+
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ begin
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+ task default: :spec
6
+ rescue LoadError
7
+ # no rspec available
8
+ end
@@ -0,0 +1,45 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ #dlpapi
5
+
6
+ #Easily and directly scan and detect sensitive data (PII) in input text.
7
+
8
+ OpenAPI spec version: v1
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ Swagger Codegen version: 2.4.14
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "cloudmersive-dlp-api-client/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "cloudmersive-dlp-api-client"
20
+ s.version = CloudmersiveDlpApiClient::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["Cloudmersive"]
23
+ s.email = [""]
24
+ s.homepage = "https://cloudmersive.com/dlp-data-loss-prevention-api"
25
+ s.summary = "Scan input for PII."
26
+ s.description = "Cloudmersive Data Loss Prevention allows you to scan input for Personally Identifiable Information (PII), Personal Health Information (PHI), Personal Financial Information and other types of sensitive data. Advanced AI is used to both detect and redact with next-generation accuracy."
27
+ s.license = 'Apache 2.0'
28
+ s.required_ruby_version = ">= 1.9"
29
+
30
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
+ s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
+
33
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
+ s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
35
+ s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
36
+ s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
37
+ s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
38
+ s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
39
+ s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
40
+
41
+ s.files = Dir['./**/*']
42
+ s.test_files = `find spec/*`.split("\n")
43
+ s.executables = []
44
+ s.require_paths = ["lib"]
45
+ end
data/docs/DetectApi.md ADDED
@@ -0,0 +1,232 @@
1
+ # CloudmersiveDlpApiClient::DetectApi
2
+
3
+ All URIs are relative to *https://localhost*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**detect_document**](DetectApi.md#detect_document) | **POST** /dlp/detect/document | Detect User Data in Document Image
8
+ [**detect_document_advanced**](DetectApi.md#detect_document_advanced) | **POST** /dlp/detect/document/advanced | Detect User Data in Document Image (Advanced)
9
+ [**detect_text**](DetectApi.md#detect_text) | **POST** /dlp/detect/text | Detect User Data in Input Text
10
+ [**detect_text_advanced**](DetectApi.md#detect_text_advanced) | **POST** /dlp/detect/text/advanced | Detect User Data in Input Text (Advanced)
11
+
12
+
13
+ # **detect_document**
14
+ > DlpDetectionResponse detect_document(opts)
15
+
16
+ Detect User Data in Document Image
17
+
18
+ Detects configurable types of user data in a document image (PDF, DOCX, PNG, JPG) using Advanced AI.
19
+
20
+ ### Example
21
+ ```ruby
22
+ # load the gem
23
+ require 'cloudmersive-dlp-api-client'
24
+ # setup authorization
25
+ CloudmersiveDlpApiClient.configure do |config|
26
+ # Configure API key authorization: Apikey
27
+ config.api_key['Apikey'] = 'YOUR API KEY'
28
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
29
+ #config.api_key_prefix['Apikey'] = 'Bearer'
30
+ end
31
+
32
+ api_instance = CloudmersiveDlpApiClient::DetectApi.new
33
+
34
+ opts = {
35
+ body: CloudmersiveDlpApiClient::DlpDocumentDetectionRequest.new # DlpDocumentDetectionRequest | Input request
36
+ }
37
+
38
+ begin
39
+ #Detect User Data in Document Image
40
+ result = api_instance.detect_document(opts)
41
+ p result
42
+ rescue CloudmersiveDlpApiClient::ApiError => e
43
+ puts "Exception when calling DetectApi->detect_document: #{e}"
44
+ end
45
+ ```
46
+
47
+ ### Parameters
48
+
49
+ Name | Type | Description | Notes
50
+ ------------- | ------------- | ------------- | -------------
51
+ **body** | [**DlpDocumentDetectionRequest**](DlpDocumentDetectionRequest.md)| Input request | [optional]
52
+
53
+ ### Return type
54
+
55
+ [**DlpDetectionResponse**](DlpDetectionResponse.md)
56
+
57
+ ### Authorization
58
+
59
+ [Apikey](../README.md#Apikey)
60
+
61
+ ### HTTP request headers
62
+
63
+ - **Content-Type**: application/json, text/json, application/*+json
64
+ - **Accept**: text/plain, application/json, text/json
65
+
66
+
67
+
68
+ # **detect_document_advanced**
69
+ > DlpAdvancedDetectionResponse detect_document_advanced(opts)
70
+
71
+ Detect User Data in Document Image (Advanced)
72
+
73
+ Detects 29 configurable types of user data including health-related PHI in a document image (PDF, DOCX, PNG, JPG) using Advanced AI.
74
+
75
+ ### Example
76
+ ```ruby
77
+ # load the gem
78
+ require 'cloudmersive-dlp-api-client'
79
+ # setup authorization
80
+ CloudmersiveDlpApiClient.configure do |config|
81
+ # Configure API key authorization: Apikey
82
+ config.api_key['Apikey'] = 'YOUR API KEY'
83
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
84
+ #config.api_key_prefix['Apikey'] = 'Bearer'
85
+ end
86
+
87
+ api_instance = CloudmersiveDlpApiClient::DetectApi.new
88
+
89
+ opts = {
90
+ body: CloudmersiveDlpApiClient::DlpAdvancedDocumentDetectionRequest.new # DlpAdvancedDocumentDetectionRequest | Input request
91
+ }
92
+
93
+ begin
94
+ #Detect User Data in Document Image (Advanced)
95
+ result = api_instance.detect_document_advanced(opts)
96
+ p result
97
+ rescue CloudmersiveDlpApiClient::ApiError => e
98
+ puts "Exception when calling DetectApi->detect_document_advanced: #{e}"
99
+ end
100
+ ```
101
+
102
+ ### Parameters
103
+
104
+ Name | Type | Description | Notes
105
+ ------------- | ------------- | ------------- | -------------
106
+ **body** | [**DlpAdvancedDocumentDetectionRequest**](DlpAdvancedDocumentDetectionRequest.md)| Input request | [optional]
107
+
108
+ ### Return type
109
+
110
+ [**DlpAdvancedDetectionResponse**](DlpAdvancedDetectionResponse.md)
111
+
112
+ ### Authorization
113
+
114
+ [Apikey](../README.md#Apikey)
115
+
116
+ ### HTTP request headers
117
+
118
+ - **Content-Type**: application/json, text/json, application/*+json
119
+ - **Accept**: text/plain, application/json, text/json
120
+
121
+
122
+
123
+ # **detect_text**
124
+ > DlpDetectionResponse detect_text(opts)
125
+
126
+ Detect User Data in Input Text
127
+
128
+ Detects configurable types of user data in an input text string using Advanced AI.
129
+
130
+ ### Example
131
+ ```ruby
132
+ # load the gem
133
+ require 'cloudmersive-dlp-api-client'
134
+ # setup authorization
135
+ CloudmersiveDlpApiClient.configure do |config|
136
+ # Configure API key authorization: Apikey
137
+ config.api_key['Apikey'] = 'YOUR API KEY'
138
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
139
+ #config.api_key_prefix['Apikey'] = 'Bearer'
140
+ end
141
+
142
+ api_instance = CloudmersiveDlpApiClient::DetectApi.new
143
+
144
+ opts = {
145
+ body: CloudmersiveDlpApiClient::DlpDetectionRequest.new # DlpDetectionRequest | Input request
146
+ }
147
+
148
+ begin
149
+ #Detect User Data in Input Text
150
+ result = api_instance.detect_text(opts)
151
+ p result
152
+ rescue CloudmersiveDlpApiClient::ApiError => e
153
+ puts "Exception when calling DetectApi->detect_text: #{e}"
154
+ end
155
+ ```
156
+
157
+ ### Parameters
158
+
159
+ Name | Type | Description | Notes
160
+ ------------- | ------------- | ------------- | -------------
161
+ **body** | [**DlpDetectionRequest**](DlpDetectionRequest.md)| Input request | [optional]
162
+
163
+ ### Return type
164
+
165
+ [**DlpDetectionResponse**](DlpDetectionResponse.md)
166
+
167
+ ### Authorization
168
+
169
+ [Apikey](../README.md#Apikey)
170
+
171
+ ### HTTP request headers
172
+
173
+ - **Content-Type**: application/json, text/json, application/*+json
174
+ - **Accept**: text/plain, application/json, text/json
175
+
176
+
177
+
178
+ # **detect_text_advanced**
179
+ > DlpAdvancedDetectionResponse detect_text_advanced(opts)
180
+
181
+ Detect User Data in Input Text (Advanced)
182
+
183
+ Detects 29 configurable types of user data including health-related PHI in an input text string using Advanced AI.
184
+
185
+ ### Example
186
+ ```ruby
187
+ # load the gem
188
+ require 'cloudmersive-dlp-api-client'
189
+ # setup authorization
190
+ CloudmersiveDlpApiClient.configure do |config|
191
+ # Configure API key authorization: Apikey
192
+ config.api_key['Apikey'] = 'YOUR API KEY'
193
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
194
+ #config.api_key_prefix['Apikey'] = 'Bearer'
195
+ end
196
+
197
+ api_instance = CloudmersiveDlpApiClient::DetectApi.new
198
+
199
+ opts = {
200
+ body: CloudmersiveDlpApiClient::DlpAdvancedDetectionRequest.new # DlpAdvancedDetectionRequest | Input request
201
+ }
202
+
203
+ begin
204
+ #Detect User Data in Input Text (Advanced)
205
+ result = api_instance.detect_text_advanced(opts)
206
+ p result
207
+ rescue CloudmersiveDlpApiClient::ApiError => e
208
+ puts "Exception when calling DetectApi->detect_text_advanced: #{e}"
209
+ end
210
+ ```
211
+
212
+ ### Parameters
213
+
214
+ Name | Type | Description | Notes
215
+ ------------- | ------------- | ------------- | -------------
216
+ **body** | [**DlpAdvancedDetectionRequest**](DlpAdvancedDetectionRequest.md)| Input request | [optional]
217
+
218
+ ### Return type
219
+
220
+ [**DlpAdvancedDetectionResponse**](DlpAdvancedDetectionResponse.md)
221
+
222
+ ### Authorization
223
+
224
+ [Apikey](../README.md#Apikey)
225
+
226
+ ### HTTP request headers
227
+
228
+ - **Content-Type**: application/json, text/json, application/*+json
229
+ - **Accept**: text/plain, application/json, text/json
230
+
231
+
232
+
@@ -0,0 +1,43 @@
1
+ # CloudmersiveDlpApiClient::DlpAdvancedDetectionRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **input_text** | **String** | Text to scan for PII and sensitive data. | [optional]
7
+ **allow_email_address** | **BOOLEAN** | Set to true to allow email addresses in the input text and not flag them as PII. | [optional]
8
+ **allow_phone_number** | **BOOLEAN** | Set to true to allow phone numbers in the input text and not flag them as PII. | [optional]
9
+ **allow_street_address** | **BOOLEAN** | Set to true to allow street addresses in the input text and not flag them as PII. | [optional]
10
+ **allow_person_name** | **BOOLEAN** | Set to true to allow person names in the input text and not flag them as PII. | [optional]
11
+ **allow_birth_date** | **BOOLEAN** | Set to true to allow birth dates in the input text and not flag them as PII. | [optional]
12
+ **allow_passport_number** | **BOOLEAN** | Set to true to allow passport numbers in the input text and not flag them as PII. | [optional]
13
+ **allow_drivers_license** | **BOOLEAN** | Set to true to allow drivers license numbers in the input text and not flag them as PII. | [optional]
14
+ **allow_social_security_number** | **BOOLEAN** | Set to true to allow social security numbers in the input text and not flag them as PII. | [optional]
15
+ **allow_taxpayer_id** | **BOOLEAN** | Set to true to allow taxpayer IDs in the input text and not flag them as PII. | [optional]
16
+ **allow_credit_card_number** | **BOOLEAN** | Set to true to allow credit card numbers in the input text and not flag them as PII. | [optional]
17
+ **allow_credit_card_expiration_date** | **BOOLEAN** | Set to true to allow credit card expiration dates in the input text and not flag them as PII. | [optional]
18
+ **allow_credit_card_verification_code** | **BOOLEAN** | Set to true to allow credit card verification codes in the input text and not flag them as PII. | [optional]
19
+ **allow_bank_account_number** | **BOOLEAN** | Set to true to allow bank account numbers in the input text and not flag them as PII. | [optional]
20
+ **allow_iban** | **BOOLEAN** | Set to true to allow IBANs in the input text and not flag them as PII. | [optional]
21
+ **allow_health_insurance_number** | **BOOLEAN** | Set to true to allow health insurance numbers in the input text and not flag them as PII. | [optional]
22
+ **allow_bearer_token** | **BOOLEAN** | Set to true to allow bearer tokens in the input text and not flag them as PII. | [optional]
23
+ **allow_http_cookie** | **BOOLEAN** | Set to true to allow HTTP cookies in the input text and not flag them as PII. | [optional]
24
+ **allow_private_keys** | **BOOLEAN** | Set to true to allow private keys in the input text and not flag them as PII. | [optional]
25
+ **allow_credentials** | **BOOLEAN** | Set to true to allow credentials (usernames/passwords) in the input text and not flag them as PII. | [optional]
26
+ **allow_deep_web_urls** | **BOOLEAN** | Set to true to allow deep web URLs (.onion) in the input text and not flag them as PII. | [optional]
27
+ **allow_source_code** | **BOOLEAN** | Set to true to allow source code in the input text and not flag it as sensitive data. | [optional]
28
+ **allow_ip_address** | **BOOLEAN** | Set to true to allow IP addresses in the input text and not flag them as PII. | [optional]
29
+ **allow_mac_address** | **BOOLEAN** | Set to true to allow MAC addresses in the input text and not flag them as PII. | [optional]
30
+ **allow_health_insurance_member_id** | **BOOLEAN** | Set to true to allow health insurance member IDs in the input text and not flag them as PHI. | [optional]
31
+ **allow_health_injury_or_disease** | **BOOLEAN** | Set to true to allow references to injuries or diseases in the input text and not flag them as PHI. | [optional]
32
+ **allow_health_type_of_treatment** | **BOOLEAN** | Set to true to allow references to types of medical treatment in the input text and not flag them as PHI. | [optional]
33
+ **allow_health_date_and_time_of_treatment** | **BOOLEAN** | Set to true to allow dates and times of medical treatment in the input text and not flag them as PHI. | [optional]
34
+ **allow_health_plan_beneficiary_number** | **BOOLEAN** | Set to true to allow health plan beneficiary numbers in the input text and not flag them as PHI. | [optional]
35
+ **allow_health_payments_made_for_treatment** | **BOOLEAN** | Set to true to allow payments made for medical treatment in the input text and not flag them as PHI. | [optional]
36
+ **allow_vehicle_id** | **BOOLEAN** | Set to true to allow vehicle identifiers (e.g. license plates, VINs) in the input text and not flag them as PII. | [optional]
37
+ **allow_device_id** | **BOOLEAN** | Set to true to allow device identifiers (e.g. serial numbers, IMEIs, MAC-level device IDs) in the input text and not flag them as PII. | [optional]
38
+ **allow_names_of_relatives** | **BOOLEAN** | Set to true to allow names of relatives in the input text and not flag them as PII. | [optional]
39
+ **allow_health_universal_record_locator** | **BOOLEAN** | Set to true to allow health universal record locators (URLs) in the input text and not flag them as PHI. | [optional]
40
+ **allow_biometrics** | **BOOLEAN** | Set to true to allow biometric data references (e.g. fingerprints, retinal scans, voiceprints) in the input text and not flag them as PII. | [optional]
41
+ **provide_analysis_rationale** | **BOOLEAN** | Set to true to include a natural language rationale explaining why each detection conclusion was formed. | [optional]
42
+
43
+
@@ -0,0 +1,44 @@
1
+ # CloudmersiveDlpApiClient::DlpAdvancedDetectionResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **clean_result** | **BOOLEAN** | True if no disallowed PII or sensitive data types were detected in the input text; false if any disallowed type was found. | [optional]
7
+ **contains_email_address** | **BOOLEAN** | True if the input text contains email addresses. | [optional]
8
+ **contains_phone_number** | **BOOLEAN** | True if the input text contains phone numbers. | [optional]
9
+ **contains_street_address** | **BOOLEAN** | True if the input text contains street addresses. | [optional]
10
+ **contains_person_name** | **BOOLEAN** | True if the input text contains person names. | [optional]
11
+ **contains_birth_date** | **BOOLEAN** | True if the input text contains birth dates. | [optional]
12
+ **contains_passport_number** | **BOOLEAN** | True if the input text contains passport numbers. | [optional]
13
+ **contains_drivers_license** | **BOOLEAN** | True if the input text contains drivers license numbers. | [optional]
14
+ **contains_social_security_number** | **BOOLEAN** | True if the input text contains social security numbers. | [optional]
15
+ **contains_taxpayer_id** | **BOOLEAN** | True if the input text contains taxpayer IDs. | [optional]
16
+ **contains_credit_card_number** | **BOOLEAN** | True if the input text contains credit card numbers. | [optional]
17
+ **contains_credit_card_expiration_date** | **BOOLEAN** | True if the input text contains credit card expiration dates. | [optional]
18
+ **contains_credit_card_verification_code** | **BOOLEAN** | True if the input text contains credit card verification codes. | [optional]
19
+ **contains_bank_account_number** | **BOOLEAN** | True if the input text contains bank account numbers. | [optional]
20
+ **contains_iban** | **BOOLEAN** | True if the input text contains IBANs. | [optional]
21
+ **contains_health_insurance_number** | **BOOLEAN** | True if the input text contains health insurance numbers. | [optional]
22
+ **contains_bearer_token** | **BOOLEAN** | True if the input text contains bearer tokens. | [optional]
23
+ **contains_http_cookie** | **BOOLEAN** | True if the input text contains HTTP cookies. | [optional]
24
+ **contains_private_keys** | **BOOLEAN** | True if the input text contains private keys. | [optional]
25
+ **contains_credentials** | **BOOLEAN** | True if the input text contains credentials (usernames/passwords). | [optional]
26
+ **contains_deep_web_urls** | **BOOLEAN** | True if the input text contains deep web URLs (.onion). | [optional]
27
+ **contains_source_code** | **BOOLEAN** | True if the input text contains source code. | [optional]
28
+ **contains_ip_address** | **BOOLEAN** | True if the input text contains IP addresses. | [optional]
29
+ **contains_mac_address** | **BOOLEAN** | True if the input text contains MAC addresses. | [optional]
30
+ **contains_health_insurance_member_id** | **BOOLEAN** | True if the input text contains health insurance member IDs. | [optional]
31
+ **contains_health_injury_or_disease** | **BOOLEAN** | True if the input text contains references to injuries or diseases. | [optional]
32
+ **contains_health_type_of_treatment** | **BOOLEAN** | True if the input text contains references to types of medical treatment. | [optional]
33
+ **contains_health_date_and_time_of_treatment** | **BOOLEAN** | True if the input text contains dates and times of medical treatment. | [optional]
34
+ **contains_health_plan_beneficiary_number** | **BOOLEAN** | True if the input text contains health plan beneficiary numbers. | [optional]
35
+ **contains_health_payments_made_for_treatment** | **BOOLEAN** | True if the input text contains payments made for medical treatment. | [optional]
36
+ **contains_faces** | **BOOLEAN** | True if the document contains identifiable human faces. | [optional]
37
+ **contains_vehicle_id** | **BOOLEAN** | True if the input contains vehicle identifiers (e.g. license plates, VINs). | [optional]
38
+ **contains_device_id** | **BOOLEAN** | True if the input contains device identifiers (e.g. serial numbers, IMEIs, MAC-level device IDs). | [optional]
39
+ **contains_names_of_relatives** | **BOOLEAN** | True if the input contains names of relatives. | [optional]
40
+ **contains_health_universal_record_locator** | **BOOLEAN** | True if the input contains health universal record locators (URLs). | [optional]
41
+ **contains_biometrics** | **BOOLEAN** | True if the input contains biometric data references (e.g. fingerprints, retinal scans, voiceprints). | [optional]
42
+ **analysis_rationale** | **String** | Rationale for why the conclusion was formed. Only populated when ProvideAnalysisRationale is set to true in the request. | [optional]
43
+
44
+
@@ -0,0 +1,46 @@
1
+ # CloudmersiveDlpApiClient::DlpAdvancedDocumentDetectionRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **input_file** | **String** | Document file bytes (PDF, DOCX, PNG, or JPG) to scan for PII and sensitive data. | [optional]
7
+ **file_name** | **String** | Optional. Name of the input file including extension, used for format detection. If not provided, format is detected from file contents. | [optional]
8
+ **recognition_mode** | **String** | Optional. Recognition mode for image processing. Options: null (default), \"Fast\", \"FastPlus\", \"FastMini\". | [optional]
9
+ **allow_email_address** | **BOOLEAN** | Set to true to allow email addresses in the document and not flag them as PII. | [optional]
10
+ **allow_phone_number** | **BOOLEAN** | Set to true to allow phone numbers in the document and not flag them as PII. | [optional]
11
+ **allow_street_address** | **BOOLEAN** | Set to true to allow street addresses in the document and not flag them as PII. | [optional]
12
+ **allow_person_name** | **BOOLEAN** | Set to true to allow person names in the document and not flag them as PII. | [optional]
13
+ **allow_birth_date** | **BOOLEAN** | Set to true to allow birth dates in the document and not flag them as PII. | [optional]
14
+ **allow_passport_number** | **BOOLEAN** | Set to true to allow passport numbers in the document and not flag them as PII. | [optional]
15
+ **allow_drivers_license** | **BOOLEAN** | Set to true to allow drivers license numbers in the document and not flag them as PII. | [optional]
16
+ **allow_social_security_number** | **BOOLEAN** | Set to true to allow social security numbers in the document and not flag them as PII. | [optional]
17
+ **allow_taxpayer_id** | **BOOLEAN** | Set to true to allow taxpayer IDs in the document and not flag them as PII. | [optional]
18
+ **allow_credit_card_number** | **BOOLEAN** | Set to true to allow credit card numbers in the document and not flag them as PII. | [optional]
19
+ **allow_credit_card_expiration_date** | **BOOLEAN** | Set to true to allow credit card expiration dates in the document and not flag them as PII. | [optional]
20
+ **allow_credit_card_verification_code** | **BOOLEAN** | Set to true to allow credit card verification codes in the document and not flag them as PII. | [optional]
21
+ **allow_bank_account_number** | **BOOLEAN** | Set to true to allow bank account numbers in the document and not flag them as PII. | [optional]
22
+ **allow_iban** | **BOOLEAN** | Set to true to allow IBANs in the document and not flag them as PII. | [optional]
23
+ **allow_health_insurance_number** | **BOOLEAN** | Set to true to allow health insurance numbers in the document and not flag them as PII. | [optional]
24
+ **allow_bearer_token** | **BOOLEAN** | Set to true to allow bearer tokens in the document and not flag them as PII. | [optional]
25
+ **allow_http_cookie** | **BOOLEAN** | Set to true to allow HTTP cookies in the document and not flag them as PII. | [optional]
26
+ **allow_private_keys** | **BOOLEAN** | Set to true to allow private keys in the document and not flag them as PII. | [optional]
27
+ **allow_credentials** | **BOOLEAN** | Set to true to allow credentials (usernames/passwords) in the document and not flag them as PII. | [optional]
28
+ **allow_deep_web_urls** | **BOOLEAN** | Set to true to allow deep web URLs (.onion) in the document and not flag them as PII. | [optional]
29
+ **allow_source_code** | **BOOLEAN** | Set to true to allow source code in the document and not flag it as sensitive data. | [optional]
30
+ **allow_ip_address** | **BOOLEAN** | Set to true to allow IP addresses in the document and not flag them as PII. | [optional]
31
+ **allow_mac_address** | **BOOLEAN** | Set to true to allow MAC addresses in the document and not flag them as PII. | [optional]
32
+ **allow_health_insurance_member_id** | **BOOLEAN** | Set to true to allow health insurance member IDs in the document and not flag them as PHI. | [optional]
33
+ **allow_health_injury_or_disease** | **BOOLEAN** | Set to true to allow references to injuries or diseases in the document and not flag them as PHI. | [optional]
34
+ **allow_health_type_of_treatment** | **BOOLEAN** | Set to true to allow references to types of medical treatment in the document and not flag them as PHI. | [optional]
35
+ **allow_health_date_and_time_of_treatment** | **BOOLEAN** | Set to true to allow dates and times of medical treatment in the document and not flag them as PHI. | [optional]
36
+ **allow_health_plan_beneficiary_number** | **BOOLEAN** | Set to true to allow health plan beneficiary numbers in the document and not flag them as PHI. | [optional]
37
+ **allow_health_payments_made_for_treatment** | **BOOLEAN** | Set to true to allow payments made for medical treatment in the document and not flag them as PHI. | [optional]
38
+ **allow_faces** | **BOOLEAN** | Set to true to allow identifiable human faces in the document and not flag them as PII. | [optional]
39
+ **allow_vehicle_id** | **BOOLEAN** | Set to true to allow vehicle identifiers (e.g. license plates, VINs) in the document and not flag them as PII. | [optional]
40
+ **allow_device_id** | **BOOLEAN** | Set to true to allow device identifiers (e.g. serial numbers, IMEIs, MAC-level device IDs) in the document and not flag them as PII. | [optional]
41
+ **allow_names_of_relatives** | **BOOLEAN** | Set to true to allow names of relatives in the document and not flag them as PII. | [optional]
42
+ **allow_health_universal_record_locator** | **BOOLEAN** | Set to true to allow health universal record locators (URLs) in the document and not flag them as PHI. | [optional]
43
+ **allow_biometrics** | **BOOLEAN** | Set to true to allow biometric data references (e.g. fingerprints, retinal scans, voiceprints) in the document and not flag them as PII. | [optional]
44
+ **provide_analysis_rationale** | **BOOLEAN** | Set to true to include a natural language rationale explaining why each detection conclusion was formed. | [optional]
45
+
46
+
@@ -0,0 +1,47 @@
1
+ # CloudmersiveDlpApiClient::DlpAdvancedDocumentRedactionRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **input_file** | **String** | Document file bytes (PDF, DOCX, PNG, or JPG) to scan for PII and redact. | [optional]
7
+ **file_name** | **String** | Optional. Name of the input file including extension, used for format detection. If not provided, format is detected from file contents. | [optional]
8
+ **recognition_mode** | **String** | Optional. Recognition mode for image processing. Options: null (default), \"Fast\", \"FastPlus\", \"FastMini\". | [optional]
9
+ **redaction_mode** | **String** | Redaction mode for PII regions. Options: \"BlackOut\" (default) draws black rectangles over PII rows, \"Blur\" applies Gaussian blur to PII rows, \"BlackOutEntirePage\" blacks out entire dirty pages, \"BlurEntirePage\" blurs entire dirty pages. | [optional]
10
+ **allow_email_address** | **BOOLEAN** | Set to true to allow email addresses in the document and not redact them. | [optional]
11
+ **allow_phone_number** | **BOOLEAN** | Set to true to allow phone numbers in the document and not redact them. | [optional]
12
+ **allow_street_address** | **BOOLEAN** | Set to true to allow street addresses in the document and not redact them. | [optional]
13
+ **allow_person_name** | **BOOLEAN** | Set to true to allow person names in the document and not redact them. | [optional]
14
+ **allow_birth_date** | **BOOLEAN** | Set to true to allow birth dates in the document and not redact them. | [optional]
15
+ **allow_passport_number** | **BOOLEAN** | Set to true to allow passport numbers in the document and not redact them. | [optional]
16
+ **allow_drivers_license** | **BOOLEAN** | Set to true to allow drivers license numbers in the document and not redact them. | [optional]
17
+ **allow_social_security_number** | **BOOLEAN** | Set to true to allow social security numbers in the document and not redact them. | [optional]
18
+ **allow_taxpayer_id** | **BOOLEAN** | Set to true to allow taxpayer IDs in the document and not redact them. | [optional]
19
+ **allow_credit_card_number** | **BOOLEAN** | Set to true to allow credit card numbers in the document and not redact them. | [optional]
20
+ **allow_credit_card_expiration_date** | **BOOLEAN** | Set to true to allow credit card expiration dates in the document and not redact them. | [optional]
21
+ **allow_credit_card_verification_code** | **BOOLEAN** | Set to true to allow credit card verification codes in the document and not redact them. | [optional]
22
+ **allow_bank_account_number** | **BOOLEAN** | Set to true to allow bank account numbers in the document and not redact them. | [optional]
23
+ **allow_iban** | **BOOLEAN** | Set to true to allow IBANs in the document and not redact them. | [optional]
24
+ **allow_health_insurance_number** | **BOOLEAN** | Set to true to allow health insurance numbers in the document and not redact them. | [optional]
25
+ **allow_bearer_token** | **BOOLEAN** | Set to true to allow bearer tokens in the document and not redact them. | [optional]
26
+ **allow_http_cookie** | **BOOLEAN** | Set to true to allow HTTP cookies in the document and not redact them. | [optional]
27
+ **allow_private_keys** | **BOOLEAN** | Set to true to allow private keys in the document and not redact them. | [optional]
28
+ **allow_credentials** | **BOOLEAN** | Set to true to allow credentials (usernames/passwords) in the document and not redact them. | [optional]
29
+ **allow_deep_web_urls** | **BOOLEAN** | Set to true to allow deep web URLs (.onion) in the document and not redact them. | [optional]
30
+ **allow_source_code** | **BOOLEAN** | Set to true to allow source code in the document and not redact it. | [optional]
31
+ **allow_ip_address** | **BOOLEAN** | Set to true to allow IP addresses in the document and not redact them. | [optional]
32
+ **allow_mac_address** | **BOOLEAN** | Set to true to allow MAC addresses in the document and not redact them. | [optional]
33
+ **allow_health_insurance_member_id** | **BOOLEAN** | Set to true to allow health insurance member IDs in the document and not redact them. | [optional]
34
+ **allow_health_injury_or_disease** | **BOOLEAN** | Set to true to allow references to injuries or diseases in the document and not redact them. | [optional]
35
+ **allow_health_type_of_treatment** | **BOOLEAN** | Set to true to allow references to types of medical treatment in the document and not redact them. | [optional]
36
+ **allow_health_date_and_time_of_treatment** | **BOOLEAN** | Set to true to allow dates and times of medical treatment in the document and not redact them. | [optional]
37
+ **allow_health_plan_beneficiary_number** | **BOOLEAN** | Set to true to allow health plan beneficiary numbers in the document and not redact them. | [optional]
38
+ **allow_health_payments_made_for_treatment** | **BOOLEAN** | Set to true to allow payments made for medical treatment in the document and not redact them. | [optional]
39
+ **allow_faces** | **BOOLEAN** | Set to true to allow identifiable human faces in the document and not redact them. | [optional]
40
+ **allow_vehicle_id** | **BOOLEAN** | Set to true to allow vehicle identifiers (e.g. license plates, VINs) in the document and not redact them. | [optional]
41
+ **allow_device_id** | **BOOLEAN** | Set to true to allow device identifiers (e.g. serial numbers, IMEIs, MAC-level device IDs) in the document and not redact them. | [optional]
42
+ **allow_names_of_relatives** | **BOOLEAN** | Set to true to allow names of relatives in the document and not redact them. | [optional]
43
+ **allow_health_universal_record_locator** | **BOOLEAN** | Set to true to allow health universal record locators (URLs) in the document and not redact them. | [optional]
44
+ **allow_biometrics** | **BOOLEAN** | Set to true to allow biometric data references (e.g. fingerprints, retinal scans, voiceprints) in the document and not redact them. | [optional]
45
+ **provide_analysis_rationale** | **BOOLEAN** | Set to true to include a natural language rationale explaining why each detection conclusion was formed. | [optional]
46
+
47
+